Updates: Status: Accepted Comment #1 on issue 576 by benoit.m...@gmail.com: TextBox.Select not reliable https://code.google.com/p/gambas/issues/detail?id=576
It seems to be a weird behaviour of Qt. When you set the text, the selection is cleared and the cursor is moved to the end of the line. But apparently this is not done always immediately, but sometimes later in the event loop! So, of course, in that case, your own selection is erased. A workaround is adding a "WAIT" instruction to run the event loop just after having set the text and before changing the selection. But this is not a long-term solution... -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user