XIDE: Highlight current file Tab in editor

This forum is meant for questions and discussions about the X# language and tools
User avatar
Irwin
Posts: 158
Joined: Wed Mar 23, 2022 10:24 am
Location: España

XIDE: Highlight current file Tab in editor

Post by Irwin »

Hi Chris,

Do you think is possible to highlight the current tab in the editor? It is really helpfull with working with multiple files. Image

thanks.
User avatar
Chris
Posts: 5467
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: XIDE: Highlight current file Tab in editor

Post by Chris »

Hi Irwin,

Do you mean by using a box like in the picture, or in a another way? XIDE uses a regular WinForms TabControl for the files, if you give me some code that makes it work as you like it, I will add it in XIDE (optionally)!
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
Irwin
Posts: 158
Joined: Wed Mar 23, 2022 10:24 am
Location: España

Re: XIDE: Highlight current file Tab in editor

Post by Irwin »

Hi Chris,

May be changing the tab color or font bold, even the caption, you can prepped a "➤ " to easily find the current tab.

thanks.
User avatar
Chris
Posts: 5467
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: XIDE: Highlight current file Tab in editor

Post by Chris »

Hi Irwin,

OK, will look into it, it's just that unfortunately it's not easy to adjust this in WinForms.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
wriedmann
Posts: 4017
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Re: XIDE: Highlight current file Tab in editor

Post by wriedmann »

Hi Chris,
PMFJI: a colored tab header for the currently selected item would be a very cool feature.
https://stackoverflow.com/questions/533 ... ader-color
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
ic2
Posts: 1956
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

Re: XIDE: Highlight current file Tab in editor

Post by ic2 »

Hello Chris,

Here's another webpage with Winfoms based codethat might help you:

https://csharp.agrimetsoft.com/exercise ... lected_Tab

Dick
User avatar
Chris
Posts: 5467
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: XIDE: Highlight current file Tab in editor

Post by Chris »

Guys,

Thanks, I know about this, it's what I wanted to avoid doing :)


Problem is when you start drawing standard things manually, all kind of graphical issues may appear in different configurations. I already have some issues in the Project treeview, where I'm manually painting some nodes bold etc.

But will look into it, again thanks for offering to help!
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
wriedmann
Posts: 4017
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Re: XIDE: Highlight current file Tab in editor

Post by wriedmann »

Hi Chris,
I'm also trying to avoid OwnerDraw and CustomDraw things, but sometimes my customers are asking things where that is absolutely needed.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
Chris
Posts: 5467
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: XIDE: Highlight current file Tab in editor

Post by Chris »

Guys,

I can't believe this, I had already implemented drawing of tab page caption long ago!! Actually had implemented another request, painting them in different colors same for each app and also in a different way the active one! But it indeed has some issues with text going sometimes out of the tab area, so had temporarily disabled it and then forgot about it...

I will revise this again and try to make it look nicer, but even if it's not perfect I will send it to you guys to see if it works well enough for you.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
wriedmann
Posts: 4017
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Re: XIDE: Highlight current file Tab in editor

Post by wriedmann »

Hi Chris,
should I now confirm that this is something I have also from time to time in my own projects?
I try to implement something and then I see I had realized that several years ago.....
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Post Reply