forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

%dd and %df changes control behaviour

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
DanRRight



Joined: 10 Mar 2008
Posts: 2813
Location: South Pole, Antarctica

PostPosted: Mon Apr 01, 2013 8:46 pm    Post subject: %dd and %df changes control behaviour Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group