[Solved] - Can't go to graphscr when focus on tree control ?

Started by stephan_35, June 09, 2009, 03:43:25 AM

Previous topic - Next topic

stephan_35

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   ;)
OpenDCL 6.0.0.6 / Editor 5.1.2.3  / Vista 32 Bits
Development of  specific tools for trades in AutoLisp - php - sql

Fred Tomke

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 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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

stephan_35

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.

OpenDCL 6.0.0.6 / Editor 5.1.2.3  / Vista 32 Bits
Development of  specific tools for trades in AutoLisp - php - sql

stephan_35

Hello,

All screen display problem disepear with opendcl 5.xxx !

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

Thanks again !
OpenDCL 6.0.0.6 / Editor 5.1.2.3  / Vista 32 Bits
Development of  specific tools for trades in AutoLisp - php - sql