Re: Ornamental Garden Proggie
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Feb 24, 2005
- 451 views
Jerry Story wrote: > > cklester wrote: > > > > Jerry, kudos for another cool app! > > The usefulness of ogp will be greatly enhanced when I get the clipboard > feature to work. Then the user will be able to copy a plant and paste it > on Google and get more information about it. But I don't know how to do > clipboard with wxEuphoria. > Also, there are some problems with the way you're creating the fonts, although this is really my fault, because the wxEuphoria docs are so bad for wxFont. Here's the updated info (basically with some detail copied from wx.chm):
Creation parameters: * pointSize * family o wxDEFAULT Chooses a default font. o wxDECORATIVE A decorative font. o wxROMAN A formal, serif font. o wxSCRIPT A handwriting font. o wxSWISS A sans-serif font. o wxMODERN A fixed pitch font. * style o wxNORMAL o wxSLANT o wxITALIC * weight o wxNORMAL o wxLIGHT o wxBOLD * underline [=0] * faceName [=""] * encoding [=wxFONTENCODING_DEFAULT] o wxFONTENCODING_SYSTEM Default system encoding. o wxFONTENCODING_DEFAULT Default application encoding: this is the encoding set by calls to SetDefaultEncoding and which may be set to, say, KOI8 to create all fonts by default with KOI8 encoding. Initially, the default application encoding is the same as default system encoding. o wxFONTENCODING_ISO8859_1...15 ISO8859 encodings. o wxFONTENCODING_KOI8 The standard Russian encoding for Internet. o wxFONTENCODING_CP1250...1252 Windows encodings similar to ISO8859 (but not identical).
Here's how the fonts should be created:
FONT[1] = create( wxFont, {12,wxDEFAULT,wxITALIC,wxNORMAL,0,"Courier New"}) FONT[2] = create( wxFont, {12,wxDEFAULT,wxNORMAL,wxBOLD,0,"Courier New"}) FONT[3] = create( wxFont, {12,wxDEFAULT,wxNORMAL,wxNORMAL,0,"Courier New"})
Matt Lewis