![]() |
Image in top right like Adobe |
Post Reply ![]() |
Author | |
Juzzy ![]() Newbie ![]() Joined: 06 April 2006 Location: Australia Status: Offline Points: 16 |
![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello, Create new control derived from CXTPControl and override its GetSize/Draw methods. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Juzzy ![]() Newbie ![]() Joined: 06 April 2006 Location: Australia Status: Offline Points: 16 |
![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
right... it was answer for MFC. in VB you can add CustomControl (PictureBox) and catch its Click event.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Juzzy ![]() Newbie ![]() Joined: 06 April 2006 Location: Australia Status: Offline Points: 16 |
![]() ![]() ![]() ![]() ![]() |
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? |
|
![]() |
|
apuhjee ![]() Senior Member ![]() ![]() Joined: 02 September 2005 Location: United States Status: Offline Points: 130 |
![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |