xsharp.eu • XIDE: Highlight current file Tab in editor
Page 1 of 2

XIDE: Highlight current file Tab in editor

Posted: Thu Jun 12, 2025 5:52 pm
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.

Re: XIDE: Highlight current file Tab in editor

Posted: Thu Jun 12, 2025 10:54 pm
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)!

Re: XIDE: Highlight current file Tab in editor

Posted: Fri Jun 13, 2025 7:42 am
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.

Re: XIDE: Highlight current file Tab in editor

Posted: Fri Jun 13, 2025 12:14 pm
by Chris
Hi Irwin,

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

Re: XIDE: Highlight current file Tab in editor

Posted: Fri Jun 13, 2025 1:53 pm
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

Re: XIDE: Highlight current file Tab in editor

Posted: Fri Jun 13, 2025 3:40 pm
by ic2
Hello Chris,

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

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

Dick

Re: XIDE: Highlight current file Tab in editor

Posted: Fri Jun 13, 2025 4:31 pm
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!

Re: XIDE: Highlight current file Tab in editor

Posted: Sat Jun 14, 2025 4:05 am
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

Re: XIDE: Highlight current file Tab in editor

Posted: Fri Jun 27, 2025 12:06 pm
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.

Re: XIDE: Highlight current file Tab in editor

Posted: Fri Jun 27, 2025 12:42 pm
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