Skip to content

Commit 056bc94

Browse files
authored
Merge pull request #91 from lkppo/iup-sample-fix
Iup sample fix
2 parents 145c13f + 19e178b commit 056bc94

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

examples/GUI/IUP/buttons.bas

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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
4949
end 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

examples/GUI/IUP/color.bas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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

examples/GUI/IUP/textbox.bas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include once "IUP/iup.bi"
1+
#include once "IUP/iup.bi"
22
const NULL = 0
33
const 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 + _

0 commit comments

Comments
 (0)