Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) Dock Control Titlebarbuttons (Read 4900 times)
Ktmr
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 24
Joined: Mar 27th, 2020
Dock Control Titlebarbuttons
Mar 27th, 2020 at 9:02am
Print Post  
Hi,

I am trying your dock control component. Titlebarbuttons are repeating when I add new dockitem. Same problem in your sample project.

How can I solve this problem?

  

a.PNG ( 19 KB | 66 Downloads )
a.PNG
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 2568
Joined: Oct 19th, 2005
Re: Dock Control Titlebarbuttons
Reply #1 - Mar 27th, 2020 at 10:05am
Print Post  
Hi,

Older assemblies from zip file here seem to work correctly, try using them for time being (some event argument classes are named differently in older version though) -
https://mindfusion.eu/samples/winforms/ui/DockControl.CS.zip

Our developer will try to fix it in next few days.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Ktmr
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 24
Joined: Mar 27th, 2020
Re: Dock Control Titlebarbuttons
Reply #2 - Mar 27th, 2020 at 10:17am
Print Post  
Ok. Thank you for helping.
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 2568
Joined: Oct 19th, 2005
Re: Dock Control Titlebarbuttons
Reply #3 - Mar 31st, 2020 at 2:49pm
Print Post  
This build should fix it -
https://mindfusion.eu/_temp/dock_duplicate.zip

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Ktmr
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 24
Joined: Mar 27th, 2020
Re: Dock Control Titlebarbuttons
Reply #4 - Apr 22nd, 2020 at 7:40am
Print Post  
Unfortunately, the problem still continues while merging pages to one tab.

  
Back to top
 
IP Logged
 
Iva_P
YaBB Moderator
*****
Offline


I Love MindFusion!

Posts: 41
Joined: Jun 19th, 2013
Re: Dock Control Titlebarbuttons
Reply #5 - Apr 22nd, 2020 at 9:48am
Print Post  
Hi,
We tested with the solution that demonstrated the problem before the fix - the Visual Studio mock-up project. We added two buttons - one that adds more tabs, the other removes them - one by one. No problems showed up.

I've uploaded that project here:
https://mindfusion.eu/samples/winforms/DockControl.CS.rar

Please try it and let me know if that's what you meant.

Kind Regards,
Iva
« Last Edit: Dec 26th, 2020 at 5:56pm by Forum Admin »  
Back to top
 
IP Logged
 
Ktmr
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 24
Joined: Mar 27th, 2020
Re: Dock Control Titlebarbuttons
Reply #6 - Apr 22nd, 2020 at 11:02am
Print Post  
Hi,

It is working now. Thank you very much.

  
Back to top
 
IP Logged
 
goblue
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 9
Joined: Jun 1st, 2020
Re: Dock Control Titlebarbuttons
Reply #7 - Jun 1st, 2020 at 9:44pm
Print Post  
I'm having the same issue even after upgrading to the build on 3/31. In the sample project posted above, if you close both tabs ("Toolbox" and "Tabbed Document") then reopen them, you still get two control boxes.

BTW, is there a way to change DockStyle without having to remove and add a DockItem back?
  

Annotation_2020-06-01_174139.png ( 56 KB | 52 Downloads )
Annotation_2020-06-01_174139.png
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 2568
Joined: Oct 19th, 2005
Re: Dock Control Titlebarbuttons
Reply #8 - Jun 2nd, 2020 at 10:14am
Print Post  
Our developer will check in a bit.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 2568
Joined: Oct 19th, 2005
Re: Dock Control Titlebarbuttons
Reply #9 - Jun 3rd, 2020 at 12:28pm
Print Post  
This build should fix it -
https://mindfusion.eu/_temp/dock_duplicate.zip

We can't see a way to change item's style without removing / adding, we'll have it in mind for next release.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
goblue
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 9
Joined: Jun 1st, 2020
Re: Dock Control Titlebarbuttons
Reply #10 - Jun 4th, 2020 at 7:11pm
Print Post  
Thank you very much for the quick response! The issue is now gone. Another feature I'd like to request -  set DockItem's location on the screen when DockStyle=None Grin
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 2568
Joined: Oct 19th, 2005
Re: Dock Control Titlebarbuttons
Reply #11 - Jun 5th, 2020 at 3:00pm
Print Post  
Hi,

Adding undocked item actually creates a top-level form, you could move it like this for time being -

Code
Select All
var item = new DockItem() { Header = "new", Id = "new" };
item.DockStyle = DockStyle.None;
item.Content = GetContent("test");
dockControl1.Items.Add(item);

var l = Application.OpenForms.Count - 1;
Application.OpenForms[l].Left = 400;
Application.OpenForms[l].Top = 400; 



We'll try to add proper API for that in next release.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
goblue
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 9
Joined: Jun 1st, 2020
Re: Dock Control Titlebarbuttons
Reply #12 - Jun 20th, 2020 at 12:18am
Print Post  
Thank you. Found another minor issue: after LoadFromXml, all the control boxes disappear.
  

Annotation_2020-06-19_201753.png ( 54 KB | 55 Downloads )
Annotation_2020-06-19_201753.png
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 2568
Joined: Oct 19th, 2005
Re: Dock Control Titlebarbuttons
Reply #13 - Jun 23rd, 2020 at 12:01pm
Print Post  
this build should fix it -
https://mindfusion.eu/_temp/dock_xml.zip

Regards,
Slavcho
  
Back to top
 
IP Logged
 
goblue
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 9
Joined: Jun 1st, 2020
Re: Dock Control Titlebarbuttons
Reply #14 - Jun 23rd, 2020 at 2:45pm
Print Post  
Thank you, Slavcho. There is another bug: when the user drags a window and makes it a tabbed doc. The DockStyle property doesn't set to Fill. It would randomly set to Left, Right, Top or Bottom(seems to be related to the previous DockStyle) but not Fill.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint