Hi Is there a way to transfer focus from AutoCad screen to a palette (without clicking on it of course, so as to keep pointer position in the graphic screen) ?
When the form is a Modeless that contains a TextBox, the (dcl_TextBox_SetSel ..) method do that, but when it's a palette it doesn't works...
Is there an other way ?
Thanks
Actually (dcl_TextBox_SetSel ..) doesn't work when called from outside of the palette (e.g. from the command line) unlike Modeless ?
Have you tried Control_SetFocus (http://www.opendcl.com/HelpFiles/index.php?page=Reference/Method/Control/SetFocus.htm (http://www.opendcl.com/HelpFiles/index.php?page=Reference/Method/Control/SetFocus.htm))? Make sure 'Keep Focus' (http://www.opendcl.com/HelpFiles/index.php?page=Reference/Property/KeepFocus.htm (http://www.opendcl.com/HelpFiles/index.php?page=Reference/Property/KeepFocus.htm)) is set to True.
Thanks I hadn't seen KeepFocus