Peter,
The function entry-select in ltk.lisp should use downcase in the format string. This is so that you can pass :begin or :end as the start or end of the range. The corrected function is appended below.
Best regards, Sudhir
(defun entry-select (e from to) ;; downcase the from and to indicators (cater for :begin and :end) (format-wish "~a selection range ~(~a~) ~(~a~)" (widget-path e) from to) e)
Hi,
The command to set the cursor position in an entry widget (icursor) is missing in LTK. Here is a function that implements it. I don't know the way to do it for a text widget, though.
(defmethod (setf cursor-index) (idx (e entry)) (format-wish "senddata [~a icursor ~(~a~)]" (widget-path e) idx))
With this, (setf (cursor-index entry-widget) :end) will ensure that the insertion cursor is at the end of the field.
Cheers Sudhir