Solved

Startup dialog box

Posted on 1997-05-16
2
310 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

777 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