It is currently Sun Sep 15, 2019 11:32 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: [Done] TrackBarGadget / GetGadgetAttribute
PostPosted: Fri Nov 09, 2018 8:07 pm 
Offline
Addict
Addict

Joined: Thu Aug 30, 2007 11:54 pm
Posts: 1037
Location: right here
https://www.purebasic.fr/english/viewtopic.php?p=528728#p528728
Martin Verlaan wrote:
Found a bug in qt mode:
Code:
OpenWindow(0, 0, 0, 320, 200, "TrackBarGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
TrackBarGadget(0, 10,  40, 250, 20, 0, 0)

SetGadgetAttribute(0, #PB_TrackBar_Minimum, 5)   
Debug "TrackBar_Min = " + GetGadgetAttribute(0, #PB_TrackBar_Minimum) 
Debug "TrackBar_Max = " + GetGadgetAttribute(0, #PB_TrackBar_Maximum) 
Debug "--------------"
SetGadgetAttribute(0, #PB_TrackBar_Maximum, 10) 
Debug "TrackBar_Min = " + GetGadgetAttribute(0, #PB_TrackBar_Minimum) 
Debug "TrackBar_Max = " + GetGadgetAttribute(0, #PB_TrackBar_Maximum) 
Debug "--------------"
SetGadgetAttribute(0, #PB_TrackBar_Minimum, 1) 
Debug "TrackBar_Min = " + GetGadgetAttribute(0, #PB_TrackBar_Minimum) 
Debug "TrackBar_Max = " + GetGadgetAttribute(0, #PB_TrackBar_Maximum) 
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
 

After setting #PB_TrackBar_Maximum, #PB_TrackBar_Minimum gets the value of #PB_TrackBar_Maximum and vice versa!. Hopefully this can be fixed very soon.


Top
 Profile  
Reply with quote  
 Post subject: Re: TrackBarGadget / GetGadgetAttribute / Minimum / Maximum
PostPosted: Mon Mar 18, 2019 8:38 pm 
Offline
Administrator
Administrator

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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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