OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Amsterdamned on August 06, 2009, 01:20:06 AM

Title: can't clear text label's caption
Post by: Amsterdamned on August 06, 2009, 01:20:06 AM
funny enough i seem not to be able to clear the caption of a text label in my last project. I managed to do so in earlier projects. It overrides the text with the new one even if i set the caption to an empty string before i set it to the new string. What do i miss here??


Bernd
Title: Re: can't clear text label's caption
Post by: Kerry on August 06, 2009, 02:57:20 AM
how about :=

(dcl_Control_SetCaption Untitled_Form1_Label1 " ")
Title: Re: can't clear text label's caption
Post by: Amsterdamned on August 06, 2009, 05:29:35 AM
nope,

doesn work, i get 't as result but nothing happens. >:(
Title: Re: can't clear text label's caption
Post by: Amsterdamned on August 06, 2009, 05:35:59 AM
you won't believe that! I compared with other projects and saw that the background colour was different. on -16 it works, on -24 it doesn't ???
Title: Re: can't clear text label's caption
Post by: owenwengerd on August 06, 2009, 12:18:51 PM
I can't reproduce this in Vista/AutoCAD 2007.  Can you upload a very simple project that demonstrates the problem, along with your system info?
Title: Re: can't clear text label's caption
Post by: Amsterdamned on August 06, 2009, 11:21:23 PM
It is the textlabel2 that acted that funny. I updated my profile with my systeminfo.

Title: Re: can't clear text label's caption
Post by: Kerry on August 07, 2009, 01:00:23 AM

Bernd,
QuoteCan you upload a very simple project that demonstrates the problem  ...
A lisp code to control it and demonstrate the problem would save Owen having to write one and also eliminate guessing ...

regards
Kerry
Title: Re: can't clear text label's caption
Post by: owenwengerd on August 07, 2009, 09:55:49 PM
Thanks Kerry.  I tested by manually changing captions in AutoCAD 2006 on XP using the mi.odcl that you attached, but I was not able to reproduce the problem.