Hello,
I still locked on a problem with tree control (in a dockable form):
When user chose a node, tree control keep focus anyway, and then , if i wish to send (entget) command , cursor are not available in graphical parts.
I found this for the moment :
(command "_TEXTSCR") ; Work fine, but flash a screen !
;(command "_GRAPHSCR") ; No work at all !
;(dcl_Control_SetOk "A" "B" "gpe:borne:inv") ; select another button in dockable form ,not work !
;(dcl_Control_SetFocus "A" "B" "gpe:borne:inv") ; focus another button in dockable form ,not work !
(setq @&entsel(entsel "Make a choice :"))
Also found :
Must do a mouse over the dockable form to get cursor back .... very strange !
There are no mouseover event.
all EventInvoke are allow !
Thanks for any suggest or reply ;)
Hello,
beside the EventInvoke property there is a KeepFocus property for modeless forms. If it is set, then the form keeps focus. That's the only way to allow inputs (textboxes...) in modeless forms.
There are many ways to solve but they depend on what you're going to do.
1.: If you click on a button to select something from screen, it will be enough to send a (dcl_setcmdbarfocus).
2.: If you have textboxes on the modeless form you can change the value for KeepFocus. Here (http://www.opendcl.com/forum/index.php?topic=757.msg3710#msg3710) is an example.
3.: You can work with OnMouseEntered and OnMouseMovedOff to change the value of KeepFocus at runtime.
4.: ...
Because there are different ways to work with it a sample of your project could help.
QuoteMust do a mouse over the dockable form to get cursor back...
As far as I know theres no need to do it but maybe your sample will help us to help you. ;)
Fred
Thanks for your reply fred !
Anyway, my first issue is maybe to use the latest stable opendcl runtime .... i was working with 4xxx :D
So i do it now, and have a look as soon as i finish to update all my tools ...
I 've just post another issue about titlebar.
Hello,
All screen display problem disepear with opendcl 5.xxx !
No need to set focus nil at "Control Bar" form.
Thanks again !