When I run this code I get an error that the ToolBarStandardButton() ist not a function.
If I type "ToolBa..." in the IDE it does not list the function in help!
Tried it on Windows 10 (64x) and Windows 7 (64x) whith 6.02LTS (86x and 64x).
On Window 7 I still have 5.43 (86x and 64x) and it works fine and help works to.
Code: Select all
If OpenWindow(0, 0, 0, 150, 25, "ToolBar", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
If CreateToolBar(0, WindowID(0))
ToolBarStandardButton(0, #PB_ToolBarIcon_New)
ToolBarStandardButton(1, #PB_ToolBarIcon_Open)
ToolBarStandardButton(2, #PB_ToolBarIcon_Save)
EndIf
Repeat
Event = WaitWindowEvent()
If Event = #PB_Event_Menu
Debug "ToolBar ID: "+Str(EventMenu())
EndIf
Until Event = #PB_Event_CloseWindow
EndIf
// Moved from "Bugs - Windows" to "General Discussion" (Kiffi)