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

William de Smet williamdesmet at gmail.com
Tue Sep 9 14:39:44 EDT 2008


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
>



More information about the use-livecode mailing list