Backstage Button
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=22629
Printed Date: 28 November 2024 at 6:20am Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Backstage Button
Posted By: bryanu
Subject: Backstage Button
Date Posted: 11 June 2015 at 9:30pm
Is there anyway to turn off the focus rectangle around the Backstage button when clicked?
Thanks in advance.
------------- Suite Pro v16.3.1
Visual Basic 6.0 ENT sp6
Windows 8.1
|
Replies:
Posted By: olebed
Date Posted: 12 June 2015 at 5:40am
Hello bryanu, can you please provide screenshot ?
|
Posted By: bryanu
Date Posted: 12 June 2015 at 3:13pm
This should explain what I am talking about:
------------- Suite Pro v16.3.1
Visual Basic 6.0 ENT sp6
Windows 8.1
|
Posted By: olebed
Date Posted: 13 June 2015 at 5:45am
... and code of creation this GUI part.
|
Posted By: bryanu
Date Posted: 16 June 2015 at 2:07pm
This is the codeblock for the button:
With TreeviewToolbar(10) .EnableMarkup = True .Checked = True '.Enabled = False .Caption = "<StackPanel ><TextBlock >Being Edited By</TextBlock><TextBlock HorizontalAlignment='Center'><Bold>Bryan</Bold></TextBlock></StackPanel>" End With
Is there a option to turn off the focus rectangle?
------------- Suite Pro v16.3.1
Visual Basic 6.0 ENT sp6
Windows 8.1
|
Posted By: olebed
Date Posted: 16 June 2015 at 3:04pm
Sorry, anyway I can't recognize what control and how you use. Is it presented on some of codejock samples ? Focus (ants) looks like system focus.
|
Posted By: bryanu
Date Posted: 16 June 2015 at 4:27pm
It's like I stated in the very first post, it's your Backstage Button.
I am looking for a way to remove the focus rectangle, just like some of your other controls have.
------------- Suite Pro v16.3.1
Visual Basic 6.0 ENT sp6
Windows 8.1
|
Posted By: olebed
Date Posted: 17 June 2015 at 7:03am
whoops, I don't thought that Backstage Button can be used outside of Backstage of Ribbon :-)
BackstageButton inherited from CButton MFC, so if you can turn off focus rectangle for CButton then you can do this for
BackstageButton
with hWnd property.
|
|