ToolBarStandardButton() function is missing

Just starting out? Need help? Post your questions and find answers here.
Peer1561
New User
New User
Posts: 7
Joined: Thu Mar 14, 2013 8:09 am
Location: Germany

ToolBarStandardButton() function is missing

Post by Peer1561 »

Hello!

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
kind regards

// Moved from "Bugs - Windows" to "General Discussion" (Kiffi)
User avatar
Kiffi
Addict
Addict
Posts: 1353
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: ToolBarStandardButton() function is missing

Post by Kiffi »

Hygge
Post Reply