Index Parent

BWin class


BWin class is used to create beautiful borderless windows.

BWin class is a subclass of BWin.mcc, so you must have BWin.mcc in MUI:Libs/MUI to use it.

 

Attributes
Name Type Class Note
AutoShow B ISGN If set to 1, the DragBar, the Size gadget and the Close gadget (not yet supported) are shown as the window is active and are hidden as the window is inactive. Default 0.
Background S IS See Area/Background
DragBarTop B ISGN If set to 1, the DragBar (if available) is placed at the top of the window, otherwise it is placed at the left. Default 0.
NoClose B IG If set to 1, you get no Close gadget at all. Default 0. Not yet supported.
NoCloseItem B ISGN If set to 1, the Close context menu item is disabled. Default 0. Not yet supported.
NoDragBar B IG If set to 1, you get no DragBar at all. Default 0.
NoHideItem B ISGN If set to 1, the Hide context menu item is disabled. Default 0.
NoSize B IG If set to 1, you get no Size gadget at all. Default 0.
Save M ISGN G2N Define what to save during Application/Save method and what to restore during Application/Load method. A number or one or more of:
  • All
  • AutoShow
  • DragBarTop
  • ShowClose
  • ShowDragBar
  • ShowSize

To save none, set it to 0. Default 0 .

ShowClose B ISGN If set to 1, the Close gadget is shown, otherwise it is hidden. Default 1. Not yet supported.
ShowDragBar B ISGN If set to 1, the DragBar is shown, otherwise it is hidden. Default 1.
ShowSize B ISGN If set to 1, the Size gadget is shown, otherwise it is hidden. Default 1.
UserItem N GN Set and notified to an user item id when it is selected. See AddUserItem method.

 

Methods
Name Parameters Note
AddUserItem <title>,<id/N>, Add an user item to the BWin context menu. title is the title of the item; id is a integral number,0<id<=1024, set in the attribute UserItem when the item is selected.
RemoveUserItem <id/N>, Remove an user item from the BWin context menu. id is the id of the item to remove.