It is currently Sun Sep 23, 2018 3:38 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: TrackBarGadget - Variable steps or ticks
PostPosted: Wed Jan 02, 2013 2:25 am 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 5779
Location: Wales, UK
Currently, tick markers (if flagged), are placed at every step. This is often not very useful because they are too close together. It would be great if the number of tick marks displayed could be defined by a simple var, e.g. TotalTicks = 10.

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: TrackBarGadget - Variable steps or ticks
PostPosted: Sun Apr 21, 2013 7:55 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Oct 16, 2009 10:12 am
Posts: 542
Location: BE
+1

_________________
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.


Top
 Profile  
Reply with quote  
 Post subject: Re: TrackBarGadget - Variable steps or ticks
PostPosted: Mon Apr 22, 2013 1:10 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Aug 16, 2010 4:29 am
Posts: 252
+1
Or with a new argument:
Code:
TicStep = (BarMax - BarMin) / 5
Result = TrackBarGadget(#Gadget, x, y, Width, Height, BarMin, BarMax, TicStep [, Flags])


Top
 Profile  
Reply with quote  
 Post subject: Re: TrackBarGadget - Variable steps or ticks
PostPosted: Mon Apr 22, 2013 1:05 pm 
Offline
Addict
Addict

Joined: Tue Feb 22, 2011 1:16 pm
Posts: 1482
IdeasVacuum wrote:
Currently, tick markers (if flagged), are placed at every step.

Isn't that a Windows feature? I for one like to use arrow keys to advance back or forth every tick... it's counter-intuitive to move what you think is one single tick but it's really ten! No thanks.

_________________
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!


Top
 Profile  
Reply with quote  
 Post subject: Re: TrackBarGadget - Variable steps or ticks
PostPosted: Mon Apr 22, 2013 1:17 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Oct 16, 2009 10:12 am
Posts: 542
Location: BE
In the mean time (for windows only) :
Code:
If OpenWindow(0,0,0,320,200,"CheckBoxGadget",#PB_Window_SystemMenu|#PB_Window_ScreenCentered)
    h = TrackBarGadget(#PB_Any,270, 10, 20,170,0,1000,#PB_TrackBar_Vertical) 
   SetGadgetState(h, 800)   
   For a=50 To 1000 Step 50
      SendMessage_(GadgetID(h), #TBM_SETTIC, 0, a)
   Next
   
   ; SetWindowLong_(h, #GWL_STYLE, GetWindowLong_(h, #GWL_STYLE) | #TBS_LEFT)   
   
   h = TrackBarGadget(#PB_Any,20, 10, 200,27,0,1000) 
   SetGadgetState(h, 800) 
   For a=50 To 1000 Step 50
      SendMessage_(GadgetID(h), #TBM_SETTIC, 0, a)
   Next
   
   Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf

_________________
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.


Top
 Profile  
Reply with quote  
 Post subject: Re: TrackBarGadget - Variable steps or ticks
PostPosted: Wed Aug 15, 2018 8:13 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jun 11, 2004 7:07 am
Posts: 566
Yeah. These every step ticks are very annoying...


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 7 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