Board index » delphi » Accessing statusBar panels from a class through pointers
Ettore Carrara
![]() Delphi Developer |
Tue, 13 Jul 2004 19:10:45 GMT
Accessing statusBar panels from a class through pointers
Hi everybody,
I have a class that performs some tasks like connecting to a server and I tried doing the following: In my class, I defined the following Type and properties: Type PStatusPanel = ^TStatusPanel; [..] Then I thought to put some code like this when the class was performing if assigned(InfoReceiver) then InfoReceiver.Text := 'Some Text'; The problem is, when I make an instance of TMyClass, I cannot do the MyClass.InfoReceiver := @sbMain.Panels[0]; where sbMain is a status Bar because I get a "variable required" error Any clues ? Thank you. -- |