Print Page | Close Window

Image in top right like Adobe

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=4022
Printed Date: 21 June 2025 at 12:15am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Image in top right like Adobe
Posted By: Juzzy
Subject: Image in top right like Adobe
Date Posted: 18 April 2006 at 2:30am

Is it possible with CodeJock to create a custom control image in the top right of the toolbar?

The image control would be clickable so that it could launch IE or whatever (this would be my own control).

Just getting it in the toolbar and a right aligning it is what I am after. Also does the CommandBar have to be stretched?

Can the toolbar (or ActiveMenubar) height be resized accordingly to the height of the image control?

Examples:

 

Thanks for your help (in advance).

Juzzy

 




Replies:
Posted By: Oleg
Date Posted: 18 April 2006 at 10:55am

Hello,

Create new control derived from CXTPControl and override its GetSize/Draw methods.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Juzzy
Date Posted: 18 April 2006 at 5:45pm

What do you  mean override it's GetSize/Draw methods?

How do I put it in the top right position of an existing toolbar?

Does the original CommandBar have to be stretched?

I am using VB6.



Posted By: Oleg
Date Posted: 19 April 2006 at 7:46am
right... it was answer for MFC. in VB you can add CustomControl (PictureBox) and catch its Click event.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Juzzy
Date Posted: 19 April 2006 at 11:28pm

I understand about handling the cutsom controls, but...

My actual question is, how do I position this control in the top right of the toolbar, if the other items in my toolbar are on the left (like in the 2nd screenshot).

If i have to create two toolbars, how do I position them on the same line, but one left aligned and the other (my custom control toolbar) right aligned?



Posted By: apuhjee
Date Posted: 07 May 2006 at 11:49pm
Bump.

Oleg - Is this possible?

jp

-------------
I like mathematics because it is not human and has nothing particular
to do with this planet or with the whole accidental universe — because,
like Spinoza's God, it won't love us in return.


Posted By: Oleg
Date Posted: 08 May 2006 at 8:41am

Hi,

I see only one way for ActiveX - to stretch toolbar/menubar (EnableDocking + xtpFlagStretched)

and add custom control with xtpFlagRightAlign flag.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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