Update of /cvsroot/htoolkit/port/src/cbits/Win32
In directory sc8-pr-cvs1:/tmp/cvs-serv14592/port/src/cbits/Win32
Modified Files:
Button.c EditBox.c Label.c
Log Message:
The font attribute from Literate class is implemented
Index: Button.c
===================================================================
RCS file: /cvsroot/htoolkit/port/src/cbits/Win32/Button.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Button.c 10 Feb 2003 22:42:10 -0000 1.3
--- Button.c 26 Mar 2003 22:09:58 -0000 1.4
***************
*** 53,54 ****
--- 53,60 ----
handleWindowReLayout(GetParent(button));
};
+
+ void osChangeButtonFont(WindowHandle button, FontHandle font)
+ {
+ SendMessage(button, WM_SETFONT, (WPARAM) font, MAKELPARAM (TRUE,0));
+ handleWindowReLayout(GetParent(button));
+ };
Index: EditBox.c
===================================================================
RCS file: /cvsroot/htoolkit/port/src/cbits/Win32/EditBox.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** EditBox.c 26 Mar 2003 17:11:48 -0000 1.5
--- EditBox.c 26 Mar 2003 22:09:59 -0000 1.6
***************
*** 86,87 ****
--- 86,92 ----
}
+ void osChangeEditBoxFont(WindowHandle editbox, FontHandle font)
+ {
+ SendMessage(editbox, WM_SETFONT, (WPARAM) font, MAKELPARAM (TRUE,0));
+ handleWindowReLayout(GetParent(editbox));
+ };
\ No newline at end of file
Index: Label.c
===================================================================
RCS file: /cvsroot/htoolkit/port/src/cbits/Win32/Label.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Label.c 10 Feb 2003 22:42:10 -0000 1.3
--- Label.c 26 Mar 2003 22:10:01 -0000 1.4
***************
*** 53,54 ****
--- 53,60 ----
handleWindowReLayout(GetParent(label));
};
+
+ void osChangeLabelFont(WindowHandle label, FontHandle font)
+ {
+ SendMessage(label, WM_SETFONT, (WPARAM) font, MAKELPARAM (TRUE,0));
+ handleWindowReLayout(GetParent(label));
+ };
\ No newline at end of file
|