Button from an image (round Button)



Hi everyone.

 

Forgive me if my question is going to sound silly. But I’m new to GTK so I have to ask.

 

I want to create a button that would not be as a normal button, but with a shape I have from a PNG image(with transparency)

 

I have tried to do “shape_combine_mask” , created the masks, but it seems this works only for windows.

 

But I need a button with the shape from a PNG image and if I press it I would call a function so the button would have roll_over, or atleast “clicked” signals. Plus I want to make a bunch of them to create a keypad so I would have to move them and arrange them in a loop.

 

 

How could I do this ?

 

PLS help out.

 

Yours truly, Demetris Z.



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