请问如何使用xpmenu3.1这个控件阿!!刚刚安装成功!!谢谢
属性里面不会设置!!
给个有说明的网址也行!!!

解决方案 »

  1.   

    将控件放到窗体上,然后在窗体的 OnShow事件中写代码:    XpMenu1.Active := True ; 试试效果吧。
      

  2.   

    Notes on proprtiesActive property: To activate/deactivate xpMenu, also, set this property to False then to True when new items added at run time.AutoDetect property: Set this property to True to force xpMenu to include new added items automatically.UseSystemColors property: The global windows color scheme will be used, setting this property to true will override other color related properties.OverrideOwnerDraw property: By default, xpMenu will not affect menu items that has owner draw handler assigned (any code in OnDrawItem event). To override any custom draw set this property to true. Gradient property: IconBackcolor will be used as a gradient color for the entire menu, Color property wil be ignored.FlatMenu  property: To turn menu's border to flat (drop-down and pop-up menu). Any way, a flat effect will not appear until a menu item is selected.Form property: The default is the host form, if you want to target a different form other than the one hosting the component; set Form property to that form.XPControls property: Specifies which control types affected by xpMenu. To prevent xpMenu from drawing a certain control; set the control's Tag property value to 999.XPContainers property: Determine whether the Controls hosted by the specifies containers are affected by xpMenu.
    GrayLevel property: To control image appearance in disabled items.   
    -------------------------------------------------------------------------------- 
    ImageLists:
    For toolbars only ImageList assigned to Images property is used; xpMenu automatically generate dim and grayed images for non-hot and disabled items.Buttons with tbsDivider style:
    xpMenu cannot draw toolbar buttons with tbsDivider style, Windows override any owner draw for this style (I am using Win 98). To work around this, set the button style to tbsSeparator and set its Tag property to none zero value.Creation order:
    Make sure that the creation order of TXPMenu comes after any menu or toolbar component. To change the creation order, choose Edit | Creation Order from Delphi menu to open the Creation Order dialog box.
      -------------------------------------------------------------------------------- 
    Known issuesToolbar doesn't supported in Delphi 4. 
    In Delphi 6, XPMenu doesn't recognize buttons populated by Toolbar.Menu property, you need to reset Active property to true at run time. 
    In menu toolbar an Imagelist must be assigned to the MainMenu. 
    A fix suggested by Liyang [email protected] to Delphi's comtrls.pas, line 18758 : 
    function TToolBar.CheckMenuDropdown(Button: TToolButton):   Boolean;
      .............
          if ParentMenu <> nil then
          begin
            FTempMenu.BiDiMode := ParentMenu.BiDiMode;
            FTempMenu.OwnerDraw := ParentMenu.OwnerDraw;
          end;
    Edit box associated with UpDown control doesn't reflect the changing value (Win98). To solve this; change the Ctl3D property to false. 
    Window menu in MDI parent form and system menu are not supported.
    C++ Builder 6 update patch 1: Solves building with Delphi sources and 3rd party components http://community.borland.com/article/0,1410,28415,00.html
    CautionDeactivate XPMenu from within controls affected by xpMenu may cause error, this can happen also when changing any value of XPControls and XPContainers properies. 
    -------------------------------------------------------------------------------- TipsHow to create menu toolbar:
     (Extracted from Delphi Help - TToolButton.MenuItem) 
    To create an "IE4-style" (Office-style) toolbar that corresponds to an existing menu: 1 Drop a ToolBar on the form and add a ToolButton for each top-level menu item you wish to create. 
    2 Set the MenuItem property of each ToolButton to correspond to the top level menu items. 
    3 Set the Grouped property of each ToolButton to True. 
    4 Clear the MainMenu property of the Form (if it is assigned)Images in toolbars and menus: 
    To make an image transparent, be sure to fill the background with a unique color-a color your image is not using. Also, make sure that the color of the bottom leftmost pixel shown onscreen has the same background color; xpMenu will use this pixel to determine the transparent color. Edit box: 
    Set the Ctl3D property to false, this eliminate the time consumed when drawing edit box for the first time.   
      

  3.   

    回复2楼的大哥!!!
    没有什么反应阿!??
    只是菜单的背景颜色变了!!请问一般xp左边的导航栏用社么做啊!!!
    谢谢大家帮忙!!!
    3楼的大哥,麻烦你写这么多,可是我的英文实在是不太好!!!没看懂多少!真是对不起您!!!请问一般xp左边的导航栏用社么做啊!!!
    请问一般xp左边的导航栏用社么做啊!!!
    请问一般xp左边的导航栏用社么做啊!!!