File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1-
1+
22#include once "IUP/iup.bi"
33
44#define NULL 0
55
6- declare function ok_onclick cdecl ( byval handler as Ihandle ptr) as integer
7- declare function close_onclick cdecl ( byval handler as Ihandle ptr) as integer
6+ declare function ok_onclick cdecl ( byval handler as Ihandle ptr) as long
7+ declare function close_onclick cdecl ( byval handler as Ihandle ptr) as long
88
99 if ( IupOpen( NULL, NULL ) = IUP_ERROR ) then
1010 end 1
@@ -40,7 +40,7 @@ declare function close_onclick cdecl (byval handler as Ihandle ptr) as integer
4040 end 0
4141
4242''
43- function ok_onclick cdecl ( byval handler as Ihandle ptr) as integer
43+ function ok_onclick cdecl ( byval handler as Ihandle ptr) as long
4444
4545 IupMessage( "IupMessage" , "Press OK" )
4646
@@ -49,7 +49,7 @@ function ok_onclick cdecl (byval handler as Ihandle ptr) as integer
4949end function
5050
5151''
52- function close_onclick cdecl ( byval handler as Ihandle ptr) as integer
52+ function close_onclick cdecl ( byval handler as Ihandle ptr) as long
5353
5454 function = IUP_CLOSE
5555
Original file line number Diff line number Diff line change 1-
1+
22#include once "IUP/iup.bi"
33
44#define NULL 0
55
66'':::::
7- function ok_cb cdecl ( byval handler as Ihandle ptr) as integer
7+ function ok_cb cdecl ( byval handler as Ihandle ptr) as long
88 dim as Ihandle ptr red_text
99 dim as Ihandle ptr green_text
1010 dim as Ihandle ptr blue_text
Original file line number Diff line number Diff line change 1- #include once "IUP/iup.bi"
1+ #include once "IUP/iup.bi"
22const NULL = 0
33const NEWLINE = ! "\n"
44
@@ -11,7 +11,7 @@ function on_click_ok cdecl(byval handler as Ihandle ptr) as long
1111
1212 print "OK clicked! content of textbox: <" + text + ">"
1313
14- IupSetAttribute (label, IUP_TITLE, _
14+ IupSetStrAttribute (label, IUP_TITLE, _
1515 "Thanks. You entered <" + text + ">." + NEWLINE + _
1616 "val() result: " & val(text) & ". " + NEWLINE + _
1717 "IupGetInt() result: " & IupGetInt(textbox, IUP_VALUE) & "." + NEWLINE + _
You can’t perform that action at this time.
0 commit comments