Mauri Posted October 12, 2016 Share 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 Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 13, 2016 Administrators Share Posted October 13, 2016 Hi, Where does below class come from? TISBase Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 13, 2016 Administrators Share Posted October 13, 2016 Member ID: 00404 Please visit here: http://forums.unigui.com/index.php?/topic/6291-important-announcement/?p=32063 Link to comment Share on other sites More sharing options...
Mauri Posted October 13, 2016 Author Share 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. Link to comment Share on other sites More sharing options...
Mauri Posted October 13, 2016 Author Share 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 !!! Link to comment Share on other sites More sharing options...
Mauri Posted October 15, 2016 Author Share 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 Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 16, 2016 Administrators Share Posted October 16, 2016 You need to derive it from TuniFormControl TUniPanel doesn not provide those methods Link to comment Share on other sites More sharing options...
Mauri Posted October 16, 2016 Author Share Posted October 16, 2016 Hi Farshad, Thanks for the reply, I will change the inheritance of my component! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now