DanRRight
Joined: 10 Mar 2008 Posts: 2819 Location: South Pole, Antarctica
|
Posted: Mon Apr 01, 2013 8:46 pm Post subject: %dd and %df changes control behaviour |
|
|
Let's look at this code: if you type numbers into the first line it runs adding numbers OK. Let's add %dd to the controls. Now when you type number into the fields of second line it does not do anything and only works via %dd wheel. Same for %df. Is this normal default behavior?
Code: | winapp
use clrwin
common i1,i2,i3, j1,j2,j3
integer cb
external cb
save
i=winio@('%ww%ac[esc]&','exit')
i=winio@('Add two numbers %ta%6^rd + %6^rd = %6rd%ff&', i1,cb, i2,cb, i3)
i=winio@('Add two numbers %ta%dd%4^rd + %dd%4^rd = %6rd %ff', 1,j1,cb, 1,j2,cb, j3)
end
integer function cb()
use clrwin
common i1,i2,i3, j1,j2,j3
i3=i1+i2
j3=j1+j2
call window_update@(i3)
call window_update@(j3)
cb=1
end function |
|
|