Solved

Startup dialog box

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

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.

Question has a verified solution.

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

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
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 tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

632 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