How to give focus to a palette ?

Started by krunch · 2010-12-15 17:33 UTC · 2 replies · SMF topic #1556

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 ({2})? Make sure 'Keep Focus' ({2}) is set to True.
Thanks I hadn't seen KeepFocus