Jump to content

Recommended Posts

Posted

Hi

   Same time when exist a TUniPageControl.OnChangeValue, this event is trigged before form create event is finished !!! 
   In this cases if you access other component of form in OnChaveValue, could be that it´s not created, this raise a error because that component is not created yet.
   I think this event is trigged whe pagecontrol is created, but could have others component to be create yet.

 

Some advise about this ?

 

Thanks. 

Posted

Error occurs only on event  OnChangeValue   if I use the same code in OnChange it´s work, but in same case OnChangeValue is trigged if a set   ActivePage := Tabxxx, onChangeValue is trigged not OnChange

Ex: If I use this code this event is trigged before btnDependencia is created, occurs error in btnDependencia  is Nil yet.
But this event is trigged when form is creating... 
image.png.7b7240b7ee40d57246d357f2b1cc2793.png

 

But if I use this event, its work perfect, but if I set   ActivePage := Tabxxx only OnChangeValue is trigged because this I try to use OnChaveValue

image.png.abd4261ae7993f0c8386ab102d01e830.png

 

Thanks.

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