building a control -- Well trying anyway
Mark Schonewille
m.schonewille at economy-x-talk.com
Sat Nov 16 06:39:20 EST 2013
Hi Nakia,
The problem is that tNewControl contains a long ID. If a variable
contains a long ID, you don't need to put "group" before the variable.
Because the long ID is a complete reference, you don't need to add a
reference to a card or a stack either.
Correct is:
set the rect of tNewGroup to tRect
Incorrect is:
set the rect of group tNewGroup of the current card of the current stack
to tRect
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other
colour spaces. http://www.color-converter.com
Buy my new book "Programming LiveCode for the Real Beginner"
http://qery.us/3fi
Fill out this survey please
http://livecodebeginner.economy-x-talk.com/survey/
On 11/16/2013 12:23, Nakia Brewer wrote:
> Its showing the following error in the message window
>
> Message execution error:
> Error description: Chunk: can't find background
> Hint:
>
> Its failing when its trying to set the rect of the newly created group.
> I have tried so far:
>
> set the rect of group tNewControl to tRect
> set the rect of control tNewControl to tRect
>
>
> The contents of tNweControl are:
> group id 1080 of card id 1002 of stack "/Users/nakia/Desktop/UIKeyboardToolbar Test App.livecode"
>
> Im trying the lockLoc now
More information about the use-livecode
mailing list