I want to try to fix a few aspects of the way GETs operate. Basically where the cursor goes and how selections are handled. I looked at the source code in get.prg and noticed the following
- Code: Select all Expand view
METHOD GotFocus() CLASS TGet
::SetPos( 0 )
::SetSel( 0, 0 )
return nil
but I can't see ::SetPos() or ::SetSel() declared in TGet or TControl or TWindow. Have I just missed it or what?
Currently the cursor goes to the end of the text (including the blanks) and selections are ignored.
By the way do you call
- Code: Select all Expand view
void gtk_entry_set_max_length (GtkEntry *entry,
gint max);
anywhere in your code? Do you set it based on the length of the variable in the associated GET? Do we in reality need an associated GET?
Thanks
Doug
(xProgrammer)