
da is ne menu, dann ne toolbar, und dann nochmal ne toolbar die aber nicht bis zum rechten rand geht
Kann sein dass es doch nicht so einfach ist.MSDN hat geschrieben: A ToolBar control is usually "docked" along the top of its parent window, but it can also be docked to any side of the window. A toolbar can display tooltips when the user points the mouse pointer at a toolbar button. A ToolTip is a small pop-up window that briefly describes the button or menu's purpose. To display ToolTips, the ShowToolTips property must be set to true.
Note: Certain applications feature controls very similar to the toolbar that have the ability to "float" above the application window and be repositioned. The Windows Forms ToolBar control is not able to do these actions.
Code: Alles auswählen
#container_1=1
#container_2=2
OpenWindow(0,0,0,500,300,#PB_Window_ScreenCentered,"Toolbartest")
If CreateGadgetList(WindowID())
ContainerGadget(#container_1,10,10,110,26,#PB_Container_BorderLess )
myid=GadgetID(#container_1)
CreateToolBar(10,myid)
ToolBarStandardButton(100,#PB_ToolBarIcon_New)
ToolBarStandardButton(101,#PB_ToolBarIcon_Open)
ToolBarStandardButton(102,#PB_ToolBarIcon_Save)
CloseGadgetList()
ContainerGadget(#container_2,10,100,138,26,#PB_Container_BorderLess )
myid=GadgetID(#container_2)
CreateToolBar(11,myid)
ToolBarStandardButton(200,#PB_ToolBarIcon_New)
ToolBarStandardButton(201,#PB_ToolBarIcon_Open)
ToolBarStandardButton(202,#PB_ToolBarIcon_Save)
CloseGadgetList()
EndIf
Repeat
event=WaitWindowEvent()
Until event = #PB_Event_CloseWindow