Jump to content

Recommended Posts

Posted
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?
  • 2 weeks later...
Posted
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.

Posted

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;

 

Posted
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

image.png.3316f50b12331bbd97665cacf36f2963.png

  • 5 months later...
Posted
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.

image.png.15822392ad169a1ddff3889164110555.png

image.png

Posted
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...