Solved

Display icon's as 16x16

Posted on 1998-04-15
1
219 Views
Last Modified: 2010-04-06
Using the ExtractIcon API function, i get icons which are
32x32. I want to resize these to 16x16 when:

1:  Showing them on a  TSpeedButton.Glyph.
2:  Drawing them on a popupmenu-canvas, using
ownerdraw menu's.

HowTo ?

0
Comment
Question by:mvz121697
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
rene100 earned 50 total points
ID: 1361531
Hi mvz

try to use the DrawIconEx function and set the cxWidth and cyWidth parameters to 16
For the parameter hdc, you can use in 1: the TSpeedButton.Glyph.Canvas.handle (or perhaps the TSpeedButton.Glyph.handle) and in
2: the tPopUp.canvas.handle

regards
rene100
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
Dev Express grid collapse 2 52
how to send memory stream from ics Client To ics server ? 11 204
how to update exe applicatio from internet ? 6 105
RESTRequest Parameter 4 78
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

737 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