Обсуждение: Re: [wx-dev] Re: OSX Status / Old friend font inheritance...

Поиск
Список
Период
Сортировка

Re: [wx-dev] Re: OSX Status / Old friend font inheritance...

От
"Stefan Csomor"
Дата:
Hi

I think the reason is, that the default font is wxSYS_DEFAULT_GUI_FONT
and while all controls will get the correct sized font according to
their window variant, the toplevel window will not and stays on the same
font (in this case 'small system') while the notebook get the 'normal
system' font.

as I don't have a buildable situation for pgadmin on my system, could
you please try out whether adding

DoSetWindowVariant( m_windowVariant) ;

in toplevel.cpp line 1204 , just in front of the m_macFocus = NULL ;

solves the problem ?

Nice trackdown , thanks :-)

Stefan

> -----Original Message-----
> From: Florian G. Pflug [mailto:fgp@phlo.org]
> Sent: Sonntag, 10. April 2005 19:38
> To: Andreas Pflug
> Cc: pgadmin-hackers@postgresql.org; wx-dev@lists.wxwidgets.org
> Subject: [wx-dev] Re: [pgadmin-hackers] OSX Status / Old friend font
> inheritance...
>
> Hi
>
> Here is a snapshot of the non-derived dialog from xrcsample.app
>
> The values in bottom textfield are: "dlg: 26, txt: 16"
>
> greetings, Florian Pflug


Re: [wx-dev] Re: OSX Status / Old friend font inheritance...

От
"Florian G. Pflug"
Дата:
Stefan Csomor wrote:
> Hi
>
> I think the reason is, that the default font is wxSYS_DEFAULT_GUI_FONT
> and while all controls will get the correct sized font according to
> their window variant, the toplevel window will not and stays on the same
> font (in this case 'small system') while the notebook get the 'normal
> system' font.
>
> as I don't have a buildable situation for pgadmin on my system, could
> you please try out whether adding
>
> DoSetWindowVariant( m_windowVariant) ;
>
> in toplevel.cpp line 1204 , just in front of the m_macFocus = NULL ;
>
> solves the problem ?
Works flawlessly! Thanks!

greetings, Florian Pflug

Вложения

Re: [wx-dev] Re: OSX Status / Old friend font inheritance...

От
Andreas Pflug
Дата:
Florian G. Pflug wrote:
> Stefan Csomor wrote:
>
>> Hi
>>
>> I think the reason is, that the default font is wxSYS_DEFAULT_GUI_FONT
>> and while all controls will get the correct sized font according to
>> their window variant, the toplevel window will not and stays on the same
>> font (in this case 'small system') while the notebook get the 'normal
>> system' font.
>>
>> as I don't have a buildable situation for pgadmin on my system, could
>> you please try out whether adding
>> DoSetWindowVariant( m_windowVariant) ;
>>
>> in toplevel.cpp line 1204 , just in front of the m_macFocus = NULL ;
>>
>> solves the problem ?
>
> Works flawlessly! Thanks!


This is great news, so we can announce pgAdmin III to be supported under
OSX with wx 2.6 !

Regards,
Andreas