OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: stephan_35 on June 09, 2009, 03:43:25 AM

Title: [Solved] - Can't go to graphscr when focus on tree control ?
Post by: stephan_35 on June 09, 2009, 03:43:25 AM
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 :
Code (autolisp) Select

  (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   ;)
Title: Re: Can't go to graphscr when focus on tree control ?
Post by: Fred Tomke on June 09, 2009, 04:40:34 AM
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
Title: Re: Can't go to graphscr when focus on tree control ?
Post by: stephan_35 on June 09, 2009, 09:25:40 AM
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.

Title: Re: Can't go to graphscr when focus on tree control ?
Post by: stephan_35 on June 12, 2009, 01:36:14 AM
Hello,

All screen display problem disepear with opendcl 5.xxx !

No need to set focus nil at "Control Bar" form.

Thanks again !