I.T. Discussion Community!
-Collapse +Expand
Delphi
Search Delphi Group:

Advanced
-Collapse +Expand Delphi To/From
To/FromCODEGuides
-Collapse +Expand Delphi Store
PRESTWOODSTORE

Prestwood eMagazine

September Edition
Subscribe now! It's Free!
Enter your email:

   ► KBProgrammingDelphi for W...Delphi Downloads  Print This     
  From the January 2013 Issue of Prestwood eMag
 
Delphi for Win32:
Component to Fix Alt Key Problem in Vista
 
Posted 12 years ago on 1/18/2008
Take Away: When run under Vista, your Delphi programs may respond poorly to presses of the Alt key; some of the components on your forms may disappear. Here is a free component that can help.
 A file from our File Library ► Delphi Downloads

KB100792

Download Link:

 Download Now: 792_Attachment.zip

We've encountered reports that some Delphi programs, when run on Vista, may misbehave when the user presses the Alt key. Controls on your forms may disappear until the Alt key is pressed again. Or not.

I can take no credit for this solution, nor even pretend that I understand all the issues involved. It has to do with the manner in which the VCL processes repaint messages.

The component offered here is simply freely available code. All I've done is create a package for it, add a bitmap for the component palette, and change the palette tab on which it will appear to "Misc."

To use:

- Unzip the attached zip to an empty directory of your choice,

- Read the comments in the pas file,

- In Delphi, use File | Open | Project, select the dpk file, click Compile, then click Install.

If you want to change the palette bitmap, simply use the Borland Image Editor, open the res file, open the bitmap, and change it as you please.

If you want it to appear on a different palette tab, edit the pas file, changing the first parameter to RegisterComponents from 'Misc' to whatever you'd like:

procedure Register;
begin
RegisterComponents('Misc', [TVistaAltFix]);
end;

Copyright, credits, and permission to use are commented in the pas file.

Finally, as indicated in the pas file, use at your own risk.

When run under Vista, your Delphi programs may respond poorly to presses of the Alt key; some of the components on your forms may disappear. Here is a free component that can help.

Download Link:

 Download Now: 792_Attachment.zip


Comments

0 Comments.
Share a thought or comment...
 
Write a Comment...
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1223A1
Enter key:
KB Post Contributed By Wes Peterson:

Wes Peterson is a Senior Programmer Analyst with Prestwood IT Solutions where he develops custom Windows software and custom websites using .Net and Delphi. When Wes is not coding for clients, he participates in this online community. Prior to his 10-year love-affair with Delphi, he worked with several other tools and databases. Currently he specializes in VS.Net using C# and VB.Net. To Wes, the .NET revolution is as exciting as the birth of Delphi.

Visit Profile

 KB Article #100792 Counter
19100
Since 4/2/2008

Follow PrestwoodBoards on: 


©1995-2020 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech