OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: krunch on December 15, 2010, 09:33:45 AM

Title: How to give focus to a palette ?
Post by: krunch on December 15, 2010, 09:33:45 AM
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 ?
Title: Re: How to give focus to a palette ?
Post by: owenwengerd on December 15, 2010, 12:02:20 PM
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.
Title: Re: How to give focus to a palette ?
Post by: krunch on December 15, 2010, 03:00:47 PM
Thanks I hadn't seen KeepFocus