LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
bn
- VIP Livecode Opensource Backer

- Posts: 4163
- Joined: Sun Jan 07, 2007 9:12 pm
Post
by bn » Thu Sep 02, 2010 2:11 pm
Tal,
the standalone builder does not include the patterns in the standalone
See discussion
http://runtime-revolution.278305.n4.nab ... ml#a312438
and
http://runtime-revolution.278305.n4.nab ... ml#a309946
The trick is to include the patterns, which are images in the stack and reference their id when you set a pattern.
Like
Code: Select all
set the foregroundpattern of graphic "myGraphic" to 1026
-- or
set the foregroundpattern of the templategraphic to 1026
this is the number of the id of the image. Look that number up in the property inspector when you select the image of the pattern.
I tried this and it works in a standalone.
To make things simpler I append a stack with 4 patterns that I copied from the stack RevIcons-> RevCompatibilityPatterns1. That is where Rev stores patterns.
So all you have to do is to copy one or more of the 4 patterns I put into the stack and paste them to your stack. Then look up their ID (it will change when you copy them) and reference them as above.
regards
Bernd
-
Attachments
-
- patternsForTal.rev.zip
- (2.34 KiB) Downloaded 271 times
-
Mark
- Livecode Opensource Backer

- Posts: 5150
- Joined: Thu Feb 23, 2006 9:24 pm
-
Contact:
Post
by Mark » Thu Sep 02, 2010 2:23 pm
Hi Bernd,
Do you know why the dictionary speaks of "built-in patterns"? Have you actually tried to set the pattern to anything between 1 and 164 in a standalone? (I haven't tested this but the disctionary says it should work).
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
Klaus
- Posts: 14177
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Thu Sep 02, 2010 2:37 pm
Mark,
the dictionary says a whole LOT of things!

-
Mark
- Livecode Opensource Backer

- Posts: 5150
- Joined: Thu Feb 23, 2006 9:24 pm
-
Contact:
Post
by Mark » Thu Sep 02, 2010 2:50 pm
That's very true, Klaus. I don't assume that the dictionary is right, but I was hoping that someone could clearly state that it does or doesn't work.
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
bn
- VIP Livecode Opensource Backer

- Posts: 4163
- Joined: Sun Jan 07, 2007 9:12 pm
Post
by bn » Thu Sep 02, 2010 3:02 pm
Mark and Klaus,
I tried to built a standalone with the built-in references to patterns. They did not show up in the standalone. I did a search on the list with two of the relevant results posted above.
When I manually copied the pattern images and referenced their ID -> no problem in the standalone.
Go figure.
Tal made me aware of the fact the the pattern I had set in a stack I made a while ago did not show up in the standalone.
regards
Bernd
-
Mark
- Livecode Opensource Backer

- Posts: 5150
- Joined: Thu Feb 23, 2006 9:24 pm
-
Contact:
Post
by Mark » Thu Sep 02, 2010 3:20 pm
Thanks, Bernd. It is clear now.
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
Klaus
- Posts: 14177
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Fri Sep 03, 2010 11:59 am
Hi guys,
bn wrote:Mark and Klaus,
I tried to built a standalone with the built-in references to patterns. They did not show up in the standalone. I did a search on the list with two of the relevant results posted above. When I manually copied the pattern images and referenced their ID -> no problem in the standalone.
...
And that is exactly the problem that pisses off newbies!
When thing do not work as advertised, people think that they made a mistake and are actually helpless and abandon Rev since "it does not work" or "this is over my head". And mouth propaganda may do the rest...
We are more experienced and KNOW and CAN do things manually.
I still use MetaCard, since I cannot get used to the REV IDE, e.g. the million "mouse miles and clicks" necessary for changing and setting props in the inspector with a POPUP! Know what I mean? A couple of tiny buttons would make life a LOT easier.
Or the unneccessary and time consuming animated window changes of the inspector Is contra-productive in my eyes for "powerusers" like us.
OK, enough whining
Have a nice day!
Best
Klaus
-
bn
- VIP Livecode Opensource Backer

- Posts: 4163
- Joined: Sun Jan 07, 2007 9:12 pm
Post
by bn » Fri Sep 03, 2010 12:28 pm
Hi Klaus,
the million "mouse miles and clicks" necessary for changing and setting props in the inspector with a POPUP
Why doesnt Rev offer a "MouseMiles And More" Promotion? For every 100.000 MouseMiles you get a free Platinum-Rant-Incidence per year

And lets have a Mouser-Of-The-Year contest. And the Clicking-For-A-Better-World challenge.
I collect my MouseMiles, just wonder whether Dixie's cat qualifies for them too?
Well I think you got a point about the Pop-Up. But I can live with that as long as the rest works.
Best regards
Bernd
-
Klaus
- Posts: 14177
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Fri Sep 03, 2010 12:52 pm
OK, you are right, but I started with MetaCard in 1999 and got used to and fell in love with its spartanic (in its original meaning) IDE.
Take a look at the MC IDE if yo did not already. OK, I am the Poobah of the MC IDE
Some properties e.g. can only be accessed by script in Rev and are not in the inspector anyway.
So all the automatisms (that bloats the IDE) and eye candy are more for younger folks like you
SPARTAAAAA!
Best
Klaus
-
tal
- Posts: 84
- Joined: Thu Jul 02, 2009 3:27 pm
Post
by tal » Fri Sep 03, 2010 1:00 pm
Thank you all and thank you bn for your explanation and your .rev.
Tal