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

x
?
Solved

Modal Dialog with Modeless 'Floating' Child Forms

Posted on 1998-11-24
7
Medium Priority
?
405 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

604 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