Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there any separator and a menu in VC++

Status
Not open for further replies.

firelex

Programmer
Joined
Jan 10, 2002
Messages
118
Location
DE
Hello, all!
Is there any possibility to create a separator in a in VC++ created dialog. As separator I mean a sunken line across the whole dialog to separate e.g. the "OK" and "Cancel" buttons from the rest of the dialog? I haven't found any such widget in controlelemnts list.
And the second: is there a menu widget in VC++ such as a menue widget in TCL? Or should one use only those comboboxes?

(I am a newbie in VC++ :-]]])

Thanx
 
>Is there any possibility to create a separator in a in VC++ created dialog.

1) Choose the Picture item.
2) Picture->Properties->Type = Rectangle
3) Picture->Properties->Type = Etched
4) Resize the picture to Height 1.
5) Its now a sunken line.


/Per

if (typos) cout << &quot;My fingers are faster than my brain. Sorry for the typos.&quot;;
 
Correction:
3) Picture->Properties->Color = Etched



/Per

if (typos) cout << &quot;My fingers are faster than my brain. Sorry for the typos.&quot;;
 
You could use Group Box as a widget. Menu and ToolBars also are present.

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
Thanks PerFnurt! That a cool idea!

But a menu...
The only menu I found was a menu bar for &quot;File - Edit - ...&quot;
I meant a menu in a dialog as an element (like combobox etc.)
Something like this:
[tt]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_________________________________
Menu_label | Here the active menu item ### |
---------------------------------

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[/tt]
With &quot;###&quot; I mean a place to press a left mouse button to see /choose the rest of the menu items.

Any ideas?
 
On the dialogs Properties there is a Menu Combobox where you select the menu resource that you want associated with the dialog. Select a menu resource and build the application and run it to see what happens.

-pete
 
OK. No menu, only comboboxes.
Can I make a combobox disabled - i.e. that the user cannot type anything in it, but only choose from the given elements?
 
Properties->Style : Set Type to DropList

There quite a lot of help in Visual Studio. If you'd have the Style tab activated and press F1 (for help) you would see this:

&quot;Drop List: This type is the similar to the drop-down style, but the edit-box control is replaced by a static-text item (which does not take user input) that displays the current selection in the list.&quot;

I dont mean to discourage you from asking questions - just want to point out that the answers might be closer than you think if you only go look for them...

/Per

if (typos) cout << &quot;My fingers are faster than my brain. Sorry for the typos.&quot;;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top