[Iup-users] dialogs & icons with transparent background color
Antonio Scuri
scuri at tecgraf.puc-rio.br
Sun Jun 29 19:26:10 GMT+2 2008
There is a restriction in the dynamic creation of icons that affects icons
for dialogs.
To be able to do that you must use a .ico file and add it to a .rc file in
your Windows project. See the iup/etc/iup.rc for a sample.
Best,
scuri
> -----Original Message-----
> From: iup-users-bounces at lists.luaforge.net
> [mailto:iup-users-bounces at lists.luaforge.net] On Behalf Of
> Andrew Wilson
> Sent: sábado, 28 de junho de 2008 23:52
> To: IUP discussion list.
> Subject: [Iup-users] dialogs & icons with transparent background color
>
> 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()
>
> _______________________________________________
> iup-users mailing list
> iup-users at lists.luaforge.net
> http://lists.luaforge.net/cgi-bin/mailman/listinfo/iup-users
>
More information about the iup-users
mailing list