Alessandro Posted November 1, 2016 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. Quote
Sherzod Posted November 1, 2016 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 Quote
Alessandro Posted November 1, 2016 Author 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. Quote
asapltda Posted November 2, 2016 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 Quote
Sherzod Posted November 2, 2016 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 Quote
JoaoBosco Posted December 4, 2018 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 } Quote
Sherzod Posted December 4, 2018 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? Quote
asapltda Posted May 8, 2020 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; Quote
asapltda Posted December 23, 2020 Posted December 23, 2020 Excuse me, but the solution doesn't work. Quote
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.