Maurizio Del Magno Posted September 17, 2017 Posted September 17, 2017 Good morning to all of you. I'm new to uniGUI and I'm trying the trial edition. If I have a TUniForm (TUniMainForm) with a TUniButton on it and I have decorated this button with a custom RTTI attribute and at runtime my code search for it, the attribute is not found (not exist). Why? What's different than a normal application? (where of course it works properly). Is anyone able to answer me? Many thanks. Quote
Administrators Farshad Mohajeri Posted September 18, 2017 Administrators Posted September 18, 2017 Can you send a code sample please? Quote
Maurizio Del Magno Posted September 18, 2017 Author Posted September 18, 2017 How can I send a file to the forum discussion? Quote
Maurizio Del Magno Posted September 18, 2017 Author Posted September 18, 2017 You can download an example project here: https://drive.google.com/open?id=0B-6C95AnTX62UFBvNlFUSG9LQ0E Quote
Davide Visconti Posted November 23, 2018 Posted November 23, 2018 Good morning, I have the same problem. Have you found a solution? Quote
Bresler Posted July 3, 2019 Posted July 3, 2019 Hi This issue still ramins. You have to change the Rtti visibility of your Forms if you want to see your custom methods, private objects or custom properties. Workarround: {$RTTI EXPLICIT METHODS([vcPrivate..vcPublished]) PROPERTIES([vcPrivate..vcPublished]) FIELDS([vcPrivate..vcPublished])} This way everything will be visible using Rtti. Regards Quote
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.