best way to use user-specified pixmaps ?



any good ideas on the best way to stuff a button with a user-specified
pixmap ? i was all set to use an rc file with bg_pixmap[]
specifications, but then i discovered/realized that this doesn't alter
the size of the button at all - if there is nothing else in the
button, we get the button shadow edges, plus a 2x2 (i think) zone in
the middle with 4 pixels of the pixmap - hardly what i intended.

i would really like the use the rc file as a way of defining the
appearance of a series of buttons that contain one of series of 8
pixmaps instead of labels; i wanted to avoid having to create
a new pixmap for every button and calling gtk_container_add() each
time (by default, there are 128 buttons, but there could be a larger
number).

any suggestions ?

--p



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]