Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Swapping between MDI children forms

Posted on 1998-10-18
4
Medium Priority
?
367 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 150 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…

618 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