Solved

Startup dialog box

Posted on 1997-05-16
2
305 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
ID: 1163451
"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
ID: 1163452
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

911 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

23 Experts available now in Live!

Get 1:1 Help Now