OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: TimSpangler on March 29, 2010, 09:31:34 AM

Title: Palette titlebar text not changing
Post by: TimSpangler on March 29, 2010, 09:31:34 AM
I have updated the titlebar text of my palette form, but it doesn't update at runtime.  It defaults to the old text.  I can change the icon and other thing but not the text.
Title: Re: Palette titlebar text not changing
Post by: Fred Tomke on March 29, 2010, 01:23:15 PM
Hi Tim,

change the titlebar text before you call dcl_form_show. You cannot change the titlebar text at runtime, when the palette is shown. There was already a topic about that: http://www.opendcl.com/forum/index.php?topic=883.0 (http://www.opendcl.com/forum/index.php?topic=883.0)

Fred
Title: Re: Palette titlebar text not changing
Post by: TimSpangler on March 29, 2010, 04:10:28 PM
Thanks for the reply Fred,

I saw that post already.  What I mean is I made it static on the form from the editor but when I run the project it does not change.  Plus I can not get it to change before the palette for is called.
Title: Re: Palette titlebar text not changing
Post by: BazzaCAD on March 29, 2010, 05:21:10 PM
Do you have an other version of the ODCL project in a different support path it maybe loading by mistake?
Title: Re: Palette titlebar text not changing
Post by: TimSpangler on March 30, 2010, 04:21:12 AM
That was the first thing that I checked.  I also can change the icon with no problem., just not the text
Title: Re: Palette titlebar text not changing
Post by: TimSpangler on April 01, 2010, 07:33:34 AM
I deleted my .aws file from my profile and now everything seems to be updated.  They were located here:

C:\Documents and Settings\tspangle\Application Data\Autodesk\ACD-A 2009\enu\Support\Profiles\<ProfileName>\<Profile.aws>


Not sure why this happened?
Title: Re: Palette titlebar text not changing
Post by: owenwengerd on April 01, 2010, 01:09:16 PM
Strange. I'll see if I can reproduce the problem.
Title: Re: Palette titlebar text not changing
Post by: TimSpangler on April 01, 2010, 02:01:31 PM
I haven't been able to reproduce this since.  Everything seems to be fine so far.  I will keep you posted
Title: Re: Palette titlebar text not changing
Post by: TimSpangler on April 06, 2010, 08:07:59 AM
It has happened again.  I found that it is being saved here:

C:\Documents and Settings\tspangle\Application Data\Autodesk\ACD-A 2009\enu\Support\Profiles\FixedProfile.aws

upon closing Autocad.  It also saves the position and auto-hide.  I assume that it is getting the palette name from here and not from the lisp.  If I delete this file all is fine and it returns upon closing Autocad.

I am running XP SP3 / ACA09
Title: Re: Palette titlebar text not changing
Post by: owenwengerd on April 06, 2010, 10:03:46 AM
This problem should now be fixed in the next build.
Title: Re: Palette titlebar text not changing
Post by: TimSpangler on April 06, 2010, 10:16:47 AM
Thanks Owen.   ;D