If this is not the best list for this question, please let me know of a more appropriate one.
I'm using a few simple controls on a Calc sheet, and Libre Basic to manipulate them. So far I have had success, pulling test from a text box, pulling text from cells on the sheet, changing the list of strings shown in a list box and handling button clicks. Now I would like to improve the UI (from my point of view), such that once the button click handler has done its job, the code sets the focus back to the initial text box I was typing in and preselects all text, so that I can immediately start typing the next name to work with. I've Googled the heck out of it with various terms, looked through the SDK docs and I'm using XRAY to see the properties and methods of the controls, which is how I got this far... but none of them are helping now. I see no property or method relating to selection or focus. I *do* see a Start and End property, which are text ranges, but I don't quite understand what they represent; I would have expected just one range representing the first and last selected character positions - if they are even related to selection. I read somewhere that there's a SetFocus() method but that it is on the *view* aspect of the edit box. No problem... but I can't find a way to access the view portion either :( There are lots of examples out there - many are even for forms - but none seem to deal with focus or selection. Can anyone point me towards some information on how to access such things? I can't even get the selected text if I needed to. Thanks. -- View this message in context: http://nabble.documentfoundation.org/OEditModel-set-focus-pre-select-all-text-tp4150087.html Sent from the Users mailing list archive at Nabble.com. -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted