Here is the testcase.
Should I file it as a wxpython or a wxwindow bugreport?
/T
xrc_test_dialogunits.tgz (1.53 KB)
···
-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Thursday, March 24, 2005 2:39 AM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] XRC problems migrating to 2.5.4.1Toni Brkic wrote:
> Hi,
>
> I tried to migrate to 2.5.4.1 and now
> I get the warning:
>
> "Cannot convert dialog units: dialog unknown."
>
> When I load the application. It is due to that
> the size is written as
> <size>100,100d</size>
>
> This is how wxglade writes out the size. But
> this format worked in 2.5.3.1.
>
> When I remove the 'd' in the last number I dont
> get the warning anymore. Is this
> form depreceated with 2.5.4.1 or do I need to
> add something in my code?There was a change made dealing with this. The CVS log says,
"don't use
m_instanceAsWindow to convert dialog units, it's not fully
constructed
yet and can't provide the information" and the new code
looks like this:if (is_dlg)
{
if (m_parentAsWindow)
return wxDLG_UNIT(m_parentAsWindow, wxSize(sx, sy));
else
{
wxLogError(_("Cannot convert dialog units:
dialog unknown."));
return wxDefaultSize;
}
}I don't know al the implications of that statement or of the
change, but
if you make a small sample and submit it as a bug report I
expect that
Vaclav (the XRC author) can help.--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org