Print Page | Close Window

Warning message in RibbonBar

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=21740
Printed Date: 16 November 2024 at 1:15pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Warning message in RibbonBar
Posted By: VBBSOFTWARE
Subject: Warning message in RibbonBar
Date 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



Replies:
Posted By: SuperMario
Date Posted: 24 June 2013 at 1:42am
Ribbon sample shows how.


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


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






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