Closed blackholeearth closed 3 weeks ago
Hi @blackholeearth,
Can you please post a simple sample program that demonstrates the error.
Thanks.
Hi @blackholeearth
Please have a look at the ContextLogic
property
I Searched this repo for ContextLogic
.
0 result coming up ??
İ tried demos repo. When right click on a tab. Menu shows. İt says "close this button.. ...Key+Combo" Thats nice but.. İts not obvious for users..
So it's working now on your side?
@blackholeearth What control are you using?
@PWagner1
His approach produces the question already and a screenshot won't cut it in this case. @blackholeearth should provide a simple example to take out all the guess work....
how to enable close button inside the docking tab ?
The following example code will allow "any" ButtonSpec to be used (i.e. one of them is a close
):
Hi @blackholeearth
Have you looked at the ButtonSpec
properties?
Hi @blackholeearth
Just curious, what version of the toolkit are you currently using?
[SOLVED] - got it working. 🎉 👏 - #FAQ-able
[ Thanks ---Smurf-IV , PWagner1---- ... buttonspec got me on right track. ]
i used the demo Project: "docking Customized" . modified on it. this code is added into the form1_load :
//page2
var kpage2 = NewDocument();
//buttonSpec puts close button,
ButtonSpecAny bs2 = new ButtonSpecAny() {
Style = PaletteButtonStyle.Form,
Type = PaletteButtonSpecStyle.Close,
Tag = "",
};
bs2.Click += (s1, e1) => { kryptonDockingManager.RemovePage(kpage1, true); };
kpage2.ButtonSpecs.Add(bsa);
kryptonDockingManager.AddToWorkspace("Workspace", new[] { kpage1, kpage2, NewDocument(), });
one question.??
can we make this click_event free from external referance. ("kryptonDockingManager" and kpage2)
current:
bsa2.Click += (s1, e1) => { kryptonDockingManager.RemovePage(kpage2, true); };
expected:
bsa2.Click += (s1, e1) => { (KryptonPage )s1.close() };
if possible, i dont event want to write click event.?
Just curious, what version of the toolkit are you currently using?
i am using the latest one, from the demo repository . vs2019 , net4.8
Looks answered, so closing...
how to enable close button inside the docking tab ?
-------- SOLVED : -> HERE --------
İm using demo repo: Docking customized example.... https://github.com/Krypton-Suite/Standard-Toolkit-Demos/blob/master/Source/Krypton%20Docking%20Examples/Docking%20Customized/