|
|
Home » U++ Library support » TopWindow&PopUp, TrayIcon » TrayIcon is driving me insane
TrayIcon is driving me insane [message #47804] |
Sat, 01 April 2017 05:23  |
germax
Messages: 20 Registered: March 2017 Location: germany
|
Promising Member |
|
|
Hi
I'm really going MAD with that fricking TrayIcon the last couple of days...
I have a TopWindow that gets hidden;
and that TrayIcon pops up no problem..
BUT no matter what I do, I cannot get that TrayIcon to bubble up an event back to show the TopWindow again.
I cannot pass my TopWindow as a reference to the Tray either to use that
(or say I'm too unexperienced in c++ to know how)
So please anyone,
please a simple Example on how to get my TopWindow back with a menu-click (or LeftDouble or whatever) would be very much appreciated.
Just assume some class MyAppThingy
calling the struct TrayIcon (as found in the -too shallow to be usefull- example )
struct App : TrayIcon {
virtual void LeftDouble() {
Icon(Tray::Icon1());
PromptOK("TrayIcon launched this prompt!");
Icon(Tray::Icon());
// I'd like to re-show TopWindow from here instead of just a useless Prompt.
}
virtual void Menu(Bar& bar) {
bar.Add("Info..", THISBACK(LeftDouble));
bar.Separator();
bar.Add("Exit", THISBACK(Break));
}
typedef App CLASSNAME;
App() {
Icon(Tray::Icon());
Tip("This is U++ TrayIcon");
}
};
And I don't seem to get anywhere..
A simple IDOK is all I need really a way to reference the existing MyAppThingy Window
(passing it to "App" on creation or something)
I know that if you are (UNLIKE ME) someone with some c++ experience, this is just a no brainer most likely;
but your help is very much appreciated!
Thanks a ton
Alex
PS I don't have a codesample really.. since it doesn't work it's been removed in anger and rage 
[EDIT]
Hi,
fresh day, relaxed mind....
and I stumbled across the EyeCare example;
which frankly did exactly what I needed!
So I just copied that order of operation and now I'm a happy camper
See you in my next breakdown
that other german guy
[Updated on: Sat, 01 April 2017 16:05] Report message to a moderator
|
|
|
Re: TrayIcon is driving me insane [message #47808 is a reply to message #47804] |
Sat, 01 April 2017 19:25   |
 |
Klugier
Messages: 1099 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello and welcome in our community ,
It is nice to hear that you solve the obstacle. In upp example/tutorials you can find useful code examples that covers the majority of upp framework. Even now for the moder u++, we modernized our tutorials to be compatibility with c++11/14.
And even if something is not available at the tutorial/examples, you could always just look to bazaar solutions.
Sincerely,
Klugier
U++ - one framework to rule them all.
[Updated on: Sat, 01 April 2017 19:26] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Sun May 11 17:25:54 CEST 2025
Total time taken to generate the page: 0.03091 seconds
|
|
|