?
Solved

Modal Dialog with Modeless 'Floating' Child Forms

Posted on 1998-11-24
7
Medium Priority
?
399 Views
Last Modified: 2010-05-18
I have to create a modal application form.  I would like this modal form to have 'floating' toolpads, each having titlebars that are the same color as the active modal main application form.  I know how to reparent these forms so that they stay on top of main app, and are minimized/destroyed when the main app is minimized destroyed.

How do I allow input to be received from these modeless toolpads without changing the modal nature of the main application window (this is important as this main applcation is part of an Active X DLL, which has to halt execution of any client applications that call it).

Finally, how do I set the grey titlebar colors of the modeless forms to match that of the modal main app form?

I think the answers to these questions relate to windows API calls, which I know very little about.  Code examples are greatly appreciated.

Thanks very much.
0
Comment
Question by:danG
[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
  • 3
  • 2
  • 2
7 Comments
 
LVL 4

Expert Comment

by:idcanada
ID: 1446637

Hi,
I had a simular problem and resolved it by setting the focus to the form on every
loss of focus event inside the form.

So, on the form.deactivate and lostfocus I give the form focus.
Me.SetFocus.

You could also use a timer for this...
but I prefer the other way.

Good Luck
0
 

Author Comment

by:danG
ID: 1446638
Thanks for your answer, I can see its usefulness, but I would like to open the question up for the possibility of receiving an API related solution.
0
 

Author Comment

by:danG
ID: 1446639
Adjusted points to 205
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Expert Comment

by:idcanada
ID: 1446640

People never want the fastest answer,
just the more complicated it looks... the better it is.

You could use the SetFocus API call, however,
Place a timer and test which preforms better. (Speed)

The simple setfocus of VB does the job better.

0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1446641
Give them the toolbox window style. In vb, it's a border setting I think
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1446642
0
 
LVL 13

Accepted Solution

by:
Mirkwood earned 600 total points
ID: 1446643
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month8 days, 14 hours left to enroll

764 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