OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: stephan_35 on August 25, 2009, 01:19:16 AM

Title: Bug in the Autodesk palette with dcl_Control_SetTitleBarText
Post by: stephan_35 on August 25, 2009, 01:19:16 AM
Hello,

I tried to set TitleBarText on Palette, it doesn't work , do nothing  ;D

But return T  ....

Redraw do nothing ...

Thanks ;)
Title: Re: dcl_Control_SetTitleBarText & Palette 5.1.2.2
Post by: owenwengerd on August 25, 2009, 06:08:42 AM
This is a bug in the Autodesk palette implementation that causes it to ignore any changes after the palette is initially created. The only solution is to close and redisplay the palette after the title bar text is changed.
Title: Re: dcl_Control_SetTitleBarText & Palette 5.1.2.2
Post by: stephan_35 on August 25, 2009, 07:26:12 AM
Quote from: owenwengerd on August 25, 2009, 06:08:42 AM
This is a bug in the Autodesk palette implementation that causes it to ignore any changes after the palette is initially created. The only solution is to close and redisplay the palette after the title bar text is changed.

So, i will change the title of my post ;)

Thanks
Title: Re: Bug in the Autodesk palette with dcl_Control_SetTitleBarText
Post by: Fred Tomke on September 09, 2009, 02:41:38 AM
I have a solution for anyone who knows the new titlebar text already before showing the palette. Since the VarName already exist after loading the project file you can set the new titlebartext before (dcl_form_show ...). For me it's important because we use the same palette for different products. In this main palette the product name shall be added in the titlebar of the palette. Setting the titlebar text before showing the form can solve this.

Fred
Title: Re: Bug in the Autodesk palette with dcl_Control_SetTitleBarText
Post by: stephan_35 on September 09, 2009, 03:04:48 AM
Thanks for your post !, it's work fine.

But i let this post to unsolved , because cannot change title after displayed palette.

Best regards.