Print Page | Close Window

Way to add Picture in Corner

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=10800
Printed Date: 19 May 2024 at 5:14pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Way to add Picture in Corner
Posted By: ackshun
Subject: Way to add Picture in Corner
Date 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?



Replies:
Posted By: Aaron
Date 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....


Posted By: ackshun
Date 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.


Posted By: Aaron
Date 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....


Posted By: ijwelch
Date 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.



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