Solved

Swapping between MDI children forms

Posted on 1998-10-18
4
359 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
ID: 1415378
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
ID: 1415379
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
ID: 1415380
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
ID: 1415381
thanks for ur help

i managed to get it going...

keith
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

809 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