Solved

Swapping between MDI children forms

Posted on 1998-10-18
4
352 Views
Last Modified: 2013-12-03
Hi

In an MDI application, we can use the Ctrl-F6 to move between the children forms. How do I disable this hot key programmitcally? Is there a message I can trap for?

PS: I am creating an MDI application in Delphi and have several children, but do not want the user to be able to swap between them...

Regards
Keith
0
Comment
Question by:keithcsl
  • 2
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 50 total points
Comment Utility
Trap the WM_CHAR message in your parent dialog. If it is CTRL-F6 then ignore the key, otherwise process the message normally.
0
 
LVL 1

Author Comment

by:keithcsl
Comment Utility
rwilson

i have looked at the WM_CHAR message, but don't know how to set chCharCode and lKeyData to look for Ctrl-F6

Can u help?

Keith
0
 
LVL 12

Expert Comment

by:rwilson032697
Comment Utility
chCharCode will be set to VK_F6. Use GetKeyState(VK_CONTROL) to see if the control key is held down (using IKeyData directly is nasty)

Cheers,

Raymond.
0
 
LVL 1

Author Comment

by:keithcsl
Comment Utility
thanks for ur help

i managed to get it going...

keith
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now