Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Backstage Button
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Backstage Button

 Post Reply Post Reply
Author
Message
bryanu View Drop Down
Groupie
Groupie
Avatar

Joined: 19 February 2007
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote bryanu Quote  Post ReplyReply Direct Link To This Post Topic: Backstage Button
    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
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 12 June 2015 at 5:40am
Hello bryanu,  can you please provide screenshot ?


Back to Top
bryanu View Drop Down
Groupie
Groupie
Avatar

Joined: 19 February 2007
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote bryanu Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 13 June 2015 at 5:45am
... and code of creation this GUI  part. 
Back to Top
bryanu View Drop Down
Groupie
Groupie
Avatar

Joined: 19 February 2007
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote bryanu Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
bryanu View Drop Down
Groupie
Groupie
Avatar

Joined: 19 February 2007
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote bryanu Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post 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.
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.156 seconds.