![]() Put another one in a second window if you wish. Then the return-value is the auto-generated gadget number on success.īecause of the connection with the window menu, there can only be one MDIGadget() on a window, however you can If #PB_Any was used as the #Gadget parameter Returns nonzero on success and zero on failure. #PB_MDI_NoScrollBars : When the user drags a childwindow outside of the displayed area, there will be no scrollbars. #PB_MDI_BorderLess : There will be no border drawn around the client area. ![]() If you have no other gadgets on the window, this is a helpful option. #PB_MDI_AutoSize : The gadget will automatically resize itself to fit the parent window. It can be a combination of the following values: It is recommended to use a number aboveĪll menu identifiers of your program, to make sure there is never a collision.įlags to modify the gadget behavior. You need to reserve at least as much numbers as you plan to add items. It will use numbers above that, when new child windows are added, so In the 'MenuItem' parameter of MDIGadget() you have to specify the lowest number that The gadget will require a set of Menu item identifiers (see the 'MenuID' parameter of MenuItem()) The first menu item index to use for MDI windows. ![]() The Gadget will add a separator at the end of this menu, and then add one item for each Specify the submenu index (created with MenuTitle()) where these items will be attached to (the first submenu To select the child windows through one of the windows submenus. The gadget will give the user the opportunity Therefore a MDIGadget()Ĭan only be put on a window that has a menu attached to it. The menu index to which the MDI window items should be added.Īn MDIGadget() is always connected to a window Menu (see CreateMenu()). The position and dimensions of the new gadget. These child windows are fully movable and sizable by the user in this area.Ī number to identify the new gadget. Result = MDIGadget(#Gadget, x, y, Width, Height, SubMenu, MenuItem ) DescriptionĬreates a client area, in which child windows can be displayed. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |