Jump to content

.setText UnimButton


gerhardhziegler

Recommended Posts

Good evening,

 

is there a reason that UnimButton1.JSInterface.JSCall('element.setText', ['NewText']); should not work. I would like to use it to change the text of a button after clicking it (maybe also disable it, so the user might not click again).

Any ideas what I did wrong (again)?

Gery

Link to comment
Share on other sites

5 hours ago, gerhardhziegler said:

is there a reason that UnimButton1.JSInterface.JSCall('element.setText', ['NewText']); should not work.

Hello,

Simply use the Caption property.

5 hours ago, gerhardhziegler said:

maybe also disable it, so the user might not click again

Use the ScreenMask property.

UnimButton -> ScreenMask -> Enabled = True

Link to comment
Share on other sites

Just now, gerhardhziegler said:

I would just like to change the state of the button, before the function is doing some things, that need time (the user could click again)

 

10 hours ago, Sherzod said:

Use the ScreenMask property.

UnimButton -> ScreenMask -> Enabled = True

?

Link to comment
Share on other sites

3 minutes ago, gerhardhziegler said:

I just want the button state to change and to continue with my procedure (thats connects to another database and those procedure needs some seconds). Meanwhile the button should be disabled.

You can also try to use this code:

UnimButton -> ClientEvents -> ExtEvents ->

function tap(sender, e, eOpts)
{
    this.showMask();
}

 

Link to comment
Share on other sites

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...