Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Warning message in RibbonBar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Warning message in RibbonBar

 Post Reply Post Reply
Author
Message
VBBSOFTWARE View Drop Down
Newbie
Newbie


Joined: 22 June 2013
Location: Brasil
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote VBBSOFTWARE Quote  Post ReplyReply Direct Link To This Post Topic: Warning message in RibbonBar
    Posted: 22 June 2013 at 10:57pm
Hello,

I would like to know how can I put a message, similar to this Security Warning in yellow in this screenshot, using RibbonBar:



Thanks for your attention!

Vinicius Bittencourt
Co-Owner, VBB Software
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 24 June 2013 at 1:42am
Ribbon sample shows how.
Back to Top
DjTOTOfr View Drop Down
Newbie
Newbie


Joined: 09 September 2013
Location: France
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote DjTOTOfr Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2013 at 5:24am
Hi,
i didn't find where it shows in ribbon sample c# project, can you help me ?

regards
Back to Top
Willowmaster View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 July 2010
Location: Netherlands
Status: Offline
Points: 180
Post Options Post Options   Thanks (0) Thanks(0)   Quote Willowmaster Quote  Post ReplyReply Direct Link To This Post Posted: 04 November 2013 at 5:29am
Doesn't seem to be in there for 16.2.4. Add these lines of code at the end of CreateRibbonBar function:

CommandBars.MessageBar.Visible = true;
CommandBars.MessageBar.AddCloseButton("Close Message Bar");
CommandBars.MessageBar.AddButton(ID.ID_EDIT_COPY, "Options...", "Show more options");
CommandBars.MessageBar.Message =
 "<StackPanel Orientation='Horizontal'>" +
 " <Image Source='32988'/>" +
 " <TextBlock Padding='3, 0, 0, 0' VerticalAlignment='Center'><Bold>SECURITY WARNING</Bold></TextBlock>" +
 " <TextBlock Padding='10, 0, 0, 0' VerticalAlignment='Center'>Certain content has been disabled.</TextBlock>" +
 "</StackPanel>";
Product: Xtreme SuitePro (ActiveX) version 15.3.1

Platform: Windows XP (32bit) - SP 3 (on VMWare)

Language: Visual Basic 6.0



Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.