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 » always-on-top window
always-on-top window [message #4620] Thu, 17 August 2006 10:24 Go to next message
qwerty is currently offline  qwerty
Messages: 130
Registered: May 2006
Experienced Member
how to do it in upp for any window?
thnx
Re: always-on-top window [message #4626 is a reply to message #4620] Thu, 17 August 2006 13:26 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
So far, there is no direct support (but I think it will be added soon).

In Win32 use:

window.ExStyle(window.GetExStyle() | WS_EX_TOPMOST);

As soon as I will know how to do the same in X11, I will add TopMost method. (Any hints? Wink

Mirek
Re: always-on-top window [message #4635 is a reply to message #4626] Thu, 17 August 2006 17:49 Go to previous messageGo to next message
gprentice is currently offline  gprentice
Messages: 260
Registered: November 2005
Location: New Zealand
Experienced Member


I would like this feature too.

Doesn't the fact that wxWidgets can do this on Linux mean that it's possible in X11, even though wxW goes through GTK or whatever. I'm kinda sick at the moment (and for a while) otherwise I would try to find out.

Graeme
Re: always-on-top window [message #4645 is a reply to message #4626] Thu, 17 August 2006 22:32 Go to previous messageGo to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
Yes, Mirek, I got hints for you, hints galore Very Happy

http://standards.freedesktop.org/wm-spec/wm-spec-latest.html #id2511314


NET_WM_STATE_ABOVE, in case you are in a hurry.

Guido
Re: always-on-top window [message #4651 is a reply to message #4645] Fri, 18 August 2006 09:19 Go to previous messageGo to next message
qwerty is currently offline  qwerty
Messages: 130
Registered: May 2006
Experienced Member
yess, thank you thank you!! all of you!

[Updated on: Fri, 18 August 2006 09:20]

Report message to a moderator

Re: always-on-top window [message #4665 is a reply to message #4645] Fri, 18 August 2006 14:41 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
guido wrote on Thu, 17 August 2006 16:32

Yes, Mirek, I got hints for you, hints galore Very Happy

http://standards.freedesktop.org/wm-spec/wm-spec-latest.html #id2511314


NET_WM_STATE_ABOVE, in case you are in a hurry.

Guido


Seems to work, thanks!

Mirek
Re: always-on-top window [message #5007 is a reply to message #4665] Wed, 30 August 2006 18:03 Go to previous messageGo to next message
gprentice is currently offline  gprentice
Messages: 260
Registered: November 2005
Location: New Zealand
Experienced Member

Will this feature be in a dev release at some stage?

Graeme
Re: always-on-top window [message #5010 is a reply to message #5007] Wed, 30 August 2006 19:06 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
gprentice wrote on Wed, 30 August 2006 12:03


Will this feature be in a dev release at some stage?

Graeme




When Daniel finally finds the time to start makeing dev releases once again Smile

Mirek

[Updated on: Wed, 30 August 2006 19:07]

Report message to a moderator

Re: always-on-top window [message #5014 is a reply to message #5010] Wed, 30 August 2006 21:41 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

luzr wrote on Wed, 30 August 2006 13:06

gprentice wrote on Wed, 30 August 2006 12:03


Will this feature be in a dev release at some stage?

Graeme




When Daniel finally finds the time to start makeing dev releases once again Smile

Mirek

I skip one dev release because there were not too much changes and Mirek was working on wince port and in fact upp was ready to compile on Friday. Anyway, I'm gonna release new dev today.
Re: always-on-top window [message #5015 is a reply to message #5014] Wed, 30 August 2006 21:44 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
unodgs wrote on Wed, 30 August 2006 15:41

luzr wrote on Wed, 30 August 2006 13:06

gprentice wrote on Wed, 30 August 2006 12:03


Will this feature be in a dev release at some stage?

Graeme




When Daniel finally finds the time to start makeing dev releases once again Smile

Mirek

I skip one dev release because there were not too much changes and Mirek was working on wince port and in fact upp was ready to compile on Friday. Anyway, I'm gonna release new dev today.


Yes, sorry for the ranting. You are right.

Mirek
Re: always-on-top window [message #5023 is a reply to message #5015] Thu, 31 August 2006 01:28 Go to previous messageGo to next message
gprentice is currently offline  gprentice
Messages: 260
Registered: November 2005
Location: New Zealand
Experienced Member

Thanks guys.

Graeme
Re: always-on-top window [message #5050 is a reply to message #5023] Fri, 01 September 2006 09:36 Go to previous messageGo to next message
gprentice is currently offline  gprentice
Messages: 260
Registered: November 2005
Location: New Zealand
Experienced Member

So now TheIde or the help windows could have a "keep on top" option somewhere, so e.g. you can still see the help when you switch back to the editor window.

BTW - if you have an assembly that accidentally or otherwise has a path setting with something like C:\ in it, theide consumes rather a lot of CPU time for quite a while as it scans for packages (I think. - I started theide and the hard drive became busy and no window appeared; after a while I used task manager to shut theide down). A low priority improvement that could be made here is to show a progress window with a cancel button and to reduce the CPU load somehow (or yield more often) if the process doesn't complete in say 15 seconds. I had to wait many seconds for task manager to appear so I could shut theide down when this happened to me recently. Not sure why really, so maybe this is a Windows problem.

Graeme
Re: always-on-top window [message #5053 is a reply to message #5050] Fri, 01 September 2006 10:22 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Help window: Yes, but... I plan to integrate help with the main theide window in next release (I mean after 611 version). That should be the final solution Smile

Mirek
Previous Topic: design custom controls
Next Topic: How to call instance in main.cpp
Goto Forum:
  


Current Time: Fri Mar 29 14:56:24 CET 2024

Total time taken to generate the page: 0.01133 seconds