Solved

Swapping between MDI children forms

Posted on 1998-10-18
4
354 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
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…
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 …

929 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

8 Experts available now in Live!

Get 1:1 Help Now