Re: [AD] Check button bug

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Eric Botcazou <ebotcazou@xxxxxxxxxx> wrote:
> > Ok, here's a patch to fix this. Execpt it will break horribly if anyone
> > decides to derive anything from the checkbox, or change coordinates at
> > run time.
> 
> Don't break anything for my very personal problems ;-)
> I think it would be better to make the docs more explicit about the meaning
> of the fields w and h for the check button.

How about this?

Index: allegro._tx
===================================================================
RCS file: /cvsroot/alleg/allegro/docs/allegro._tx,v
retrieving revision 1.61
diff -u -r1.61 allegro._tx
--- allegro._tx	2001/03/21 13:41:52	1.61
+++ allegro._tx	2001/03/25 02:24:30
@@ -6486,7 +6486,9 @@
    This is an example of how you can derive objects from other objects. Most 
    of the functionality comes from d_button_proc(), but it displays itself 
    as a check box. If the d1 field is non-zero, the text will be printed to 
-   the right of the check, otherwise it will be on the left.
+   the right of the check, otherwise it will be on the left. Note that the
+   width and height of the object (w and h fields) need to allow room for
+   the text as well as the check box.
 
 @@int @d_radio_proc(int msg, DIALOG *d, int c);
    A radio button object. A dialog can contain any number of radio button 


-- 
tjaden@xxxxxxxxxx - http://www.psynet.net/tjaden/
SLUTURES (SLEW chers), n.  The four white threads that protrude from Levis
after the tag has been removed.  -- Rich Hall, "Sniglets"



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/