?
Solved

How may i put a ComboBox on a ToolBar ?

Posted on 1997-01-06
1
Medium Priority
?
268 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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

770 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