Alessandro Posted November 1, 2016 Share Posted November 1, 2016 Hello! I would like to know how to use UnimSegmentedButton. I have 2 buttons within the UnimSegmentedButton, clicking on a run a procedure. Grateful, thank you. --------------------------------------------------------- Olá! Gostaria de saber como usar o XXXX. Tenho 2 botões dentro do XXXX, ao clicar em algum executar um procedimento. Grato, obrigado. Link to comment Share on other sites More sharing options...
Sherzod Posted November 1, 2016 Share Posted November 1, 2016 Hi, Try: procedure TMainmForm.UnimSegmentedButton1Click(Sender: TUnimButtonItem); begin case Sender.ButtonId of 0: begin end; 1: begin end; else begin end; end; end; Best regards. 1 Link to comment Share on other sites More sharing options...
Alessandro Posted November 1, 2016 Author Share Posted November 1, 2016 Hi, Try: procedure TMainmForm.UnimSegmentedButton1Click(Sender: TUnimButtonItem); begin case Sender.ButtonId of 0: begin end; 1: begin end; else begin end; end; end; Best regards. Grateful, thank you. Link to comment Share on other sites More sharing options...
asapltda Posted November 2, 2016 Share Posted November 2, 2016 Hello, someone helped me with the segmented button, when pressed the first time, does not act when pressed for the second time, should be done through Javascript, I remember my user problem is logisticasoft Link to comment Share on other sites More sharing options...
Sherzod Posted November 2, 2016 Share Posted November 2, 2016 Hi, http://forums.unigui.com/index.php?/topic/6084-how-to-use-the-component-unimsegmentedbutton/&do=findComment&comment=31102?! Best regards. 1 Link to comment Share on other sites More sharing options...
JoaoBosco Posted December 4, 2018 Share Posted December 4, 2018 Actually the UnimsegmentedButton does not allow clicking the same button again without first unchecking it. With the hint below, I have to double click. How to do this by just clicking once? function beforeInit (sender, config) { config.allowDepress = true } Link to comment Share on other sites More sharing options...
Sherzod Posted December 4, 2018 Share Posted December 4, 2018 4 hours ago, JoaoBosco said: Actually the UnimsegmentedButton does not allow clicking the same button again without first unchecking it. With the hint below, I have to double click. How to do this by just clicking once? function beforeInit (sender, config) { config.allowDepress = true } Hello, Sorry, can you explain your issue? Link to comment Share on other sites More sharing options...
JoaoBosco Posted December 19, 2018 Share Posted December 19, 2018 yes Link to comment Share on other sites More sharing options...
asapltda Posted May 8, 2020 Share Posted May 8, 2020 Good evening, one way to solve it is to create an additional item in a segmented button where visible: = false, and then place the following instruction and thus avoid double clicking item2 = dummy botton visible:= false procedure TFLOGINM.action_pruebaExecute(Sender: TObject); begin with UnimSegmentedButton1 do begin Items[2].Pressed := false; JSInterface.JSCall('setPressed', [false], Items[2].JSMenuItem); end; end; Link to comment Share on other sites More sharing options...
asapltda Posted December 23, 2020 Share Posted December 23, 2020 Excuse me, but the solution doesn't work. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now