Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Using Code::Blocks / Re: Lexer for C only?
« Last post by christo on Yesterday at 07:05:26 pm »
Attaching patch
1.  new lexer for C language - duplicated C++ lexer, removed c++ keywords and add more C keywords.
2. .c files uses the new lexer by default.
3. .h files uses C++ lexer if C++ files are present in the project,  else uses the new C lexer
2
Development / Re: wxSmith : add option for Create function in inhereited cases
« Last post by LR83 on Yesterday at 09:20:07 am »
Yes, the change is very slight and does not disrupt normal behavior.
We now just have a new option to call or not the Create() function (the default value is true in order to keep the old generation code).
I introduced this because when you call the parent in the constructor, you should not use the Create() function.

I don't know how to create a "patch file". Do I need a special environment?
3
Development / Re: wxSmith : add option for Create function in inhereited cases
« Last post by ollydbg on Yesterday at 12:22:50 am »
Is my proposition posted above on January 24, 2026 work for everybody and could be added on next release ?

So, you want an option to enable/disable the usage of "Create" function? Sorry I'm still not quite understand your idea, and I'm not quite familiar with wxSmith's source code.

I just copy your code in the attachment to the local code repo, and I see it does not change much. And can you modify your code to a patch file, which is against the last code base?

I hope some devs who are more familiar with wxSmith will review your patch file.
4
Development / Re: wxSmith : add option for Create function in inhereited cases
« Last post by LR83 on March 28, 2026, 02:57:59 pm »
Is my proposition posted above on January 24, 2026 work for everybody and could be added on next release ?
5
General (but related to Code::Blocks) / Re: wxSmith Couldn't Add New Handler
« Last post by Miguel Gimenez on March 27, 2026, 07:41:07 pm »
There are only two possible causes of this error:
- There is no // (*Handlers(FrameName) section in the dialog's include file
- An editor for the source file cannot be opened

See wxsEventsEditor::CreateNewFunction() for more information.

In the wxSmith menu there is a submenu (Configure wxSmith for current project) that may help

I would bet for an invalid file name.
6
General (but related to Code::Blocks) / Re: wxSmith Couldn't Add New Handler
« Last post by ollydbg on March 27, 2026, 04:19:53 pm »
Can you show us a step by step instructions? We need to reproduce this bug in our C::B. Unluckily, I don't know the steps.
7
General (but related to Code::Blocks) / Re: wxSmith Couldn't Add New Handler
« Last post by bezet on March 27, 2026, 02:06:56 pm »
Hello, I confirm that the same problem persists in March 2026 :
After adding a child window/frame using the wxSmith menu 'New Frame', I was unable to create/add any events.
Also components added to this frame return the same error "Couldn't Add New Handler" .
I looked at thevarious files to find any wrong path etc., without success.
Then I created another child frame in the same way, and there is no problem to create events!?
8
Development / Re: flicker when I rezize the Build log control(TextCtrlLogger) issue
« Last post by ollydbg on March 26, 2026, 01:38:18 pm »
 I wrote some code snippet like this

Code
    if (control)
    {
        // Check if it's already enabled (either by default or previously set)
        if (!control->IsDoubleBuffered())
        {
            control->SetDoubleBuffered(true);
        }

        // Always a good idea to bind this if you're still seeing "white flashes"
        control->Bind(wxEVT_ERASE_BACKGROUND, [](wxEraseEvent& event) {
            // Leave empty to prevent background clearing
        });
    }

I set the breakpoint inside the "if (!control->IsDoubleBuffered())" clause, and I see it hit there. So, under wx 3.3.2, the double buffer is not enabled by default, so calling the "control->SetDoubleBuffered(true);" will enable it.


Quote
in fact, it is not redrawn until I release the mouse button
OK, I see such option, it is an option for Windows OS's graphics system to reduce the flicker.

9
Quote
So, the double buffering is disabled by default in 3.3.2 for the wxTextCtrl class?

I do not know, try calling control->IsDoubleBuffered() after loggers.cpp:171. With 3.2.10 it returns false, and the control does not flicker (in fact, it is not redrawn until I release the mouse button).
10
Nightly builds / Re: The 24 March 2026 build (13828) is out.
« Last post by killerbot on March 25, 2026, 03:59:32 pm »
was on the todo list:
* wx 3.3.2
* gcc 15.2

I think will do the wx step up first.
Pages: [1] 2 3 4 5 6 ... 10