[Wnd-commit] wnd/wnd_doc/doc/controls/dialog classes/choosefont choosefont.dtpl,1.1.1.1,1.2
Status: Alpha
Brought to you by:
jurner
|
From: jürgen u. <cer...@us...> - 2005-07-23 20:04:48
|
Update of /cvsroot/wnd/wnd/wnd_doc/doc/controls/dialog classes/choosefont In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5706 Modified Files: choosefont.dtpl Log Message: bit of this and a bit of that Index: choosefont.dtpl =================================================================== RCS file: /cvsroot/wnd/wnd/wnd_doc/doc/controls/dialog classes/choosefont/choosefont.dtpl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** choosefont.dtpl 29 Apr 2005 15:19:32 -0000 1.1.1.1 --- choosefont.dtpl 23 Jul 2005 20:04:39 -0000 1.2 *************** *** 1,4 **** --- 1,11 ---- + + ::defaultpage:: ChooseFont + + ::site:: ChooseFont <IMG SRC="choosefont.gif"></IMG> + <br><br> + <a HREF="contents.html">ChooseFont contents</a> + <br><br> ::site:: class ChooseFont *************** *** 6,20 **** <code>ChooseFont(*flags)</code><br> ! Inits a ChooseFont instance. <br><br> flags can be a combination of the following flags: <DL> - <DT>'hook' - <DD>hooks the dialog. This is usefull for customizing the dialog. - See <a HREF="customizing Choosefont.html">customizing Choosefont</a>. If the dialog is not hooked any attempt to - use one of the common methods for the dialog will fail. - <br><br> - <DT>'debug' <DD>if the dialog is hooked this will allow for debugging its messages. --- 13,21 ---- <code>ChooseFont(*flags)</code><br> ! Creates a ChooseFont dialog. <br><br> flags can be a combination of the following flags: <DL> <DT>'debug' <DD>if the dialog is hooked this will allow for debugging its messages. *************** *** 30,34 **** </DL> ! --- 31,35 ---- </DL> ! <P> *************** *** 45,67 **** <DL> - <DT>'hook' - <DD>hooks the dialog. This is usefull for further customizing the dialog. - See <a HREF="customizing Choosefont.html">customizing Choosefont</a>. If the dialog is not hooked any attempt to - call common methods for the dialog will fail. - <br><br> - <DT>'debug' <DD>if the dialog is hooked this will allow for debugging its messages. The message handler will be called with a message 'debug' <br> ! lp= the message ID<br> ! wp= formated message string <br><br> <DT>'debugall' <DD>same as 'debug' but prints out more messages ! <br><br> ! </DL> ::site:: class ChooseFontFromInstance --- 46,63 ---- <DL> <DT>'debug' <DD>if the dialog is hooked this will allow for debugging its messages. The message handler will be called with a message 'debug' <br> ! lp= the message ID<br> ! wp= formated message as string <br><br> <DT>'debugall' <DD>same as 'debug' but prints out more messages ! <br><br> + </DL> + <P> ::site:: class ChooseFontFromInstance *************** *** 76,97 **** <br><br> <b>Note</b><br> ! <b>(!!) This is currently not tested, so please report any missbehaviour.</b> ! <br> ! flags can be a combination of the following flags: ! ! <DL> ! <DT>'hook' ! <DD>hooks the dialog. This is usefull for further customizing the dialog. ! See <a HREF="customizing Choosefont.html">customizing Choosefont</a>. If the dialog is not hooked any attempt to ! call common methods for the dialog will fail. ! <br><br> ! <DT>'debug' <DD>if the dialog is hooked this will allow for debugging its messages. The message handler will be called with a message 'debug' <br> ! lp= the message ID<br> wp= formated message as string <br><br> --- 72,85 ---- <br><br> <b>Note</b><br> ! <b>(!!) This class is currently not tested, so please report any missbehaviour.</b> ! <br><br> ! <DL> <DT>'debug' <DD>if the dialog is hooked this will allow for debugging its messages. The message handler will be called with a message 'debug' <br> ! lp= the message ID<br> wp= formated message as string <br><br> *************** *** 117,126 **** <br><br> This is allways the color the user selected the last time the dialog ! was run </P> ::item:: Run ! <code>Run(hwnd, logfont, hDC, limitsize, *flags)</code><br> <P> Dislpays the choose font dialog.<br> --- 105,114 ---- <br><br> This is allways the color the user selected the last time the dialog ! was run. Default value returned is zero. </P> ::item:: Run ! <code>Run(hwnd, *flags, **kwargs)</code><br> <P> Dislpays the choose font dialog.<br> *************** *** 132,163 **** <br><br> ! <DT>logfont <DD>A ||type-LOGFONT|| struct to initialize the dialog with or None. The system will try to match ! the font described in the logfont struct. May be None. <br><br> ! <DT>hDC ! <DD>handle of a printer device context or None. This handle is ignored if neither 'printerfonts' nor 'both' is specified. <br><br> ! DT>limitsize <DD>a tuple(font-size-min, font-size-max) specifying the minimum ! and maximum allowable font size to select. May be None ! <br><br> ! ! <DT>flags ! <DD>there are numerous flags you can specify but at least one font type ! flag should to be pecified (unless you want to display an empty ! ChooseFont ialog). See tables below <br><br> - </DL> </P> ! <br><br> ! <TABLE class="table1" BORDER="1"> <TH colspan="2">font type flags:</TH> --- 120,156 ---- <br><br> ! <DT>flags ! <DD>there are numerous flags you can specify but at least one font type ! flag should to be pecified (unless you want to display an empty ! ChooseFont ialog). See tables below ! <br><br> ! ! </DL> ! ! ! <br><br> ! The following keyword arguments are recognized: ! <DL> ! ! <DT>'logfont' <DD>A ||type-LOGFONT|| struct to initialize the dialog with or None. The system will try to match ! the font described in the logfont struct. <br><br> ! <DT>'hdc' ! <DD>handle of a printer device context. This handle is ignored if neither 'printerfonts' nor 'both' is specified. <br><br> ! <DT>limitsize <DD>a tuple(font-size-min, font-size-max) specifying the minimum ! and maximum allowable font size to select. <br><br> </DL> </P> ! <TABLE class="table1" BORDER="1"> <TH colspan="2">font type flags:</TH> *************** *** 257,260 **** --- 250,259 ---- </TR> <TR> + <TD>'hook'</TD> + <TD>hooks the dialog. This is usefull for further customizing the dialog. + See <a HREF="../customizing Choosefont.html">customizing ChooseFont</a>. If the dialog is not hooked any attempt to + call any dialog methods for the dialog will fail.</TD> + </TR> + <TR> <TD>'selectscript'</TD> <TD>akes the charset from the ||type-LOGFONT|| specified, *************** *** 298,301 **** --- 297,304 ---- standard dialog hosts. <br><br> + In 'wnd/dlgs/templates/chooseont.py' you will find the default template for the + OpenFile dialog. You can use this template to base your customized template upon. + <br><br> + <b>Notes</b><br> <OL> *************** *** 303,310 **** class=import>wnd.consts.dlgs</code> <LI>the classname for the main-form should not be specifyed in the template ! <LI>before you start massive typing work: <code ! class=import>wnd.dlgs.templates</code> contains a ! template to be used with <code ! class=import>wnd.tools.dlgeditor</code> you can base your template upon. <LI> </OL> --- 306,312 ---- class=import>wnd.consts.dlgs</code> <LI>the classname for the main-form should not be specifyed in the template ! <LI>before you start massive typing work, see ! <i>'wnd/dlgs/templates/choosefont.py'</I> for a default template of the ! dialogbox <LI> </OL> *************** *** 383,387 **** <TD>"OK"</TD> <TD>210, 16, 45, 14</TD> ! <TD>BS_DEFPUSHBUTTON|WS_GROUP | WS_VISIBLE</TD> </TR> <TR> --- 385,389 ---- <TD>"OK"</TD> <TD>210, 16, 45, 14</TD> ! <TD>BS_DEFPUSHBUTTON|WS_GROUP | WS_VISIBLE | WSW_TABSTOP</TD> </TR> <TR> *************** *** 390,394 **** <TD> "Cancel"</TD> <TD>210, 32, 45, 14</TD> ! <TD>WS_GROUP | WS_VISIBLE</TD> </TR> <TR> --- 392,396 ---- <TD> "Cancel"</TD> <TD>210, 32, 45, 14</TD> ! <TD>WS_VISIBLE</TD> </TR> <TR> *************** *** 397,401 **** <TD>"&Apply"</TD> <TD>210, 48, 45, 14</TD> ! <TD>WS_GROUP | WS_VISIBLE</TD> </TR> <TR> --- 399,403 ---- <TD>"&Apply"</TD> <TD>210, 48, 45, 14</TD> ! <TD>WS_VISIBLE</TD> </TR> <TR> *************** *** 404,408 **** <TD>"&Help"</TD> <TD>210, 64, 45, 14</TD> ! <TD>WS_GROUP | WS_VISIBLE</TD> </TR> <TR> --- 406,410 ---- <TD>"&Help"</TD> <TD>210, 64, 45, 14</TD> ! <TD>WS_VISIBLE</TD> </TR> <TR> |