From: Ray A. <ray...@sa...> - 2006-05-11 09:20:34
|
It seems therefore that I can't simply hack it by adding code to the resource file - as a relative newbie I was hoping to avoid delving into wx at this stage, but thanks for the information on why this is happening. Maybe there is an alternative though? I was trying to indicate to the user that they can see more information by selecting an item from the list. I thought that by adding an underline to the item text it would look more like a link, encouraging the user to 'drill down'. Is there anything else I could do to give this impression - using Pythoncard? Ray Allen ----- Original Message ----- From: "Brian Mahoney" <mrb...@gm...> To: "Schollnick, Benjamin" <Ben...@xe...> Cc: "Ray Allen" <ray...@sa...>; <pyt...@li...> Sent: Wednesday, May 10, 2006 7:10 AM Subject: Re: [Pythoncard-users] font underline In the Font dialog the sample of the font will display with overstrike and underline, so it is clear if a font supports those characteristics. The Font dialog settings are not all being saved by pythoncard methods. The pythoncard/dialog.py FontDialog method has the code "result.fontDescription = fontDescription(fontWx)" and this result is returned by FontDialog, however the fontDescription method of pythoncard/font.py which sets the returned dictionary uses only a few of the font.Getxxxx methods and it does not do a font.GetUnderlined So, fontDescription fails to retrieve all of the font properties which may be set in the Font dialog. The on_wFont_mouseClick method in propertyEditor.py which called the font dialog doesn't extract many of the font properties anyway. These two methods would need to be hacked or fixed to reserve the underline/overstrike settings (and more?) from the Font dialog On 5/9/06, Schollnick, Benjamin <Ben...@xe...> wrote: > Is it possible the font itself doesn't support underlining? > Have you tried using a different font? > > - Ben > > > -----Original Message----- > > From: pyt...@li... > > [mailto:pyt...@li...] On > > Behalf Of Ray Allen > > Sent: Tuesday, May 09, 2006 1:10 PM > > To: pyt...@li... > > Subject: [Pythoncard-users] font underline > > > > > > PythonCard resource editor doesn't seem to apply the > > underline font effect > > when checked. I've tried adding various options to the resource file > > manually ('text-decoration':'underline') and others to get > > this working but > > to no avail. This is on Windows. Any advice appreciated. > > Ray Allen > > > > > > > > ------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web > > services, security? Get stuff done quickly with > > pre-integrated technology to make your job easier Download > > IBM WebSphere Application Server v.1.0.1 based on Apache > > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057& > dat=121642 > _______________________________________________ > Pythoncard-users mailing list Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642 > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > |