Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Thanks.
Al is so smart to analysis long code.  It has a very large memory. I think it is at least better than me.
2
Here is Gemini-CLI's evaluation of the problem.
Quote
| SearchText 'ShowValueTooltip' within src |
| |
| Found 13 matches |

    ShowValueTooltip is called from two key locations. First, sdk/ccmanager.cpp checks if a tooltip can be shown when the user hovers over a
    variable. If so, a command is sent to GDB. After GDB returns the variable's value, the GDB command in plugins/debuggergdb/gdb_commands.h calls
    ShowValueTooltip a second time to actually display the tooltip. The call chain starts with CodeCompletionManager, goes through the debugger
    plugin, gets the value from GDB, then DebuggerManager, and finally DebugInterfaceFactory creates the tooltip window. The key call sites are
    sdk/ccmanager.cpp and plugins/debuggergdb/gdb_commands.h.

    [pecan prompt ]There is a problem when the debugger shows a single line value that is too long and hits the right side of the display. The bottom scroll bar
    overlays the value being displayed. The window created is not tall enough to contain both the value and the bottom scroll bar. I want to know
    where the window is created and why it isn't tall enough.

[Gemini response]
    The value tooltip window sizing appears faulty, obscuring long text with a scrollbar. I'll investigate src/src/watchesdlg.cpp, focusing on the
    ValueTooltip class, especially GridSetMinSize and UpdateSizeAndFit functions, and the usage of wxPopupWindow and wxScrolledWindow. I suspect a
    height miscalculation in GridSetMinSize or an incorrect virtual size setting. My first step is to reread src/src/watchesdlg.cpp.

| ReadFile src\src\watchesdlg.cpp |
| |

    After re-reading src/src/watchesdlg.cpp and analyzing the ValueTooltip class, I've pinpointed the sizing issue.

    ValueTooltip Sizing Analysis

    The ValueTooltip window is created in its constructor and sized primarily by the GridSetMinSize function. This function calculates the necessary
    height and width for the wxPropertyGrid that displays the value.

    The issue lies in how the height and width are determined, especially when a horizontal scrollbar is needed.

        Height Calculation: The window's height is determined by the content of the wxPropertyGrid.

        Width and Scrollbar: When the text content is too wide for the display, GridSetMinSize correctly calculates that a horizontal scrollbar is
        needed and sets a virtualWidth.

        The Flaw: The crucial oversight is that after deciding to add a horizontal scrollbar, the function does not increase the calculated height of
        the window to accommodate the scrollbar itself.

    Conclusion

        Where the window is created: The ValueTooltip window is created in its constructor within src/src/watchesdlg.cpp.

        Why it isn't tall enough: The sizing logic in the GridSetMinSize function in the same file fails to account for the vertical space taken up by
        the horizontal scrollbar when it becomes necessary for long lines of text. The window is sized for the text only, so the scrollbar ends up
        drawn on top of the last line of text.

    To fix this, the code would need to be modified to add the height of a horizontal scrollbar to the total height of the ValueTooltip whenever one
    is displayed.

I'll do a follow up on this.
3
Development / Re: AI may help us to create plugins
« Last post by cdavalillo on December 27, 2025, 09:31:24 am »
At first option I'm against AI use, but is noticing that a wise use can be of great help. Perhaps is better if we use the AI to speed up the process of development more than to solve all our problems.  I mean, use the AI to apply a consistent source code formatting, to generate useful comments in source code, to detect problematic code, to generate useful tools, etc.

Don't use AI to solve programming problems
4
Development / Re: AI may help us to create plugins
« Last post by stahta01 on December 25, 2025, 09:21:58 am »
AI Code Generation equals AI generated copyright violations way to often for me to have peace of mind in using it.

Tim S.
5
Development / Re: AI may help us to create plugins
« Last post by prospero on December 25, 2025, 03:48:44 am »
An explicit stance on AI (pro- or anti-) would be appreciated by users, I think. I, for one, do not want AI integration, and especially not as something I have to go out of my way to disable, and if it's going to be added, it's best kept as a plugin. If Code::Blocks goes all-in on AI the way Codelite did, I'll probably stop using it (or stick to an older version).
6
General (but related to Code::Blocks) / Re: wxWidgets 3.2.9 is out
« Last post by bouced on December 18, 2025, 09:13:39 am »
wxWidgets has just published the 3.2.9 release.

For this release, wxWidgets team has built a windows binary that works directly with Codeblocks builtin compiler, one has to download the MSYS2 14.2 UCRT version.
7
General (but related to Code::Blocks) / Re: Welcome Newcomers - PLEASE READ!!!
« Last post by atronoush on December 16, 2025, 06:36:30 pm »
I am here! I am new  :)
8
General (but related to Code::Blocks) / Re: wxWidgets 3.2.9 is out
« Last post by ollydbg on December 13, 2025, 04:15:23 pm »
Quote
But it looks like wx 3.3.1 and wx 3.2.9 do not have much difference.  :)
At least, support for dark mode in MSW is new with 3.3.x serie

Oh, yes,  I forgot that. I haven't used the dark mode before.
9
General (but related to Code::Blocks) / Re: wxWidgets 3.2.9 is out
« Last post by gd_on on December 13, 2025, 12:22:39 pm »
Quote
But it looks like wx 3.3.1 and wx 3.2.9 do not have much difference.  :)
At least, support for dark mode in MSW is new with 3.3.x serie
10
General (but related to Code::Blocks) / Re: wxWidgets 3.2.9 is out
« Last post by ollydbg on December 13, 2025, 11:36:05 am »
Good news.
But it looks like wx 3.3.1 and wx 3.2.9 do not have much difference.  :)
So, I switched my github action to used the msys2's wx3.3.1 to build C::B, see here: Release CodeBlocks svn r13761 and wxWidgets 3.3.1.0 Build at 2025-12-07-05-06-33 asmwarrior/x86-codeblocks-builds.
Pages: [1] 2 3 4 5 6 ... 10