Update of /cvsroot/htoolkit/port/src/cbits/GTK
In directory sc8-pr-cvs1:/tmp/cvs-serv30880/port/src/cbits/GTK
Modified Files:
EditBox.c
Log Message:
Implement readOnly and visible attributes for Entry control
Index: EditBox.c
===================================================================
RCS file: /cvsroot/htoolkit/port/src/cbits/GTK/EditBox.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** EditBox.c 10 Feb 2003 22:42:09 -0000 1.4
--- EditBox.c 26 Mar 2003 17:11:48 -0000 1.5
***************
*** 39,40 ****
--- 39,60 ----
gtk_entry_set_text(GTK_ENTRY(entry), txt);
};
+
+ void osSetEditReadOnly(WindowHandle entry, BOOL readOnly)
+ {
+ gtk_editable_set_editable(GTK_EDITABLE(entry), !readOnly);
+ }
+
+ BOOL osGetEditReadOnly(WindowHandle entry)
+ {
+ return !gtk_editable_get_editable(GTK_EDITABLE(entry));
+ }
+
+ void osSetEditVisibility(WindowHandle entry, BOOL visible)
+ {
+ gtk_entry_set_visibility(GTK_ENTRY(entry), visible);
+ }
+
+ BOOL osGetEditVisibility(WindowHandle editbox)
+ {
+ return gtk_entry_get_visibility(GTK_ENTRY(entry));
+ }
\ No newline at end of file
|