Quote:
Originally Posted by twobob
|
Looking through xform.c from mancala, it looks to me like all the objects have hard-coded sizes for everything - text size, even.
Code:
fdui->holeT0 = obj = fl_add_button(FL_NORMAL_BUTTON,65,60,40,40,"");
fl_set_object_boxtype(obj,FL_DOWN_BOX);
fl_set_object_lcol(obj,FL_SLATEBLUE);
fl_set_object_lsize(obj,FL_HUGE_SIZE);
fl_set_object_lstyle(obj,FL_BOLD_STYLE+FL_EMBOSSED_STYLE);
fl_set_object_callback(obj,doHole,100);
fdui->holeT1 = obj = fl_add_button(FL_NORMAL_BUTTON,105,60,40,40,"");
fl_set_object_boxtype(obj,FL_DOWN_BOX);
fl_set_object_lcol(obj,FL_SLATEBLUE);
fl_set_object_lsize(obj,FL_HUGE_SIZE);
fl_set_object_lstyle(obj,FL_BOLD_STYLE+FL_EMBOSSED_STYLE);
fl_set_object_callback(obj,doHole,101);
fdui->holeT2 = obj = fl_add_button(FL_NORMAL_BUTTON,145,60,40,40,"");
fl_set_object_boxtype(obj,FL_DOWN_BOX);
fl_set_object_lcol(obj,FL_SLATEBLUE);
fl_set_object_lsize(obj,FL_HUGE_SIZE);
fl_set_object_lstyle(obj,FL_BOLD_STYLE+FL_EMBOSSED_STYLE);
fl_set_object_callback(obj,doHole,102);
the hole size seems to be 40x40 and the others must be placement on a grid. To make this bigger, I would guess it would be a total rewrite of this file PITA! Even though I LOVE mancala, this would be a very time consuming job...