RE: Top Bottom Left Right

2018-06-24 Thread General 2018 via use-livecode
Klaus ,

At least I was not going mad ! , thanks.

Regards
Camm

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Klaus major-k via use-livecode
Sent: 24 June 2018 20:58
To: How to use LiveCode
Cc: Klaus major-k
Subject: Re: Top Bottom Left Right

Hi Cam,

> Am 24.06.2018 um 21:49 schrieb General 2018 via use-livecode 
> :
> 
> Hi ,
> 
> If I use property inspector and tick "Resize Rect when setting property" and 
> change top,bottom,left or right property the rect changes shape in its fixed 
> location as expected.
> 
> In runtime the rect does not resize but moves location by setting property 
> top,bottom,left or right ?
> 
> Have I missed something ?? or this a bug ??

nope, this is only a feature of the IDE! 8-)

If you need this functionality in your runtime you need to roll your own.
But it's just:
...
lock screen
put the loc of btn "xyz" int tOldLoc
## do your thing with width and height of this button
## which will affect also the LOC unfortunately!
set the loc of btn "xyz" to tOldLoc
unlock screen
...

> Regards
> Camm

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Top Bottom Left Right

2018-06-24 Thread Klaus major-k via use-livecode
Hi Cam,

> Am 24.06.2018 um 21:49 schrieb General 2018 via use-livecode 
> :
> 
> Hi ,
> 
> If I use property inspector and tick "Resize Rect when setting property" and 
> change top,bottom,left or right property the rect changes shape in its fixed 
> location as expected.
> 
> In runtime the rect does not resize but moves location by setting property 
> top,bottom,left or right ?
> 
> Have I missed something ?? or this a bug ??

nope, this is only a feature of the IDE! 8-)

If you need this functionality in your runtime you need to roll your own.
But it's just:
...
lock screen
put the loc of btn "xyz" int tOldLoc
## do your thing with width and height of this button
## which will affect also the LOC unfortunately!
set the loc of btn "xyz" to tOldLoc
unlock screen
...

> Regards
> Camm

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Top Bottom Left Right

2018-06-24 Thread General 2018 via use-livecode
Hi ,

If I use property inspector and tick "Resize Rect when setting property" and 
change top,bottom,left or right property the rect changes shape in its fixed 
location as expected.

In runtime the rect does not resize but moves location by setting property 
top,bottom,left or right ?

Have I missed something ?? or this a bug ??

Regards
Camm
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode