Hi JRS,
Read here.
#define IUP_TITLE "TITLE"
%IUP_CLOSE =-3
%IUP_ERROR = 1
enum { IUP_DRAW_FILL, IUP_DRAW_STROKE, IUP_DRAW_STROKE_DASH }
typedef struct Ihandle_ {}
Ihandle_ Ihandle
typedef int (*Icallback)(Ihandle*)
typedef struct _IdrawCanvas {}
_IdrawCanvas IdrawCanvas
! IupOpen Lib "iup.dll" (sys a,b) as sys
! IupCreate Lib "iup.dll" (string cname) as sys
! IupSetAttributes Lib "iup.dll" (sys ih,string strz) as sys
! IupAppend Lib "iup.dll" (sys ih, child) as sys
! IupRefresh Lib "iup.dll" (sys ih)
! IupSetCallback Lib "iup.dll" (sys ih, string sname, sys func) as sys
! IupShow Lib "iup.dll" (sys ih) as sys
! IupShowXY Lib "iup.dll" (Ihandle *ih, sys x, sys y) as sys
! IupSetFocus Lib "iup.dll" (sys ih) as sys
! IupRecordInput Lib "iup.dll" (char *filename, sys mode) as sys
! IupPlayInput Lib "iup.dll" (char *filename) as sys
! IupMainLoop Lib "iup.dll" () as sys
! IupImageLibOpen Lib "iup.dll" () as sys
! IupLoopStep Lib "iup.dll" () as sys
! IupLoopStepWait Lib "iup.dll" () as sys
! IupMainLoopLevel Lib "iup.dll" () as sys
! IupClose Lib "iup.dll" ()
! IupFlush Lib "iup.dll" ()
! IupExitLoop Lib "iup.dll" ()
! IupUpdate Lib "iup.dll" (Ihandle *ih)
! IupUpdateChildren Lib "iup.dll" (Ihandle *ih)
! IupRedraw Lib "iup.dll" (Ihandle *ih, sys children)
! IupRefresh Lib "iup.dll" (Ihandle *ih)
! IupRefreshChildren Lib "iup.dll" (Ihandle *ih)
! IupMapFont Lib "iup.dll" (char *iupfont) as string
! IupUnMapFont Lib "iup.dll" (char *driverfont) as string
! IupHelp Lib "iup.dll" (string url) as sys
! IupLoad Lib "iup.dll" (char *filename) as string
! IupLoadBuffer Lib "iup.dll" (char *buffer) as string
! IupVersion Lib "iup.dll" () as string
! IupVersionDate Lib "iup.dll" () as string
! IupVersionNumber Lib "iup.dll" () as sys
! IupSetLanguage Lib "iup.dll" (char *lng)
! IupGetLanguage Lib "iup.dll" () as string
! IupText lib "iup.dll" (char *text)
! iupDrawCreateCanvas Lib "iup.dll" (Ihandle *ih) as sys
! iupDrawKillCanvas Lib "iup.dll" (sys *dc)
! iupDrawFlush Lib "iup.dll" (sys *dc)
! iupDrawUpdateSize Lib "iup.dll" (sys *dc)
! iupDrawGetSize Lib "iup.dll" (sys *dc, *w, *h)
! iupDrawLine Lib "iup.dll" (sys *dc, x1, y1, x2, y2, byte r, g, b, sys style)
! iupDrawRectangle Lib "iup.dll" (sys *dc, x1, y1, x2, y2, byte r, g, b, sys style)
! iupDrawArc Lib "iup.dll" (sys *dc, x1, y1, x2, y2, double a1, a2, byte r, g, b, sys style)
! iupDrawPolygon Lib "iup.dll" (sys *dc, *points, count, byte r, g, b, sys style)
! iupDrawText Lib "iup.dll" (sys *dc, char *text, sys len, x, y, byte r, g, b, char *font)
! iupDrawImage Lib "iup.dll" (sys *dc, char *name, sys make_inactive, x, y, *img_w, *img_h)
! iupDrawSetClipRect Lib "iup.dll" (sys *dc, x1, y1, x2, y2)
! iupDrawResetClip Lib "iup.dll" (sys *dc)
! iupDrawRectangleInvert Lib "iup.dll" (sys *dc, x1, y1, x2, y2)
! iupDrawParentBackground Lib "iup.dll" (sys *dc)
sys canvas,font
Sub iText (sys x,y, string text, sys r,g,b)
iupDrawText *canvas, text, len(text), x,y, r,g,b, 0
End Sub
IupOpen(0,0)
win = iupCreate "dialog"
iupSetAttributes win,"TITLE=INSANITY, SIZE=174x148"
iupShow win
canvas = IupDrawCreateCanvas *win
iupDrawRectangle *canvas, 0,0, 244,238, 254,72,170, 1
iupDrawRectangle *canvas, 1,1, 243,237, 254,92,270, 1
iText 50,20, "SORRY MISTER IUP !",255,25,25
iText 80,100,"NO TIME !!",255,255,255
iText 20,120,"I GOT OWN STUPID WORKING.",255,255,100
iText 50,140,"AND THAT " + 500 + "x",55, 255, 10
iText 30,200,"THANK YOU FOR ENQUIRY",255,128,128
iupDrawFlush *canvas
IupMainLoop()
iupDrawKillCanvas *canvas
IupClose()