Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Way to add Picture in Corner
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Way to add Picture in Corner

 Post Reply Post Reply
Author
Message
ackshun View Drop Down
Newbie
Newbie


Joined: 15 April 2008
Location: United Kingdom
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote ackshun Quote  Post ReplyReply Direct Link To This Post Topic: Way to add Picture in Corner
    Posted: 27 May 2008 at 12:08pm
is there a way to add a picture in the corner like in windows explorer, ie, or firefox. If so can someone give me an example?
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 28 May 2008 at 12:48am
Hi,
 
In the corner of what? You have to be more specific
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
ackshun View Drop Down
Newbie
Newbie


Joined: 15 April 2008
Location: United Kingdom
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote ackshun Quote  Post ReplyReply Direct Link To This Post Posted: 28 May 2008 at 8:44am
ok so you have a menu bar and a toolbar at the top of the screen, also in the top right hand corner of the form you have a logo in the top right portion of the form. Look at internet explorer. How in the top right hand corner you have the world in the corner and when you goto a website it animates. How would I get a picture in the right corner of the form? Like I said it is in the corner of ie, my computer or windows explorer, and in firefox.
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 28 May 2008 at 11:01am
Hi,
 
Oh, do mean that one.
 
It looks like it's a toolbar control with picture. If you right click the image you get a popupmenu with available toolbars of the window.
 
Maybe there is someone who already did this and will show you his/her code. If not, you have to do it yourself and its not that easy...
 
I guess I would add a toolbar with just one control, set 
 
    .Style = xtpButtonIcon
    .Enabled = False
 
dock the toolbar on the same "row" as the mainmenu is (you have to set CommandBars.ActiveMenuBar.EnableDocking xtpFlagStretchedShared otherwise you can't dock on same "row") and you have remain that position even as you resize the form.
 
Hope it will help you, Good luck
 
 
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
ijwelch View Drop Down
Senior Member
Senior Member


Joined: 20 June 2006
Status: Offline
Points: 262
Post Options Post Options   Thanks (0) Thanks(0)   Quote ijwelch Quote  Post ReplyReply Direct Link To This Post Posted: 28 May 2008 at 8:57pm
Try this:

Dim oBar As XtremeCommandBars.CommandBar
Dim oCtl As XtremeCommandBars.CommandBarControl

Set oBar = CommandBars1.AddMenuBar("Main Menu")
Set oCtl = oBar.Controls.Add(xtpControlLabel, 1000, "")
oCtl.Flags = xtpFlagRightAlign

You'll need to change id to match the id of icon you want to show.

If you want image to be 'clickable' then add xtpControlButton rather than xtpControlLabel.

Animating is something I haven't attempted yet.
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.188 seconds.