Re: doubts in radio button and check button ( gtk)



raji eswari <rajieswari usa net> writes:
i had a  doubt in gtk.
i added a frame to the layout within a window.
Inside the frame i have added a layout.
within the layout a pixmap is added which occupies the entire frame.
i am adding radiobutton and checkbtn inside the layout of the frame by moving
the pixmap aside.
after placing all the components i moved the pixmap to the original position.
while execution of the program when i clicks on the chkbtn the other
components like labels disappear.
when i click on the radiobtn the other option of the radiobuttongroup just
disappears.
pls help in this regards.
thanks in advance


GTK doesn't support "stacked" widgets like that in any sane way.

What you want to do is set the background of the layout to a
GdkPixmap. (Note G*d*kPixmap, not G*t*kPixmap.)

Paul is good at explaining how to do that with an RC file. You could
also do it with GtkRcStyle, using the instructions for changing colors
that have been frequently posted here only setting bg_pixmap_name in
the GtkRcStyle instead of a color.

Havoc




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