Recent Posts

Pages: 1 ... 5 6 7 8 9 [10]
91
The Connect() calls are generated inside wxsEvents::GenerateBindingCode() and the change to Bind() looks straightforward, but IMHO this is not the best moment for doing this.
92
Generation of Bind() vs Connect() would be desirable, currently GCC emits a warning on every Connect() due to incorrect type for the wxObjectEventFunction parameter. This warnings appear when you activate -Wextra.

Yes, the author of wxMathPlot also saw this issue in his IDE, see his github issue comment: https://github.com/GitHubLionel/wxMathPlot/issues/2#issuecomment-1348985032  and  https://github.com/GitHubLionel/wxMathPlot/issues/12#issuecomment-1554172051



Quote

For the rest, I do not see the need:
  - wxChoice already allows entering an array of strings, and you can use the "Extra code" property for more advanced usage.
  - The custom string for translation makes little sense, the .POT files should be modified to recognize the custom string for no advantage.
  - Removal of the name of the widget may reduce code size, but I see no other advantage

wxNewId() is deprecated, but it is difficult to replace.

OK, I see.
93
Generation of Bind() vs Connect() would be desirable, currently GCC emits a warning on every Connect() due to incorrect type for the wxObjectEventFunction parameter. This warnings appear when you activate -Wextra.

For the rest, I do not see the need:
  - wxChoice already allows entering an array of strings, and you can use the "Extra code" property for more advanced usage.
  - The custom string for translation makes little sense, the .POT files should be modified to recognize the custom string for no advantage.
  - Removal of the name of the widget may reduce code size, but I see no other advantage

wxNewId() is deprecated, but it is difficult to replace.
94
Plugins development / Some feature request about wxSmith on generating the code
« Last post by ollydbg on May 24, 2023, 12:55:12 pm »
wxMathPlot

This is an improved wxMathPlot which has many good features, such as track the points(around the mouse), magnet cross lines, more powerful context menu and config dialog to tweak the plot.

In-fact, I have helped to improve this control, and when discussed with the author, he has some feature request:

https://github.com/GitHubLionel/wxMathPlot/issues/13#issuecomment-1560538840

Mainly:


Quote
    the ability (with a checkbox in the IDE) to avoid the creation of the name of the widget (suppress all the long list of wxNewId())
    the creation of an array of string for the wxChoice widget
    the use of Bind in place of Connect
    an user code for i18n string. Default code is _("string") but if you have your own function, you wish could replace it by another thing (for example _myI18N("string")).

Any ideas, and hopefully we can fix some of them.
95
Development / Re: to which compiler should we step up to bundle with CB
« Last post by ollydbg on May 24, 2023, 03:16:50 am »
For me, I'm still using GCC with MSVCRT runtime. It works fine under Win7 and Win10. I haven't see someone using UCRT under Win7 before.
96
Development / Re: to which compiler should we step up to bundle with CB
« Last post by killerbot on May 23, 2023, 11:18:45 pm »
currently nightly detected it without issues for me.
97
Plugins development / Re: Plugin 'compilergcc'
« Last post by LETARTARE on May 23, 2023, 05:37:48 pm »
I created a ticket with a patch  https://sourceforge.net/p/codeblocks/tickets/1395/
98
Help / Re: The best compilers on Windows XP
« Last post by Wilson5 on May 23, 2023, 10:49:37 am »
Hello sir i did every step as u informed in the video but in cmd my cmd reports that g++ is not an operable bcz of no any internal or external command what could be the reason sir? i have added bin address in environment and path.
99
Development / Re: to which compiler should we step up to bundle with CB
« Last post by Miguel Gimenez on May 23, 2023, 08:40:16 am »
Also, whatever compiler is chosen must be properly detected. 20.03 had problems detecting the bundled compiler.
100
Help / Re: Pointer arithmetic - casting pointer to other type
« Last post by Mr.Madguy on May 22, 2023, 09:12:18 pm »
Ok, seems to be fixed via following trick:
Code
Src = (void*)((t*)Src + 1);
Pages: 1 ... 5 6 7 8 9 [10]