put awareness

Ken Ray kray at sonsothunder.com
Sat May 15 13:36:26 EDT 2004


Derek, I don't think  the field itself is aware of the change, but you can
add it to your logging command. Here's what I have in my log (watch line
wrapping):

on LogIt what
  if fld "Log" is not empty then
    put cr & what after last line of fld "Log"
  else
    put what into fld "Log"
  end if
  set the scroll of fld "Log" to (the formattedHeight of fld "Log" - the
height of fld "Log")
end LogIt

HTH,

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/


> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com 
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of 
> Derek Bump
> Sent: Saturday, May 15, 2004 11:28 AM
> To: How to use Revolution
> Subject: put awareness
> 
> 
> Are field's aware of when they get data put into them from a command?
> 
> I have a log field that lists server commands, and I would 
> like the field to scroll down to the last command.  I would 
> also like it to not scroll when the user (me) clicks on the 
> field to read over the commands.
> 
> 
> Derek Bump
> Dreamscape Software ____________________________________________
> Compress Images Easily with JPEGCompress 1.2 
> http://www.dreamscapesoftware.com
> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 




More information about the use-livecode mailing list