Custom comamnd's custom tooltip when dock is dynamic

3 posts, 0 answers
  1. Golu
    Golu avatar
    41 posts
    Member since:
    Dec 2008

    Posted 18 Jul 2009 Link to this post

    Dear sir,
    How can give custom tooltip of Custom command when Dock is dynamically created?

    plz reply fast
    thanks & Regards
  2. Jim
    Jim avatar
    31 posts
    Member since:
    Jun 2009

    Posted 21 Jul 2009 Link to this post

    Try setting the Text and the AlternateText property to the message you want to be shown.

    DockToggleCommand
    DockToggleCommand dockCustomCommand = new DockToggleCommand(); 
    dockCustomCommand.Text = "Custom Tool Tip"
    dockCustomCommand.AlternateText = "Alternate Custom Tool Tip"
     
    dock.Commands.Add(new DockCloseCommand()); 
    dock.Commands.Add(new DockExpandCollapseCommand()); 
    dock.Commands.Add(dockCustomCommand); 

    DockCommand
    DockCommand dockCustomCommand = new DockCommand(); 
    dockCustomCommand.Text = "Custom Tool Tip"
     
    dock.Commands.Add(new DockCloseCommand()); 
    dock.Commands.Add(new DockExpandCollapseCommand()); 
    dock.Commands.Add(dockCustomCommand); 

  3. Golu
    Golu avatar
    41 posts
    Member since:
    Dec 2008

    Posted 21 Jul 2009 Link to this post

    Thank you sir! its working

Back to Top