[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Display icon's as 16x16

Posted on 1998-04-15
1
Medium Priority
?
232 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 200 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

649 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