[ wxwindows-Bugs-1522696 ] wxDatePickerCtrl child windows' id clashes
SourceForge.net
noreply at sourceforge.net
Fri Jul 14 10:52:30 PDT 2006
Bugs item #1522696, was opened at 2006-07-14 14:52
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1522696&group_id=9863
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Generic
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Rodolfo Schulz de Lima (rodlima)
Assigned to: Nobody/Anonymous (nobody)
Summary: wxDatePickerCtrl child windows' id clashes
Initial Comment:
wxDatePickerCtrl is using predefined ids for its child
windows in the range of the wxNewId generated ones.
This may cause clashes when using wxDatePickerCtrl
inside a dialog in a xml resource because the later use
wxNewId to assign ids to the controls.
I'd suggest to use wxWindowBase::NewControlId() instead
of predefined ones.
Since I'm a little out of time to make a patch, here's
what should be changed datectlg.cpp:
enum
{
CTRLID_TXT = wxWindowBase::NewControlId(),
CTRLID_CAL = wxWindowBase::NewControlId(),
CTRLID_BTN = wxWindowBase::NewControlId(),
CTRLID_PAN = wxWindowBase::NewControlId()
};
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1522696&group_id=9863
More information about the wx-dev
mailing list