Solved

Startup dialog box

Posted on 1997-05-16
2
299 Views
Last Modified: 2006-11-17
using vc++ 4.0 std ed.
I am new to vc -- so please be clear and detailed
Below is a description of how I want my app to start..

** START OF DESCRIPTION/PSEUDO CODE FOR PRG.
1. User starts program..
        Modeless dialog box appears without menu or tool bars, etc....just a framed colored box, ...... top part contains a bitmap (.bmp) to display                                       company name (or something). The lower 3/4 of the box contain nice big 3-D push buttons. Each button is a choice, such as......
             
                Cash Sale       Vendors
                Products         Customers
                Reports           Inventory
                             Exit

2. User clicks on a button, 1st box disappears and another appropriate window with          appropriate std. menus appears,...he does what he needs to, closes that window, and is  then automatically returned to the startup window  with the buttons again to         choose another action or to exit.
********************
******************** END OF DESCRIPTI0N

Questions:
How do you alter the background color of just this one box?
Can I put a .bmp in just part of this box?
Any other suggestions or comments on the above would be appreciated.
Thanks, Pete

0
Comment
Question by:petlin
2 Comments
 
LVL 10

Accepted Solution

by:
RONSLOW earned 100 total points
Comment Utility
"How do you alter the background color of just this one box?"

Which box?  The opening dialog?  I may have some code which shows how to do this which I could eMail you.  However, if you're putting a bitmap up there anyway, why bother, as the bitmap would/could/should cover the dialog anyway (see below)

"Can I put a .bmp in just part of this box?"

Very easy (assuming Windows) just put a bitmap control there (I do this for a splash screen using MFC/VC++).  However, I think it would be easier still to fill the entire dialog with a bitmap background - and make sure the bitmap background leaves a nice uncluttered space for the buttons at the bottom.

I have some C code which shows how to have a dialog with a no-standard background and have transparent buttons sitting over the top -- cool !!

"Any other suggestions or comments on the above would be appreciated."

If the first box is truly modless, there is no need for it to "disappear" - it can stay there with the other window(s) sitting on top.  In fact, each of the windows that the 1st one starts could be a separate application if you like (rather than part of one big app) and the opening dialog could simply create a process for each of the others.  Of course, that would mane the app for the opening dialog would not need to be modeless - it could just be a standard dialog app.

0
 

Author Comment

by:petlin
Comment Utility
Yes, send me the code you mentioned.
petlin@hypercon.com
You say the buttons would be transparent, but is there a way to set a different color for them, how?
From where and in which class would this startup box be called?
Thanks, again
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

762 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

12 Experts available now in Live!

Get 1:1 Help Now