IMPORT iup.sbi
CONST IUP_CURRENT = 0xFFFB
Iup::Open()
dlg = Iup::ColorDlg()
Iup::SetAttribute(dlg, "VALUE", "128 0 255")
Iup::SetAttribute(dlg, "ALPHA", "142")
Iup::SetAttribute(dlg, "SHOWHEX", "YES")
Iup::SetAttribute(dlg, "SHOWCOLORTABLE", "YES")
Iup::SetAttribute(dlg, "TITLE", "IupColorDlg Test")
' Iup::SetCallback(dlg, "HELP_CB", (Icallback)help_cb)
Iup::Popup(dlg, IUP_CURRENT, IUP_CURRENT)
IF Iup::GetInt(dlg, "STATUS") THEN
PRINT "OK\n"
PRINT FORMAT(" COLOR(%s)\n", Iup::GetAttribute(dlg, "VALUEHEX"))
PRINT FORMAT(" COLORTABLE(%s)\n", Iup::GetAttribute(dlg, "COLORTABLE"))
ELSE
PRINT "CANCEL\n"
END IF
Iup::Destroy(dlg)
Iup::Close()