CiceroBillo Posted August 16, 2023 Share Posted August 16, 2023 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 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 16, 2023 Share Posted August 16, 2023 Hello, Can you tell us in more detail what kind of editor and how it works? Quote Link to comment Share on other sites More sharing options...
CiceroBillo Posted August 16, 2023 Author Share Posted August 16, 2023 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. Quote Link to comment Share on other sites More sharing options...
CiceroBillo Posted August 16, 2023 Author Share Posted August 16, 2023 Quote Link to comment Share on other sites More sharing options...
CiceroBillo Posted August 17, 2023 Author Share Posted August 17, 2023 Anyone, please? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.