OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Emiliano on July 14, 2012, 09:29:57 AM

Title: Determine the state of Palettes
Post by: Emiliano on July 14, 2012, 09:29:57 AM
Hello everyone,
I have to determine the status of a palette.
I tried with:

(dcl_Form_IsActive NameP_NamePallette)
(dcl_Form_IsVisible NameP_NamePallette)
(dcl_Form_IsFloating NameP_NamePallette)

but none of them allows you to determine whether a floating palette set to "Automatically Hide" is visible on the screen with all controls or is hidden.
Can you help me?
thanks
Title: Re: Determine the state of Palettes
Post by: Emiliano on July 17, 2012, 10:06:36 PM
I noticed that no one has answered this question.
For me it is very important to receive a response.
Maybe my question is not clear?
Title: Re: Determine the state of Palettes
Post by: owenwengerd on July 18, 2012, 10:19:18 AM
I think it's most likely that nobody knows a way to do that.
Title: Re: Determine the state of Palettes
Post by: roy_043 on July 18, 2012, 12:06:47 PM
It is nice to see that palettes are now supported by Bricscad. But there seem to be a few bugs. I would not use it just yet for serious development.

1.
If you undock a palette and then use the "X" to hide it, you cannot unhide it in the current CAD-session.
Using AUBlockTool_Final.lsp from OpenDCL_Tutorial.zip after hiding the palette in this manner:
: (dcl_Form_IsVisible AUBlockTool_PalBlkTool)
nil
: (dcl_Form_IsActive AUBlockTool_PalBlkTool)
T
: (dcl_Form_IsEnabled AUBlockTool_PalBlkTool)
T
: (dcl_Form_IsFloating AUBlockTool_PalBlkTool)
T
: (dcl_Form_Hide AUBlockTool_PalBlkTool T)
T
: (dcl_Form_Hide AUBlockTool_PalBlkTool nil)
T

The palette is still invisible after the last line of code.

2.
I you have undocked a palette and set it to auto-hide, in the next CAD-session auto-hide will be turned off and the width of the palette will be set to 22px.

For now I would use a control bar instead of a palette.
Title: Re: Determine the state of Palettes
Post by: Fred Tomke on July 24, 2012, 08:32:04 PM
Hi, in AutoCAD the latest settings of your palette is stored in the aws file of your project if you leave your palette open while closing AutoCAD. It is told that the state is also stored when you save the current drawing. I have no idea how BricsCAD is handling that.

Unfortunately, currently there is no chance to get/set the current state of autohide with OpenDCL.

Regards, Fred