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 » How to set window shape by means of a bitmap?
How to set window shape by means of a bitmap? [message #2862] Fri, 28 April 2006 13:38 Go to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
How to set window shape by means of a bitmap?
Re: How to set window shape by means of a bitmap? [message #2883 is a reply to message #2862] Sat, 29 April 2006 08:50 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
fudadmin wrote on Fri, 28 April 2006 12:38

How to set window shape by means of a bitmap?


One more inconvienient question? Smile
Re: How to set window shape by means of a bitmap? [message #2884 is a reply to message #2883] Sat, 29 April 2006 09:28 Go to previous messageGo to next message
gprentice is currently offline  gprentice
Messages: 260
Registered: November 2005
Location: New Zealand
Experienced Member
fudadmin wrote on Sat, 29 April 2006 18:50

fudadmin wrote on Fri, 28 April 2006 12:38

How to set window shape by means of a bitmap?


One more inconvienient question? Smile



What do you mean by "window shape"? Are you talking about top windows?

I thought the OS doesn't give you any choice?

Would you like a heart shaped window or something?

Curvy window edges sounds like a headache for repainting...

Graeme
Re: How to set window shape by means of a bitmap? [message #2885 is a reply to message #2884] Sat, 29 April 2006 09:43 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
gprentice wrote on Sat, 29 April 2006 08:28

fudadmin wrote on Sat, 29 April 2006 18:50

fudadmin wrote on Fri, 28 April 2006 12:38

How to set window shape by means of a bitmap?


One more inconvienient question? Smile



What do you mean by "window shape"? Are you talking about top windows?

I thought the OS doesn't give you any choice?

Would you like a heart shaped window or something?

Curvy window edges sounds like a headache for repainting...

Graeme



Have you ever heard about skins and how they are done?
Have you ever seen winamp?
Re: How to set window shape by means of a bitmap? [message #2887 is a reply to message #2885] Sat, 29 April 2006 09:57 Go to previous messageGo to next message
gprentice is currently offline  gprentice
Messages: 260
Registered: November 2005
Location: New Zealand
Experienced Member
fudadmin wrote on Sat, 29 April 2006 19:43

gprentice wrote on Sat, 29 April 2006 08:28

fudadmin wrote on Sat, 29 April 2006 18:50

fudadmin wrote on Fri, 28 April 2006 12:38

How to set window shape by means of a bitmap?


One more inconvienient question? Smile



What do you mean by "window shape"? Are you talking about top windows?

I thought the OS doesn't give you any choice?

Would you like a heart shaped window or something?

Curvy window edges sounds like a headache for repainting...

Graeme



Have you ever heard about skins and how they are done?
Have you ever seen winamp?


Um, well no, I've never seem Winamp but I remembered Windows media player has a weird shape in skins mode ... so I looked up "nonrectangular windows"
http://www.xploiter.com/programming/c/borland/2927.html

where you create an elliptic region. I do not know how you would convert a bitmap into an elliptic region.

Graeme
Re: How to set window shape by means of a bitmap? [message #2888 is a reply to message #2887] Sat, 29 April 2006 10:07 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
gprentice wrote



Um, well no, I've never seem Winamp but I remembered Windows media player has a weird shape in skins mode ... so I looked up "nonrectangular windows"
http://www.xploiter.com/programming/c/borland/2927.html

where you create an elliptic region. I do not know how you would convert a bitmap into an elliptic region.

Graeme



I know quite well how to make those things with Windows API. But I was just wondering if Ultimate++ has these kind of cross-platform capabilities like other toolkits have...
Re: How to set window shape by means of a bitmap? [message #2890 is a reply to message #2888] Sat, 29 April 2006 10:20 Go to previous messageGo to next message
gprentice is currently offline  gprentice
Messages: 260
Registered: November 2005
Location: New Zealand
Experienced Member
fudadmin wrote on Sat, 29 April 2006 20:07

gprentice wrote



Um, well no, I've never seem Winamp but I remembered Windows media player has a weird shape in skins mode ... so I looked up "nonrectangular windows"
http://www.xploiter.com/programming/c/borland/2927.html

where you create an elliptic region. I do not know how you would convert a bitmap into an elliptic region.

Graeme



I know quite well how to make those things with Windows API. But I was just wondering if Ultimate++ has these kind of cross-platform capabilities like other toolkits have...




Then you already knew the answer ...

BTW - which other toolkits can do what you asked, which was ... "How to set window shape by means of a bitmap?"


Re: How to set window shape by means of a bitmap? [message #2891 is a reply to message #2890] Sat, 29 April 2006 10:30 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
gprentice wrote on Sat, 29 April 2006 09:20

fudadmin wrote on Sat, 29 April 2006 20:07

gprentice wrote



Um, well no, I've never seem Winamp but I remembered Windows media player has a weird shape in skins mode ... so I looked up "nonrectangular windows"
http://www.xploiter.com/programming/c/borland/2927.html

where you create an elliptic region. I do not know how you would convert a bitmap into an elliptic region.

Graeme



I know quite well how to make those things with Windows API. But I was just wondering if Ultimate++ has these kind of cross-platform capabilities like other toolkits have...




1. Then you already knew the answer ...

2. BTW - which other toolkits can do what you asked, which was ... "How to set window shape by means of a bitmap?"





1. I didn't know the anwser. And I'm still thinking that there is
a possibility to use popup.

2. At least FOX:
from FXWindow.h
 /// Set window shape by means of region
  virtual void setShape(const FXRegion& region);

  /// Set window shape by means of bitmap
  virtual void setShape(FXBitmap* bitmap);

  /// Set window shape by means of icon
  virtual void setShape(FXIcon* icon);

  /// Clear window shape
  virtual void clearShape();

  /// Raise this window to the top of the stacking order
  virtual void raise();
Re: How to set window shape by means of a bitmap? [message #2895 is a reply to message #2891] Sat, 29 April 2006 10:48 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Yes, using popup is the right way, however unportable (popups act differently in linux - they can be just in foreground).

Mirek
Re: How to set window shape by means of a bitmap? [message #2896 is a reply to message #2895] Sat, 29 April 2006 11:08 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
luzr wrote on Sat, 29 April 2006 09:48

Yes, using popup is the right way, however unportable (popups act differently in linux - they can be just in foreground).

Mirek


Any plans to improve Popup or TopWindow behaviour?
Re: How to set window shape by means of a bitmap? [message #2899 is a reply to message #2896] Sat, 29 April 2006 11:46 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
fudadmin wrote on Sat, 29 April 2006 05:08

luzr wrote on Sat, 29 April 2006 09:48

Yes, using popup is the right way, however unportable (popups act differently in linux - they can be just in foreground).

Mirek


Any plans to improve Popup or TopWindow behaviour?




Just to make it clear, in standard X11, you cannot have "decoration-less" window that would allow user to make other window active. This is X11 feature and there is little that can be done with it.

I will explore "XShape" extension (used by that FX function), perhaps that is the way...

Mirek
Previous Topic: what is the situation with MDI and Dock widget in U++?
Next Topic: ColumnList question (sort column)
Goto Forum:
  


Current Time: Thu Apr 18 05:00:44 CEST 2024

Total time taken to generate the page: 0.02205 seconds