![]() |
Way to add Picture in Corner |
Post Reply ![]() |
Author | |
ackshun ![]() Newbie ![]() Joined: 15 April 2008 Location: United Kingdom Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() 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?
|
|
![]() |
|
Aaron ![]() Senior Member ![]() Joined: 29 January 2008 Status: Offline Points: 2192 |
![]() ![]() ![]() ![]() ![]() |
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.... |
|
![]() |
|
ackshun ![]() Newbie ![]() Joined: 15 April 2008 Location: United Kingdom Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
|
Aaron ![]() Senior Member ![]() Joined: 29 January 2008 Status: Offline Points: 2192 |
![]() ![]() ![]() ![]() ![]() |
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.... |
|
![]() |
|
ijwelch ![]() Senior Member ![]() Joined: 20 June 2006 Status: Offline Points: 262 |
![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
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 |