Silverfrost Forums

Welcome to our forums

%dd and %df changes control behaviour

1 Apr 2013 7:46 #11926

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?

   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
Please login to reply.