It is currently Wed Oct 21, 2020 3:05 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: ToolBar example not working on Catalina (10.15.6)
PostPosted: Sat Sep 26, 2020 6:41 am 
Offline
User
User

Joined: Mon Jun 30, 2008 4:36 pm
Posts: 56
Location: UK
Hi, this code pasted straight from the PureBasic help file doesn't work on my Catalina - it creates a toolbar but no buttons!

Code:
  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


Top
 Profile  
Reply with quote  
 Post subject: Re: ToolBar example not working on Catalina (10.15.6)
PostPosted: Sat Sep 26, 2020 9:19 am 
Offline
Addict
Addict
User avatar

Joined: Thu Apr 21, 2005 2:38 pm
Posts: 1767
Location: Germany
This is no bug because ToolBarStandardButton() is only supported in Linux and Windows:
Fred wrote:
It's a known limitation as OSX doesn't provide such icon by default. The doc state it as Window/Linux only function

Supported OS

Windows, Linux

This "bug" was already posted at least in two further threads:
- 2017
- 2019

For a workaround you should take a look into this module from mk-soft.


Top
 Profile  
Reply with quote  
 Post subject: Re: ToolBar example not working on Catalina (10.15.6)
PostPosted: Sat Sep 26, 2020 5:39 pm 
Offline
User
User

Joined: Mon Jun 30, 2008 4:36 pm
Posts: 56
Location: UK
Hi there, thanks. I did search it before posting but I must have used the wrong search terms as I couldn’t find anything. Apologies for the noobery!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye