Solved

How I can create Icon in Windows 2000?

Posted on 2001-07-08
5
141 Views
Last Modified: 2010-04-06
Hi,

How I can create an transparent icon in Windows 2000 without using graphics unit?

In other word, I'd like to create transparent icon by using WinApi command only.

btw, I use Delphi 5 Std.

Thank you for your help
0
Comment
Question by:linux2000
5 Comments
 
LVL 2

Expert Comment

by:joepezt
ID: 6263620
are you talking about buttons with icons in them?. or icons which can be double clicked in windows?

if you use flatbuttons, i guess  you can try

speedbutton1.Glyph.TransparentColor := clWhite;
0
 
LVL 1

Expert Comment

by:alx512
ID: 6263933
The CreateIcon function creates an icon that has the specified size, colors, and bit patterns.

HICON CreateIcon(
  HINSTANCE hInstance,    // handle to application instance
  int nWidth,             // icon width
  int nHeight,            // icon height
  BYTE cPlanes,           // number of planes in XOR bitmask
  BYTE cBitsPixel,        // number of BPP in XOR bitmask
  CONST BYTE *lpbANDbits, // AND bitmask
  CONST BYTE *lpbXORbits  // XOR bitmask
);
Parameters
hInstance [in] Handle to the instance of the module creating the icon.
nWidth [in] Specifies the width, in pixels, of the icon.
nHeight[in] Specifies the height, in pixels, of the icon.
cPlanes[in] Specifies the number of planes in the XOR bitmask of the icon.
cBitsPixel [in] Specifies the number of bits-per-pixel in the XOR bitmask of the icon.
lpbANDbits [in] Pointer to an array of bytes that contains the bit values for the AND bitmask of the icon. This bitmask describes a monochrome bitmap.
lpbXORbits [in] Pointer to an array of bytes that contains the bit values for the XOR bitmask of the icon. This bitmask describes a monochrome or device-dependent color bitmap.
0
 

Author Comment

by:linux2000
ID: 6264545
Do you know how I can create a transparent icon in Win2000 by using CreateIconIndirect command?

Thank you for your help

 
0
 
LVL 26

Expert Comment

by:Russell Libby
ID: 8702591
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

To be PAQ/Refund

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Thank you,
Russell

EE Cleanup Volunteer
0
 

Accepted Solution

by:
PashaMod earned 0 total points
ID: 8818559
Per recommendation,

PashaMod
Community Support Moderator @Experts Exchange
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question