U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » TopWindow&PopUp, TrayIcon » runtime tray icon? Draw a number?
Re: runtime tray icon? Draw a number? [message #8233 is a reply to message #8230] Thu, 22 February 2007 14:42 Go to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
DrGary wrote on Thu, 22 February 2007 01:01

Hey, that was pretty easy.



Thanks. That is what we want U++ to be Wink

Quote:


It looks like a mask is necessary. Without the line that includes 'img.Alpha().DrawText()', only a black square appears. Is this correct?



Yes, because initial pixels are all set to Color(0, 0, 0).

You can clear them to white (using DrawRect).

Note that until you use Alpha(), Image is Opaque. First call to Alpha makes it 100% transparent.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Borderless TopWindow
Next Topic: How to add Topwindow icon?
Goto Forum:
  


Current Time: Mon Oct 12 18:58:45 GMT+2 2026

Total time taken to generate the page: 0.00545 seconds