#24 fix for changeing font size

open
5
2009-07-07
2009-07-07
Anonymous
No

simptom: when changeing fontsize in font dialog by editing sipin control text then pressing enter to change the fonts , fonts are not correctly updated.

simple workarount would be to handle ok button press:

in event table : EVT_BUTTON(wxID_OK, CHMFontDialog::OnOkPressed)

add member function :

void CHMFontDialog::OnOkPressed(wxCommandEvent& WXUNUSED(event))
{
UpdatePreview();
AcceptAndClose();
}

and do not forget add function definition in coresponding header.

//\! This is called when Ok is pressed
void OnOkPressed\(wxCommandEvent& event\);

Discussion

  • Razvan Cojocaru

    Razvan Cojocaru - 2009-07-07

    Why do you say it doesn't work? It works just fine for me.

    Please note that if you're sure that there's a problem like that, you should use the bugs tracker, not the feature requests tracker.

    What's your setup (OS/wxWidgets/xCHM version)?

     
  • Razvan Cojocaru

    Razvan Cojocaru - 2009-07-07
    • assigned_to: nobody --> thewhiterabbit
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks