Author Topic: wxSmith Generates incorrect code for time picker  (Read 250 times)

Offline sceedy

  • Single posting newcomer
  • *
  • Posts: 1
wxSmith Generates incorrect code for time picker
« on: February 17, 2020, 09:39:35 pm »
I am using Code::Blocks 17.12 on Windows 10

About Information Tab :-
Build: Dec 25 2017,08:45:27 - wx2.8.12 (Windows,unicode) - 32 bit
Name: Code::Blocks
Version: Release 17.12 rev 11256
SDK Version: 1.33.0
Author: The Code::Blocks Team
E-mail: [email protected]
Website: http://www.codeblocks.org

wxWidgets project wizard page 2 :-
wxWidgets 3.1.x selected
wxWidgets project wizard page 4 :-
Preferred GUI Builder : wxSmith
Application Type : Frame Based

Add wxFrame
Add wxTimePickerCtrl
Generates code :-
...
   Connect(ID_TIMEPICKERCTRL1,wxEVT_DATE_CHANGED,(wxObjectEventFunction)&NewFrame::OnTimePickerCtrl1Changed);
...

https://docs.wxwidgets.org/trunk/classwx_time_picker_ctrl.html says :-
...
Event macros for events emitted by this class:

    EVT_TIME_CHANGED(id, func):
...
i.e. not "wxEVT_DATE_CHANGED" as in the generated code

Online stahta01

  • Lives here!
  • ****
  • Posts: 6794
    • My Best Post
Re: wxSmith Generates incorrect code for time picker
« Reply #1 on: February 17, 2020, 11:09:45 pm »
Does this problem result in a build error?
Or does it result in a run-time issue?

If build error, please post the error?

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Online stahta01

  • Lives here!
  • ****
  • Posts: 6794
    • My Best Post
Re: wxSmith Generates incorrect code for time picker
« Reply #2 on: February 17, 2020, 11:27:09 pm »
Looks like wxTimePickerCtrl was added to wxWidgets in 2.9.3.

wxSmith has a lot of 2.8 support; but, it is missing some/most support for after version 2.8 of wxWidgets.

Tim S.
« Last Edit: February 18, 2020, 03:26:25 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Miguel Gimenez

  • Regular
  • ***
  • Posts: 413
Re: wxSmith Generates incorrect code for time picker
« Reply #3 on: February 18, 2020, 12:05:21 pm »
This patch fixes the issue, I will create a ticket.