[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

How may i put a ComboBox on a ToolBar ?

Posted on 1997-01-06
1
Medium Priority
?
272 Views
Last Modified: 2013-12-03
I need to know how to add a ComboBox on a ToolBar (TControlBar). In the documentation they say that i must use the TControlGadget class, but i can't manage this. I don't understand how to use this class...
Please : help me !
0
Comment
Question by:Alexander
[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
1 Comment
 

Accepted Solution

by:
msaraiva earned 100 total points
ID: 1298748
Let's say you have a TComboBox object and a TControlBar. All you need is to vreate a TControlGadget based on another control, in this case, TComboBox. This also works with the other controls (TEdit, ... )

/* code begins */

TControlBar* cbar = new TControlBar(frame);
/* frame is the frame window */

TComboBox *p_cb=new TComboBox( frame, RES_ID );
/* RES_ID is the identifier of the new control */

TControlGadget cg ( *p_cb );

cbar->Insert( cg );



0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

650 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