OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: stephan_35 on June 16, 2009, 03:45:42 AM

Title: dcl_Control_SetVisible not refresh with button .
Post by: stephan_35 on June 16, 2009, 03:45:42 AM

Hello,

I encountered a display problem with the command: "dcl_Control_SetVisible" with the control buttons.

Indeed it does not update displayed instantly! I must change the window to return to autocad to become current.

I tried the command: "dcl_Control_SetKeepFocus".

I did the same tests with the command: "dcl_Control_SetEnabled" that it works wonderfully.

Maybe do I have omitted a parameter?

I have a tree control in my box.

Best regards
Title: Re: dcl_Control_SetVisible not refresh with button .
Post by: Fred Tomke on June 16, 2009, 08:43:42 AM
Hi stephan_35,

have you also tried (dcl_Control_Redraw Test_Form1_Bildschaltfläche1)?

Fred
Title: Re: dcl_Control_SetVisible not refresh with button .
Post by: stephan_35 on June 16, 2009, 12:13:29 PM
Quote from: Fred Tomke on June 16, 2009, 08:43:42 AM
Hi stephan_35,

have you also tried (dcl_Control_Redraw Test_Form1_Bildschaltfläche1)?

Fred

Thanks for reply fred  ;)

Previously using version 4 everything works perfectly!

This passage in version 5, which has shown throughout this series of problems ...

'dcl_Control_Redraw' does not work, and I have reproduced this bug on two different boxes, until I use "enabled", maybe this will be corrected in the next version.

Best regards
Title: Re: dcl_Control_SetVisible not refresh with button .
Post by: stephan_35 on June 16, 2009, 12:41:37 PM
Good evening,

In fact, to be more precise, the syntax does not work:
Code (autolisp) Select

(dcl_Control_SetVisible (@dcl_ '( @$Dcl:P @$Dcl:D "button")) nil)


It works perfectly:
Code (autolisp) Select

(dcl_Control_SetVisible (@dcl_ '( @$Dcl:P @$Dcl:D "button")) T)

Very strange!


Best regards
Title: Re: dcl_Control_SetVisible not refresh with button .
Post by: owenwengerd on June 16, 2009, 08:12:58 PM
I did a quick test with a text box on a modeless form, and I could not reproduce the problem. Can you attache a simple project that demonstrates the problem?
Title: Re: dcl_Control_SetVisible not refresh with button .
Post by: stephan_35 on June 17, 2009, 05:56:49 AM
Quote from: owenwengerd on June 16, 2009, 08:12:58 PM
I did a quick test with a text box on a modeless form, and I could not reproduce the problem. Can you attache a simple project that demonstrates the problem?

Reproduce only with "Control bar" !

I'll try to prepare an example to show you !

Could you have a see about my suggest (isfloating) thanks.
Title: Re: dcl_Control_SetVisible not refresh with button .
Post by: owenwengerd on June 17, 2009, 09:04:55 AM
This repainting issue is now fixed for Beta 7. I did see your other post, but I haven't had time to look into your suggestion.