IDE resizable toolwindow for debug when hovering over a structure/variable

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
PrincieD
Addict
Addict
Posts: 861
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

IDE resizable toolwindow for debug when hovering over a structure/variable

Post by PrincieD »

Hi Fred and team!

Currently it's really frustrating in the IDE when you're debugging and you hover over a variable or structure to see a peek of the contents and the tooltip window is a fixed size cutting off the exact fields you need to see the contents of :lol: It would be great if you could make that a resizable tool window instead of a tooltip.

Cheers!

Chris.
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
User avatar
ChrisR
Addict
Addict
Posts: 1466
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: IDE resizable toolwindow for debug when hovering over a structure/variable

Post by ChrisR »

Hi PrincieD
Is it the same as the pull request: Debugger max Structures Fields to Display in Tooltip #287
To always displayed the tooltip with the maximum number of structure fields, depending on the mouse position, but horizontally this time ?
PrincieD
Addict
Addict
Posts: 861
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Re: IDE resizable toolwindow for debug when hovering over a structure/variable

Post by PrincieD »

ChrisR wrote: Tue Feb 18, 2025 12:51 am Hi PrincieD
Is it the same as the pull request: Debugger max Structures Fields to Display in Tooltip #287
To always displayed the tooltip with the maximum number of structure fields, depending on the mouse position, but horizontally this time ?
Ahh yes Chris that looks like the problem, although a scrollbar would be awesome too!
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
PrincieD
Addict
Addict
Posts: 861
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Re: IDE resizable toolwindow for debug when hovering over a structure/variable

Post by PrincieD »

So I can pull that build Chris? is it pre-compiled?
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
User avatar
ChrisR
Addict
Addict
Posts: 1466
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: IDE resizable toolwindow for debug when hovering over a structure/variable

Post by ChrisR »

It should be integrated into PB 6.20 IDE and I hope it works as it should ?
But it's only done for the number of lines to display, it might be a good idea to do it horizontally as well, perhaps
And I agree with the scrollbar, it would be even better but, well, it's easier with the built-in scintilla tooltip
PrincieD
Addict
Addict
Posts: 861
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Re: IDE resizable toolwindow for debug when hovering over a structure/variable

Post by PrincieD »

ChrisR wrote: Tue Feb 18, 2025 1:29 am It should be integrated into PB 6.20 IDE and I hope it works as it should ?
But it's only done for the number of lines to display, it might be a good idea to do it horizontally as well, perhaps
And I agree with the scrollbar, it would be even better but, well, it's easier with the built-in scintilla tooltip
Ahh sweet awesome Chris, I haven't downloaded the latest PB yet, that's a real win for debugging big structures :) :) Many thanks for that I will try out tomorrow, it saves tediously having to go into the debug variable viewer and having to type out the structure path
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
User avatar
ChrisR
Addict
Addict
Posts: 1466
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: IDE resizable toolwindow for debug when hovering over a structure/variable

Post by ChrisR »

I tried to enlarge the ToolTip horizontally, it's not too complicated and I can make a GitHub Pull Request.

But I can choose between a full ToopTip, from left desktop border to right border, or a ToopTip aligned with the mouse position to the right border.
For all those interested (and of course Fred if he passes by here), what do you think is best?

Image

If you'd like to try it out to get a better idea, here's a zip with both PureBasic IDE compiled versions PureBasic_Windows_X64_6.20_ToolTip.zip
PrincieD
Addict
Addict
Posts: 861
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Re: IDE resizable toolwindow for debug when hovering over a structure/variable

Post by PrincieD »

ChrisR wrote: Tue Feb 18, 2025 8:40 pm I tried to enlarge the ToolTip horizontally, it's not too complicated and I can make a GitHub Pull Request.

But I can choose between a full ToopTip, from left desktop border to right border, or a ToopTip aligned with the mouse position to the right border.
For all those interested (and of course Fred if he passes by here), what do you think is best?

Image

If you'd like to try it out to get a better idea, here's a zip with both PureBasic IDE compiled versions PureBasic_Windows_X64_6.20_ToolTip.zip
It's actually the vertical tooltip cut-off for me Chris when you have lots of fields inside a structure.
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
User avatar
ChrisR
Addict
Addict
Posts: 1466
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: IDE resizable toolwindow for debug when hovering over a structure/variable

Post by ChrisR »

Yes, I agree Chris, same appreciation for me.
But being able to display a larger tooltip, instead of the hard-coded 100 chars, could be an additional bonus.
PrincieD
Addict
Addict
Posts: 861
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Re: IDE resizable toolwindow for debug when hovering over a structure/variable

Post by PrincieD »

ChrisR wrote: Wed Feb 19, 2025 1:23 am Yes, I agree Chris, same appreciation for me.
But being able to display a larger tooltip, instead of the hard-coded 100 chars, could be an additional bonus.
Yes totally man, I'm currently quite busy with developing ProGUI V3 (again today fixed a few issues with skin animation transitions) - will definately check out your code tomorrow though mate (and download the latest PB build)
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
Post Reply