Mark,

You can disable the X on a buttonpad by using the following mapbasic command:


Set Window ButtonPadInfo("{Pad Name}",6) SysMenuClose Off

The other way of issuing the "Alter Menu Item.." when a user closes a buttonpad,
would be difficult as the WinCloseHandler command doesn't work on buttonpads.


Hope this helps.

Regards
Sue.

++++++++++++++++++++++++++++++++++++++++
 adding   Susan Port
  value   Technical Support Coordinator
     to   [EMAIL PROTECTED]
   your
spatial   Spatial Plus
systems   http://www.spatialplus.com
++++++++++++++++++++++++++++++++++++++++

>
>I've got a piece of code that successfully shows/hides a ButtonPad.  Using

>the Caret Symbol in the Create Menu command I use the Alter Menu Item
>Command to toggle the menu text from SHOW to HIDE.  I would like to issue
>the Alter Menu Item command if the user closes the ButtonPad by clicking the

>Close "X" push button in the upper right corner of the ButtonPad.  You know

>the one to the right of the Minimize, Maximize buttons.  I've looked through

>the documentation to see if you can remove the "X" button but I didn't see

>anything.  I could dock the ButtonPad but I want it to float.  Besides, the

>user could always drag the ButtonPad back off and then click the "X" button.

>
>Any help appreciated.
>
>
>
>Mark Stiles
>
>
>----------------------------------------------------------------------
>To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
>"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to