Solved

Swapping between MDI children forms

Posted on 1998-10-18
4
361 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
[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
  • 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

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…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

696 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