[vlc-devel] Re: wx compatiblity

· zcot · cutmancw at hotmail.com
Fri Oct 14 16:47:49 CEST 2005


oh right, I missed the fact that SetMinSize didn't exist there.

It looks for me like the least painful solution for this is to just ignore 
that call for versions that don't provide it, along the lines of:
#if (wxMAJOR_VERSION >= 2) && (wxMINOR_VERSION >= 6) && (wxRELEASE_NUMBER >= 
0)
    SetMinSize( s );
#endif
(not sure on that 2.6.0 version I don't know exactly when 
wxWindow::SetMinSize was implemented)

basically that saying if you are in pre-stable releases of wx then the 
minsize feature will not be available. 2.5.1 was the first of the unstable 
releases before the 2.6.x versions and is over a year +8 months outdated.

The MinSize implementation patch evidently breaks compilation when using 
early libs(at least 2.5.1), but the patch to that patch breaks the minsize 
implementation, so while it will compile with the old libs the minsize 
implementation is gone for all lib versions..

So, with this type of version parsing example, at the least, the 
functionality can exist where the newer libs support it.

I think the best solution would be to implement the MinSize scheme under 
2.4.0 conditions(or 2.5.1) so it catches everybody.. Instead of just not 
backward-supporting the minsize scheme..


zcot


>From: Daniel Stränger <vlc at schmaller.de>
>Reply-To: vlc-devel at videolan.org
>To: vlc-devel at videolan.org
>Subject: [vlc-devel] Re: wx compatiblity
>Date: Fri, 14 Oct 2005 13:02:50 +0200
>
>Dear list, espacially zcot,
>>The wx2.4.2 documentation shows this same inhereritance design as the code 
>>so I couldn't imagine where that one line would be a problem in the wx 
>>library.
>the inheritance in 2.4.2 is the same, but the wxWindow class can't provide 
>the SetMinSize() method,
>since it doesn't have it yet.
>>...
>>ps. what is the compilation problem?
>>
>it's an unresolved symbol error, because SetMinSize()
>isn't known in the related interfaces: Interface, wxFrame, wxWindow
>
>Bye, Daniel
>
>PS: GUI programming isn't my favourite profession.
>There are more eligible people to solve the min size problem ;-)
>
>
>--
>This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
>To unsubscribe, please read http://developers.videolan.org/lists.html
>

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list