Standard-Toolkit icon indicating copy to clipboard operation
Standard-Toolkit copied to clipboard

[Bug]: Ability to Hide Close (X) Button on a KryptonPage does not work while moving to a new docked position

Open pixelinkmedia opened this issue 2 years ago • 8 comments

Is your feature request related to a problem? Please describe. Not technical problem, but usability problem. I don't use us Krypton Docking because of not being able to hide the X button. I don't want users to be able to close docking windows because sometimes I would put related controls on another docking window that would disrupt the app from from running.

Describe the solution you'd like To be able to hide or disable the "X" button on all docking windows.

Describe alternatives you've considered none

Additional context

pixelinkmedia avatar May 17 '22 21:05 pixelinkmedia

Also, just so you know. I can hide the close button at design time using Edit Flags. But, If I drag (dock) it in another window, the the X button reappears.

pixelinkmedia avatar May 17 '22 21:05 pixelinkmedia

Here is a screen shot. Before dragging (docking) a window = NO "X" button After with the "X" button displayed again.

image

pixelinkmedia avatar May 17 '22 22:05 pixelinkmedia

Hi @pixelinkmedia

Thanks for your feedback. Hiding the close button is already supported. To hide the close button, please toggle the CloseLogic property to Hide, these properties are located in the Button property cluster.

Wagnerp avatar May 18 '22 07:05 Wagnerp

Two things.

  1. I don't want to hide a docking window, neither do I want it closed at all
  2. The is no CloseLogic property. There is a "ButtonDisplayLogic" which doesn't have a Hide

image

Did you read my previous posts?

It hides at design time and when I run it. BUT when I drag a window at runtime into another window it then RE=APPEARS.

I can hide the button, but it doesn't stay hidden

Thanks

pixelinkmedia avatar May 18 '22 10:05 pixelinkmedia

Hi @pixelinkmedia

Sorry, I meant the Close Display property. You can set the Close Action to None, to prevent pages being closed.

image

Wagnerp avatar May 18 '22 13:05 Wagnerp

That is what I have image

pixelinkmedia avatar May 18 '22 13:05 pixelinkmedia

Hi @pixelinkmedia

Having a look at the help file, as I'm not that familiar with the docking library.

Wagnerp avatar May 18 '22 14:05 Wagnerp

Here is a screen shot. Before dragging (docking) a window = NO "X" button After with the "X" button displayed again.

image

The red circled are is to do with the creation of a new Navigator area.. Just set the correct settings to not display the buttonSpecs in the "New navigator" when it is created for the new doc position

Smurf-IV avatar Jul 16 '22 09:07 Smurf-IV