Print Page | Close Window

How can I create similar menu?

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=9086
Printed Date: 17 June 2025 at 10:38pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How can I create similar menu?
Posted By: LeeHayton
Subject: How can I create similar menu?
Date Posted: 12 December 2007 at 4:50pm
How can I create the same effect as the toolbar below showing a list of items (Popular, Display, etc...) which can be selected and stay highlighted.  I would also like to place a seperator bar in it as shown between "Advanced" and "Cutsomize".
 
I'm sure it is really easy but I can't figure it out.
 
In effect I would just like to display the part of a popup menu from the commandbar at a given position on the form - is this possible?
 
Thanks
Lee
 



Replies:
Posted By: gaudetm
Date Posted: 12 December 2007 at 9:09pm
think of taskpanel with office 2007 style would be very similar
 
Marc


Posted By: gaudetm
Date Posted: 12 December 2007 at 9:24pm
try this
 
add a taskpanel in the form at the place of the left white list then add this to form_load() event
 
    With TaskPanel1
        .Width = 2175
        .BorderStyle = xtpBorderFrame
        .Behaviour = xtpTaskPanelBehaviourList
        .VisualTheme = xtpTaskPanelThemeShortcutBarOffice2007
        .HotTrackStyle = xtpTaskPanelHighlightItem
        .SingleSelection = True
        .Groups.Add 0, ""
        .SetGroupInnerMargins 0, 0, 0, 0
        .Groups(1).CaptionVisible = False
        .Groups(1).Items.Add 1, "Popular", xtpTaskItemTypeLink, 0
        .Groups(1).Items(1).SetSize 140, 24, False
        .Groups(1).Items.Add 2, "Display", xtpTaskItemTypeLink, 0
        .Groups(1).Items(2).SetSize 140, 24, False
        .Groups(1).Items.Add 3, "Proofing", xtpTaskItemTypeLink, 0
        .Groups(1).Items(3).SetSize 140, 24, False
        .Groups(1).Items(3).EnsureVisible
    End With


Posted By: LeeHayton
Date Posted: 13 December 2007 at 5:00am
That is exactly what I wanted - Thanks a lot.
 



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