It is currently Thu Nov 26, 2020 2:18 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: [Done] RightClick in ListIconGadget inside a FrameGadget
PostPosted: Wed Sep 10, 2014 10:39 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Jan 31, 2006 9:43 am
Posts: 495
Location: France
The RightClick event is never received if a ListIconGadget is inside a FrameGadget who is created after the ListIconGadget as you can see in the code bellow.
If you move the FrameGadget() line before the ListIconGadget() line, it works.

[Edit]Seen on MacOS Snow Leopard[/Edit]

Code:
OpenWindow(0, 100, 100, 300, 200, "1", #PB_Window_SystemMenu)
ListIconGadget(0, 30, 40, 200, 100, "ListIcon", 50)
AddGadgetItem(0, -1, "Item 1")
AddGadgetItem(0, -1, "Item 2")
AddGadgetItem(0, -1, "Item 3")
FrameGadget(1, 10, 10, 240, 150, "")

Repeat
   Select WaitWindowEvent()
      Case #PB_Event_Gadget
         Select EventGadget()
            Case 0 ; ListIconGadget
               Select EventType()
                  Case #PB_EventType_LeftClick
                     Debug "#PB_EventType_Leftlick"
                  Case #PB_EventType_RightClick
                     Debug "#PB_EventType_RightClick"
               EndSelect
         EndSelect

      Case #PB_Event_CloseWindow
         CloseWindow(0)
      EndSelect
ForEver

_________________
Niffo


Top
 Profile  
Reply with quote  
 Post subject: Re: [5.30] RightClick in ListIconGadget inside a FrameGadget
PostPosted: Sat Feb 08, 2020 10:25 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 14179
Location: France
Seems to work OK now, can anybody else confirm ?


Top
 Profile  
Reply with quote  
 Post subject: Re: [5.30] RightClick in ListIconGadget inside a FrameGadget
PostPosted: Mon Feb 10, 2020 11:18 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Jan 31, 2006 9:43 am
Posts: 495
Location: France
Tried just now with PB 5.71 on MacOS Mojave / XCode 10.1 : RightClick IS triggered

To be noted :
1) RightClick is triggered at MouseDown and not MouseUp (do not know if it is intended)
2) When i close the Window, i got a "At least one window should be opened to use this command" by PB on the line "Select WaitWindowEvent()" (!)

_________________
Niffo


Last edited by Niffo on Mon Feb 10, 2020 4:53 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: [5.30] RightClick in ListIconGadget inside a FrameGadget
PostPosted: Mon Feb 10, 2020 3:16 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 14179
Location: France
Seems OK then. The debugger error message is correct.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Done] RightClick in ListIconGadget inside a FrameGadget
PostPosted: Mon Feb 10, 2020 4:53 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu May 30, 2013 4:39 pm
Posts: 523
Right click works on the item but not on the column title.

OSX 10.3.6 PB 5.62


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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