thank you very much.
my mistake was: I was only looking on the parameters that are viewed after type setVirtualButtonsize
which told me :
Integer index, Float size
now I noticed that arrow on left side which can me show more optional parameter:
Integer index, Float sizex, Float sizey
best regards and thank - to early for me on this sunday
example with (re)size of virtualbuttons 4 ppl who found this thread:
rem
rem AGK Application
rem
rem Portrait App
SetDisplayAspect( 0.666 )
rem Nice backdrop
CreateSprite ( 1, LoadImage ( "background5.jpg" ) )
SetSpriteSize ( 1, 100, 100 )
rem Create Virtual Buttons
AddVirtualButton ( 1, 50, 30, 30 )
AddVirtualButton ( 2, 50, 70, 30 )
SetVirtualButtonText(1, "Button 1")
SetVirtualButtonText(2, "Button 2")
rem button resize-setup
global a=0
global amax=50
global amin=30
global aval=1
doexit=0
rem Main loop
while doexit=0
Print ( "Virtual Buttons Are Multi-Touch" )
Print ( "" )
PrintC ( "Button One = " )
Print ( GetVirtualButtonState ( 1 ) )
PrintC ( "Button Two(Exit) = " )
Print ( GetVirtualButtonState ( 2 ) )
gosub resize
SetVirtualButtonSize(1, a*1.7, a*0.7 )
SetVirtualButtonSize(2, a)
if GetVirtualButtonReleased ( 2 )
doexit=1
endif
Sync()
endwhile
goto finalexit
resize:
if aval=1
inc a
inc a
inc a
inc a
if a>=amax
aval=0
a=amax
endif
else
dec a
if a<=amin
aval=1
a=amin
endif
endif
return
finalexit:
rem finally exitus!