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 » U++ Widgets - General questions or Mixed problems » Change window style
Re: Change window style [message #37526 is a reply to message #37523] Sun, 14 October 2012 21:55 Go to previous messageGo to previous message
Mircode is currently offline  Mircode
Messages: 17
Registered: September 2012
Promising Member
Now I found the method

ToolWindow();

Sadly, it does not allow the window to have a minimize button. But I can live with the fact that [X] minimizes my window to tray.

I did it using:
WhenClose=THISBACK(Hide);

To actually close the program, I have a right-click menu in the tray icon with an exit option.

First I tried
bar.Add(t_("Exit"), THISBACK(Close));

nothing happened. Then I created an own method, which called close:
bar.Add(t_("Exit"), THISBACK(closeProgram));
with
void closeProgram(){Close();}
being a method of my main window. Nothing happened. Then I tried Break() instead of Close(). Now it works. I dont know why close doesnt. (Close also does not minimize the window, so the problem is not that I changed the WhenClose thingy).
 
Read Message
Read Message
Read Message
Previous Topic: Simulate a button click
Next Topic: ColumnList callback
Goto Forum:
  


Current Time: Sat May 04 15:10:53 CEST 2024

Total time taken to generate the page: 0.02633 seconds