chefdackel Posted July 31, 2023 Share Posted July 31, 2023 I have two questions for the UniTrackbar: 1. How can I show the values permanently, not only when tracking: 2. How can I define a step-value, so I can not only track in steps 1, 2, 3.... but 0,5/1,0/1,5/2,0/2,5/3,0... Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 1, 2023 Share Posted August 1, 2023 Hello, 9 hours ago, chefdackel said: 1. How can I show the values permanently, not only when tracking: 2. How can I define a step-value, so I can not only track in steps 1, 2, 3.... but 0,5/1,0/1,5/2,0/2,5/3,0... Need to analyze. Quote Link to comment Share on other sites More sharing options...
chefdackel Posted August 1, 2023 Author Share Posted August 1, 2023 5 hours ago, Sherzod said: Hello, Need to analyze. the second (defining a step value) is the most important, because I don't see any workaround. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 1, 2023 Share Posted August 1, 2023 1 hour ago, chefdackel said: the second (defining a step value) is the most important, because I don't see any workaround. One possible workaround: 1. You have to "divide" the value on the server side by 10... 2. procedure TMainForm.UniFormCreate(Sender: TObject); begin with UniTrackBar1.JSInterface do begin JSConfig('minValue', [10]); //1 JSConfig('maxValue', [1000]); //100 JSConfig('increment', [5]); //0.5 JSAddListener('afterrender', 'function(){this.plugins[0].getText = function(a){return (a.value/10).toFixed(2)}}') end; end; Quote Link to comment Share on other sites More sharing options...
chefdackel Posted August 1, 2023 Author Share Posted August 1, 2023 thank you. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 1, 2023 Share Posted August 1, 2023 17 minutes ago, chefdackel said: Great! Quote Link to comment Share on other sites More sharing options...
PS1 Posted April 18 Share Posted April 18 Hey, i have similar question for tips/value in UniTrackBar. Is it possible to change caption of tip/value in runtime by code ? Not only once but always when change(of UniTrackBar) happens. There is something like "tipText" in documentation of Ext JS but i don't know how to use it in code. https://cdn.sencha.com/ext/gpl/4.2.0/docs/#!/api/Ext.slider.Tip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 18 Share Posted April 18 3 minutes ago, PS1 said: There is something like "tipText" in documentation of Ext JS but i don't know how to use it in code. Quote Link to comment Share on other sites More sharing options...
PS1 Posted April 18 Share Posted April 18 Ok, but this solution don't help me much. I want to show in the TipText my data from the dataset and value of UniTrackBar telling me from which record of dataset i must get data. Like this: Procdeure UniTrackBar1Change(Sender:TObject); begin AdoQuery.RecNo := UniTrackBar1.Value; UniTrackBar1.TipText := AdoQuery.FieldByName('data').AsString; end; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 18 Share Posted April 18 1 hour ago, PS1 said: I want to show in the TipText my data from the dataset and value of UniTrackBar telling me from which record of dataset i must get data. Need to check. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.