Print Page | Close Window

Custom control on toolbar !

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=555
Printed Date: 10 May 2024 at 5:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Custom control on toolbar !
Posted By: Voha
Subject: Custom control on toolbar !
Date Posted: 22 March 2004 at 5:33pm

Hi all

I see xtpControlCustom  type of Control but cannot find information about it.

I have to put custom control on toolbar. This control is Label. In real life i have to create an information row. Something like Outlook has. And i thought that this Custom style is designed specialy for this.

Does anybody know about this?

Tnx.




Replies:
Posted By: robs
Date Posted: 22 March 2004 at 8:03pm

Here's how you can add a Vb6 comboBox. Combo1 is a comboBox on the form:

 

Dim mCustom     As ICommandBarControlCustom

Set mCustom = CommandBars.Add(xtpControlCustom, 990, "Search:")
With Combo1
   mCustom.Handle = .hWnd
   .AddItem "Customer"
    .AddItem "Orders"
    .ListIndex = 1
End With



Posted By: SuperMario
Date Posted: 22 March 2004 at 8:21pm
You might be looking for a ShortcutBarCaption control.  From your description it wounds like you are looking for the bar at the bottom of the toolbar that says something like "Inbox".  If that is the case, take a look at the ShortcutBar sample.


Posted By: Voha
Date Posted: 22 March 2004 at 11:13pm

Thank you all

This helped !



Posted By: Voha
Date Posted: 29 March 2004 at 10:54pm

Hi all again

I looked at ShortcutBarCaption control and noticed that it can not be put on MDI form.

Is this possible?

tnx



Posted By: Woody
Date Posted: 29 July 2004 at 8:28am
hi,
 
expanding on this question - how can I add standard Label control to the end of my toolbar (after the last button), to take up the remaining client width and display to the user the current form title? I need to do this on an MDI form, and can't just draw a label on the form. using a label gives me control over font, size etc unless I can modify font attributes/width in the last CommandBars button?
 
thanks
Woody



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net