Mauri Posted October 12, 2016 Posted October 12, 2016 I am creating a custom component and looked UniGUI other components to see the methods used to manipulate data for example TUniCustomDBComboBox, TUniCustomDBMemo! In all they have an assignment for InternalReadOnly variable (InternalReadOnly: = not AllowEdit) and also compared the variable 'SelfUpdating', but realized that this variable is in UniGUIClasses class. I have put this class in the uses clause and when compiling is showing the following messages: Undeclared identifier: 'InternalReadOnly' Undeclared identifier: 'SelfUpdating' What could be wrong? Examples where it is being using: unit ISComponet; interface uses Classes, Vcl.Graphics, DesignIntf, Controls, DBCtrls, DB, UniPanel, UniGUIClasses, UniGUIInterfaces, uniGUICoreInterfaces, UniGUITypes, UniDBUtils; type TISComb = class(TISBase, IUniDBControl) private ... procedure ActiveChange(Sender: TObject); ... protected procedure DataChange(Sender: TObject); virtual; ... public ... published ... end; procedure Register; implementation procedure TISComb.ActiveChange(Sender: TObject); begin if (not IsDesigning) and (not IsDestroying) then InternalReadOnly:= not AllowEdit; // Here give problem compiling end; procedure TISComb.DataChange(Sender: TObject); begin if SelfUpdating then // Here give problem compiling Exit; ... end; ... Best Regards, Mauri Member ID: 00404 Quote
Administrators Farshad Mohajeri Posted October 13, 2016 Administrators Posted October 13, 2016 Hi, Where does below class come from? TISBase Quote
Administrators Farshad Mohajeri Posted October 13, 2016 Administrators Posted October 13, 2016 Member ID: 00404 Please visit here: http://forums.unigui.com/index.php?/topic/6291-important-announcement/?p=32063 Quote
Mauri Posted October 13, 2016 Author Posted October 13, 2016 The TISBase class is inherited from TUniPanel class. My new component inherits all the properties of a Panel (TUniPanel) and adds the data connection to display the Caption. Quote
Mauri Posted October 13, 2016 Author Posted October 13, 2016 Please visit here: http://forums.unigui.com/index.php?/topic/6291-important-announcement/?p=32063 Farshad, I have modified my email to use the portal !!! Quote
Mauri Posted October 15, 2016 Author Posted October 15, 2016 Farshad, The TISBase class is inherited from TUniPanel class. My new component inherits all the properties of a Panel (TUniPanel) and adds the data connection to display the Caption. Any ideas about the problem? 0 Quote MultiQuote Edit Quote
Administrators Farshad Mohajeri Posted October 16, 2016 Administrators Posted October 16, 2016 You need to derive it from TuniFormControl TUniPanel doesn not provide those methods Quote
Mauri Posted October 16, 2016 Author Posted October 16, 2016 Hi Farshad, Thanks for the reply, I will change the inheritance of my component! 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.