[Iup-users] dialogs & icons with transparent background color
Andrew Wilson
agrwagrw at gmail.com
Sun Jun 29 00:51:43 GMT+2 2008
Dear IUP List
I would like to be able to set an icon with a transparent background
to a dialog window, but don't seem to be able to do this, sample code
below, is there some trick I'm missing.
Thanks
Andrew Wilson
--using dialog icon value..
require( "iuplua" )
img1 = iup.image{
{ 2,3,1,1,1,1,1,1,1,3,2 },
{ 3,2,3,1,1,1,1,1,3,2,3 },
{ 1,3,2,3,1,1,1,3,2,3,1 },
{ 1,1,3,2,3,1,3,2,3,1,1 },
{ 1,1,1,3,2,3,2,3,1,1,1 },
{ 1,1,1,1,3,2,3,1,1,1,1 },
{ 1,1,1,3,2,3,2,3,1,1,1 },
{ 1,1,3,2,3,1,3,2,3,1,1 },
{ 1,3,2,3,1,1,1,3,2,3,1 },
{ 3,2,3,1,1,1,1,1,3,2,3 },
{ 2,3,1,1,1,1,1,1,1,3,2 };
colors = {
"BGCOLOR" , --
"355 1 1",
"355 355 1"
}
}
vbox = iup.vbox { iup.label {title="Label"}, iup.button { title="Test" } }
dlg = iup.dialog{vbox; title="Dialog", icon=img1 }
dlg:show()
iup.MainLoop()
More information about the iup-users
mailing list