Solved

Startup dialog box

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Lambda for random numbers problem 7 119
best sources to up-to-date in C++? 8 91
Exception thrown at 0x00007FFD5BC81F28 7 50
learn programming 8 43
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…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
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 additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

807 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