Solved

How may i put a ComboBox on a ToolBar ?

Posted on 1997-01-06
1
263 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 50 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

730 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