ISIDORIO Posted June 24, 2020 Posted June 24, 2020 image does not change at run time in the ontrigger event does not work. Look. if AButtonId=0 then begin if uniEditPass.Triggers[0].ImageIndex=0 then begin uniEditPass.Triggers[0].ImageIndex:=1; uniEditPass.PasswordChar :=#0; end else begin uniEditPass.Triggers[0].ImageIndex:=0 ; uniEditPass.PasswordChar :='*' end; end; Can someone help me? Quote
easegura777 Posted July 8, 2020 Posted July 8, 2020 I have the same problem, could you support us !! Quote
Sherzod Posted July 9, 2020 Posted July 9, 2020 On 6/24/2020 at 8:19 PM, ISIDORIO said: image does not change at run time in the ontrigger event does not work. Look. Sorry for the late response. 12 hours ago, easegura777 said: I have the same problem, could you support us !! We will check it. Quote
Hayri ASLAN Posted July 9, 2020 Posted July 9, 2020 Hi, You can't change the trigger class after rendered. Please add 2 triggers to the edit. Set both visible:=True; On ready of form hide one of them: with UniEdit1, JSInterface do begin JSCall('triggers.t2.hide'); end; And if you want to show the other one when you click to button use : with UniEdit1, JSInterface do begin JSCall('triggers.t1.hide'); JSCall('triggers.t2.show'); end; Quote
easegura777 Posted July 10, 2020 Posted July 10, 2020 13 hours ago, Hayri ASLAN said: Hi, You can't change the trigger class after rendered. Please add 2 triggers to the edit. Set both visible:=True; On ready of form hide one of them: with UniEdit1, JSInterface do begin JSCall('triggers.t2.hide'); end; And if you want to show the other one when you click to button use : with UniEdit1, JSInterface do begin JSCall('triggers.t1.hide'); JSCall('triggers.t2.show'); end; Show this message, use the component TunimEdit Quote
Sherzod Posted July 10, 2020 Posted July 10, 2020 10 minutes ago, easegura777 said: Show this message, use the component TunimEdit Try getTriggers() instead of triggers Quote
easegura777 Posted July 10, 2020 Posted July 10, 2020 10 hours ago, Sherzod said: Try getTriggers() instead of triggers Thanks, it worked!! 1 Quote
herculanojs Posted January 8, 2021 Posted January 8, 2021 On 7/9/2020 at 11:43 AM, Hayri ASLAN said: Hi, You can't change the trigger class after rendered. Please add 2 triggers to the edit. Set both visible:=True; On ready of form hide one of them: with UniEdit1, JSInterface do begin JSCall('triggers.t2.hide'); end; And if you want to show the other one when you click to button use : with UniEdit1, JSInterface do begin JSCall('triggers.t1.hide'); JSCall('triggers.t2.show'); end; Hide works fine, but show gives error. Quote
Hayri ASLAN Posted January 8, 2021 Posted January 8, 2021 1 hour ago, herculanojs said: Hide works fine, but show gives error. Hi can you please create a test case? Are you using onready event? Quote
herculanojs Posted January 11, 2021 Posted January 11, 2021 On 1/8/2021 at 12:17 AM, Hayri ASLAN said: Hi can you please create a test case? Are you using onready event? I was able to identify the problem. For some reason when creating the triggers and leaving the same visible = false, they were not found afterwards. Tanks 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.