Home » U++ Library support » TopWindow&PopUp, TrayIcon » Problem with SetTimeCallback in TrayIcon
Re: Problem with SetTimeCallback in TrayIcon [message #6040 is a reply to message #6026] |
Sun, 29 October 2006 06:32   |
zaurus
Messages: 42 Registered: May 2006
|
Member |
|
|
Hi Bas!
Thanks for the link, but this is inside a Ctrl where it also works for me. I have used it in this way many times, but now I have a class inherited from TrayIcon and then SetTimeCallback seems to be not available. Even TrayIcon is inherited from Ctrl, so in my logic it should work, but I'm just a beginner in U++ and so most likely I did something wrong.
This is from the class declaration:
class MyClass : public TrayIcon {
public:
typedef MyClass CLASSNAME;
MyClass();
private:
void OnTimer();
Then this in my constructor:
SetTimeCallback(1500, THISBACK(OnTimer));
And I get this error during compiling:
C:/UPP/uppsrc/CtrlCore/CtrlCore.h: In constructor `MyClass::MyClass()':
C:/UPP/uppsrc/CtrlCore/CtrlCore.h:936: error: `void Ctrl::SetTimeCallback(int, Callback, int)' is inaccessibl
e
C:\MyApps\MyClass\main.cpp:17: error: within this context
C:/UPP/uppsrc/CtrlCore/CtrlCore.h:936: error: `void Ctrl::SetTimeCallback(int, Callback, int)' is inaccessibl
e
C:\MyApps\MyClass\main.cpp:17: error: within this context
C:\MyApps\MyClass\main.cpp:17: error: `Ctrl' is not an accessible base of `MyClass'
Any ideas how to get it working?
|
|
|
Goto Forum:
Current Time: Wed Aug 06 02:37:07 CEST 2025
Total time taken to generate the page: 0.03452 seconds
|