Index: intro.html
===================================================================
--- intro.html (revision 23117)
+++ intro.html (revision 23118)
@@ -35,7 +35,7 @@
PCB_DAD_INTEGER(dlg, "foo");
PCB_DAD_MINVAL(dlg, 1);
PCB_DAD_MAXVAL(dlg, 10);
- PCB_DAD_DEFAULT(dlg, 3);
+ PCB_DAD_DEFAULT_VAL(dlg, 3);
widget_id_foo = PCB_DAD_CURRENT(dlg);
PCB_DAD_BUTTON(dlg, "update!");
PCB_DAD_CHANGE_CB(dlg, pcb_act_attr_chg);
Index: widgets.html
===================================================================
--- widgets.html (revision 23117)
+++ widgets.html (revision 23118)
@@ -255,7 +255,8 @@
PCB_DAD_COMPFLAG(table, val) | set all compflags
|
PCB_DAD_MINVAL(table, val) | change the minimal value for numeric input
|
PCB_DAD_MAXVAL(table, val) | change the maximal value for numeric input
- |
PCB_DAD_DEFAULT(table, val) | set the default (initial) value
+ |
PCB_DAD_DEFAULT_VAL(table, val) | set the default (initial) value for non-pointer fields (integers, coords, bools, floats)
+ |
PCB_DAD_DEFAULT_PTR(table, val) | set the default (initial) value for pointer fields (e.g. strings)
|
PCB_DAD_MINMAX(table, min, max) | hange both the minimal and the maximal value for numeric input
|
PCB_DAD_CHANGE_CB(table, cb) | cb is a function that shall be called upon any change to the widget value
|
PCB_DAD_HELP(table, val) | set the help text (typically presented as a tooltip)
|