Solved

How may i put a ComboBox on a ToolBar ?

Posted on 1997-01-06
1
252 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
1 Comment
 

Accepted Solution

by:
msaraiva earned 50 total points
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now