matt@bacchus.esa.oz (Matt Atterbury) (12/07/90)
Hi all! We use Athena widgets (maybe that's our problem?), and we want the following layout: +---------------------------------------------------------------+ | +-----+ +-----+ +-----+ +-----+ +-----+ | | | | | | | | | | | | | | +-----+ +-----+ +-----+ +-----+ +-----+ | | +-----+ +---+---------------------------------------------+ | | | ADD | | | | | | | +-----+ | | | | | | | | | | | | +-----+ | | | | | | | DEL | | | | | | | +-----+ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +---+---------------------------------------------+ | +---------------------------------------------------------------+ The big one is a scroll list widget (you can select one line) with a scroll bar on the left. Each line is of the form: "aaaaa bbbbb ccccc ddddd eeeee" and the boxes along the top are text widgets for entering the field values. When add is pressed, the fields are joined together to make a line which is added to the scroll list. When a line in the scroll list is selected, the fields are extracted and stuck in the field entry widgets. OK so far? The problem is: how to specify the positions of the field entry widgets such that any font can be used (and resize events can be handled), and yet each widget will line up vertically with it field in the scroll list widget. For a given font, we can fake it with 'magic numbers', but this is obviously "not nice". Our approach is hampered by the fact that the position of each widget has to be calculated according to where the field lies in the line of text (calculated according to font characteristics amongst others) and that specifying the x and y coordinates of each does nothing (presumably because they're inside a form widget). How would you do it? (use Motif/OpenLook/etc is not acceptable). many thanks and regards ... -- ------------------------------------------------------------------------------- Matt Atterbury [matt@bacchus.esa.oz] Expert Solutions Australia, Melbourne UUCP: ...!uunet!munnari!matt@bacchus.esa.oz "klaatu barada nikto" or: ...!uunet!murtoa!bacchus.esa.oz!matt "consider this a divorce" ARPA: matt%bacchus.esa.oz.AU@uunet.UU.NET "life? don't talk to me about life!"