QT: how do I determine the topleft of a field within a moveble group?

Terry Judd tsj at unimelb.edu.au
Tue Sep 9 18:14:28 EDT 2008


More like...

On mouseup
  lock screen
  put the topleft of fld "X" into tTL
  set the height of fld "X" to the formattedHeight of fld "X"
  put the topleft of fld "X" to tTL
  unlock screen
End mouseUp

Terry...


On 10/9/08 4:39 AM, "William de Smet" <williamdesmet at gmail.com> wrote:

> Hi Mark,
> Something like:
> 
> on mouseup
> set the height of fld "xxx" to the formattedheight of fld "xxx"
> set the topleft of fld "xxx" to the current topleft of fld "xxx"
> end mouseup
> 
> This doesn't work for me. Maybe I am doing something wrong?
> 
> Greetings,
> 
> William
> 
> 2008/9/9 Mark Smith <lists at futilism.com>
> 
>> William, In your resize handler, can you not just get the field's current
>> topleft, and use that?
>> 
>> Best,
>> 
>> Mark
>> 
>> 
>> On 9 Sep 2008, at 18:41, William de Smet wrote:
>> 
>>  Hi there all,
>>> I have a moveable group in which a field will be resized based upon its
>>> input.
>>> So far so good: I use the formattedwidth and formattedheight to change the
>>> fieldsize.
>>> Of course I set the topleft of the field so it remains at its location.
>>> But because the group is moveable everytime the field has new input it is
>>> set back to its set topleft.
>>> 
>>> What I want is that it stays in its position in the group after new input.
>>> 
>>> I need to know how to store its position (topleft?) in the group.
>>> I hope I made myself clear.
>>> 
>>> Can anyone advise or help me?
>>> 
>>> Greetings,
>>> 
>>> William
>>> _______________________________________________
>>> use-revolution mailing list
>>> use-revolution at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>> 
>> 
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

-- 
Dr Terry Judd
Lecturer in Educational Technology (Design)
Biomedical Multimedia Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne
Parkville VIC 3052
AUSTRALIA

61-3 8344 0187




More information about the use-livecode mailing list