Determine the state of Palettes

Started by Emiliano, July 14, 2012, 09:29:57 AM

Previous topic - Next topic

Emiliano

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

Emiliano

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?

owenwengerd

I think it's most likely that nobody knows a way to do that.

roy_043

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.

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]