Jump to content

uninumberedit onchange


jahlxx

Recommended Posts

  • 5 months later...

Hi,

 

Thanks for the test case, need to analyze...

 

But, of course, you can use one event hadler for two events for now:

procedure TMainForm.UniNumberEdit1Change(Sender: TObject);
begin
  Edit1.text := 'value ' + uninumberedit1.text;
end;

OnChange          -> UniNumberEdit1Change,

OnChangeValue -> UniNumberEdit1Change

Link to comment
Share on other sites

  • Administrators

I'm experiencing some extrange behaviour with this,

 

Attached is a sample project.

 

In the sample,works ok, but if you remove the UniNumberEdit1Change procedure, doesn't work as expected.

 

Thanks.

 

If you remove UniNumberEdit1Change the events will not be sent to the server each time user presses a key. Changes will be available only when an event is generated on the client.

 

You don't need to use OnChangeEvent. Just put something like a OK button or APPLY button to get values from Form when user has finished editing.

Link to comment
Share on other sites

Ok.

 

 

The only way to do this works as I need is put the necessary code in the onchangevalue of the component, and in the onchange event, put something. A blank commented line is enough.

 

With this (extrange for me), works ok, and the onchangevalue event works.

 

Thanks.

Link to comment
Share on other sites

For example, in a form, I type the customerId.

 

If the curtomerid changes, I have to query from the database the payment terms, default address, etc.

 

In vcl apps, I do this operation in the onchange event.

 

Here, with unigui, I do the the same, but with onchengevalue.

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