It is currently Mon Aug 19, 2019 3:55 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [Done] PB 5.61 BindGadgetEvent on ImageGadget not working
PostPosted: Mon Dec 25, 2017 8:08 pm 
Offline
New User
New User

Joined: Wed May 10, 2017 1:54 am
Posts: 5
system
Linux Mint 18.3 Mate (x64)

PB 5.60(x64) working
PB 5.61(x64) not working




Code:

Declare HandlerImage_0()
Declare HandlerCanvas_0()

Global Image_0, Canvas_0
Global Img_Window_0_0
UsePNGImageDecoder()

Img_Window_0_0 = LoadImage(#PB_Any, #PB_Compiler_Home+"examples/sources/Data/PureBasic.bmp")

Procedure OpenWindow_0(x = 0, y = 0, width = 560, height = 250)
  Window_0 = OpenWindow(#PB_Any, x, y, width, height, "", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  Image_0 = ImageGadget(#PB_Any, 100, 60, 168, 35, ImageID(Img_Window_0_0))
  Canvas_0 = CanvasGadget(#PB_Any, 470, 20, 70, 50)
 
  BindGadgetEvent(Image_0, @HandlerImage_0(), #PB_EventType_LeftClick)
  BindGadgetEvent(Canvas_0, @HandlerCanvas_0(), #PB_EventType_LeftClick)
EndProcedure


Procedure HandlerImage_0()
  Debug "Image_0"
EndProcedure

Procedure HandlerCanvas_0()
  Debug "Canvas_0"
EndProcedure


OpenWindow_0()
Repeat
  Event = WaitWindowEvent() 
Until Event = #PB_Event_CloseWindow



Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.61(x64) BindGadgetEvent on ImageGadget not working
PostPosted: Tue Dec 26, 2017 11:14 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Dec 17, 2009 12:00 pm
Posts: 175
Location: Llangadog, Wales, UK
I believe this is fixed in PB 5.46 Beta X, works OK for me. So I guess it will be also in 5.6x when the team have time.

see - PB 5.45/5.61 No events in ImageGadget?

_________________
www.deeproot.co.uk


Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.61(x64) BindGadgetEvent on ImageGadget not working
PostPosted: Wed Apr 10, 2019 7:59 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13611
Location: France
Fixed.


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