Jump to content

Property Editor to TuniDBGridColum


CiceroBillo

Recommended Posts

Hi!

 

I've developed a PropertyEditor to work with some properties from uniGUI. I have a problem wih property Hint from Columns of uniDBGrid.

I'm using "GetComponent(0) as TComponent" and it work for all components until now. Just columns of uniDBGrid answer me with an error message "Invalid TypeCast". How can I catch the column selected from uniDBGrid to edit Hint property using my PropertyEditor ("GetComponent(0) as T???" instead of "GetComponent(0) as TComponent")?

 

TIA

Link to comment
Share on other sites

Do you know what is PropertyEditor, right? Them, I'm tryng to intercept the Hint TStringProperty Editor and override it to do what I need to do. I've register below editor for the Hint property to all uniGUI components inherited from TComponent. TuniDBGridColumn show me TVCLDBColumns class. Which is the ancestor of class TVCLDBColumns ? 

 

 Example code removed due to nobody from support answer me.

 

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