Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Image in top right like Adobe
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Image in top right like Adobe

 Post Reply Post Reply
Author
Message
Juzzy View Drop Down
Newbie
Newbie
Avatar

Joined: 06 April 2006
Location: Australia
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Juzzy Quote  Post ReplyReply Direct Link To This Post Topic: Image in top right like Adobe
    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

 

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Juzzy View Drop Down
Newbie
Newbie
Avatar

Joined: 06 April 2006
Location: Australia
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Juzzy Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Juzzy View Drop Down
Newbie
Newbie
Avatar

Joined: 06 April 2006
Location: Australia
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Juzzy Quote  Post ReplyReply Direct Link To This Post 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?

Back to Top
apuhjee View Drop Down
Senior Member
Senior Member
Avatar

Joined: 02 September 2005
Location: United States
Status: Offline
Points: 130
Post Options Post Options   Thanks (0) Thanks(0)   Quote apuhjee Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.