Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
zaurus is currently offline  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?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: trayicon and shutdown
Next Topic: Borderless TopWindow
Goto Forum:
  


Current Time: Wed Aug 06 18:33:20 CEST 2025

Total time taken to generate the page: 0.03613 seconds