Jump to content

Doubts ExtEvents UniComboBox


diegojmap

Recommended Posts

Good morning, I'm trying to create some validations, they need to be in ExtEvents. I don't have much knowledge.
I'm using as ClientEvents-Dynamic, I was able to use the
OnChange in a UniComboBox like this to play the information for a Memo:

UniComboBox1.ClientEvents.ExtEvents.Values ['change']: = 'function (sender, newValue) {MainForm.UniMemo1.setValue (newValue)}';

Actually I need to change the text of UniMemo1 according to the selection of UniComboBox1.

If it were in vcl I would use:

IF UniComboBox1.index = 0 then
   UniMemo1.Lines.text: = 'Text 0';


IF UniComboBox1.index = 1 then
   UniMemo1.Lines.text: = 'Text 1';

Is it possible to do this with ExtEvents?

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