Search found 64 matches
- Sun Dec 02, 2012 6:39 am
- Forum: Multimedia
- Topic: Way to find a lighter and darker shade of a RGB color?
- Replies: 4
- Views: 6674
Re: Way to find a lighter and darker shade of a RGB color?
Bernd, Your script for finding lighter and darker versions of a color are exactly what I needed for a non-commercial project I'm working on. I'm assuming since you've posted it in a public forum that you will not object to it's reuse (in an adapted version). I would like to give you credit for the s...
- Mon Sep 17, 2012 7:21 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Help with Centered Page Numbers
- Replies: 3
- Views: 2363
Re: Help with Centered Page Numbers
Thanks Klaus, I do know the difference between constants and strings. The quotes in my message were there to separate what I typed from the surrounding text. (I should have said "without the quotes" to make it clear, sorry.) What is frustrating to me is that yesterday using tab (without quotes) did ...
- Mon Sep 17, 2012 3:49 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Help with Centered Page Numbers
- Replies: 3
- Views: 2363
Help with Centered Page Numbers
I'm trying to print a field using the revPrintText command because I want to place a centered page number in the footer of the page, but I am having trouble getting the page number centered. The following command, currently part of a mouseUp handler for a button on the card with the field I want to ...
- Sun Sep 16, 2012 8:37 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Indirect reference to a variable
- Replies: 11
- Views: 6141
Re: Indirect reference to a variable
Thanks SparkOut,
As usual, there's more than one way to do most anything in LiveCode. Glad to have another approach to solve this problem.
As usual, there's more than one way to do most anything in LiveCode. Glad to have another approach to solve this problem.
- Sun Sep 16, 2012 3:49 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Problem with revPrintText
- Replies: 2
- Views: 2084
Re: Problem with revPrintText
Thanks for the quick reply. As you said, it does work in the message box without the parens. This is the sort of thing that drives us beginners crazy. Here's a direct quote from the User Guide: Tip: The Message Box is one of the more useful components in LiveCode when you are starting out and wantin...
- Sun Sep 16, 2012 1:16 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Problem with revPrintText
- Replies: 2
- Views: 2084
Problem with revPrintText
I've created a one card stack ,with one field on it, to test printing from a field. The field is named "Info" and contains styled text such as tabs stops, bold type, and various colors of type. The field prints perfectly when I use the revPrintField command from the message box. However, I want to a...
- Tue Sep 04, 2012 10:30 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Indirect reference to a variable
- Replies: 11
- Views: 6141
Re: Indirect reference to a variable
mwieder, Yes, you're no doubt right -- as long as you are comfortable working with arrays. For my part, I haven't had occasion to work much with arrays (although it's on my list), so in this case since I only need to use the "do" command a couple of times, it's simpler to do that than trying to mast...
- Tue Sep 04, 2012 5:33 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Indirect reference to a variable
- Replies: 11
- Views: 6141
Re: Indirect reference to a variable
Thanks guys for the quick responses (as usual). Richard, you're probably right about using arrays, except in this case I only need to do this a couple of times, so I think Klause's solution is easiest for my situation. For the benifit of anyone else might want to do this: There was a small typo in t...
- Tue Sep 04, 2012 9:11 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Indirect reference to a variable
- Replies: 11
- Views: 6141
Indirect reference to a variable
If I have the name of a global stored in a variable (for example, a local variable, tName, contains "gTest" which is the name of a declared global in my stack), is there some command (or perhaps function that I could write) that would allow me to store info in the global by referring to it using the...
- Wed Aug 29, 2012 8:13 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Backdrop behaves differently depending on how LC is started
- Replies: 9
- Views: 6087
Re: Backdrop behaves differently depending on how LC is star
Thanks guys, I sometimes forget that things work differently in a standalone than in LiveCode. Since the stack will ultimately be a standalone, there will not be a problem with the backdrop there, so I won't let the momentary display of the user's preferred backdrop while still in LiveCode give me a...
- Wed Aug 29, 2012 9:08 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Backdrop behaves differently depending on how LC is started
- Replies: 9
- Views: 6087
Re: Backdrop behaves differently depending on how LC is star
I'm doing it just the way Sturgis suggested above: I save the current backdrop and then change the backdrop color -- from a handler called in the preOpenStack script. That call is the first line in the preOpenStack handler. I wouldn't know how to change the backdrop color before displaying it. That'...
- Wed Aug 29, 2012 3:40 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Backdrop behaves differently depending on how LC is started
- Replies: 9
- Views: 6087
Re: Backdrop behaves differently depending on how LC is star
Thanks very much for the explanation. That does the trick, although I don't understand why it's necessary to do this in such a roundabout way. There is one small problem left that I'm not sure will have a solution: When I open the stack by double-clicking it's icon, LiveCode opens for a brief moment...
- Tue Aug 28, 2012 8:43 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Backdrop behaves differently depending on how LC is started
- Replies: 9
- Views: 6087
Re: Backdrop behaves differently depending on how LC is star
Thanks for your quick response. Not sure the best way to see if the handlers fire. What I did was place a line of code at the start of the preOpenStack handler that says: put "START" and a second line at the end of the handler that says: put " FINISH" after msg When I opened the stack from the deskt...
- Tue Aug 28, 2012 7:46 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Backdrop behaves differently depending on how LC is started
- Replies: 9
- Views: 6087
Backdrop behaves differently depending on how LC is started
When a user opens my stack, I want to preserve whatever backdrop the user is currently using and then change it to my preference for a backdrop while my stack is running. Then when stack closes, I restore the backdrop to the user's original setting. I currently use the following code when my stack o...
- Tue May 22, 2012 5:23 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: two cards that open randomly
- Replies: 63
- Views: 27050
Re: two cards that open randomly
So, it appears that it's time to take the rest of our dialog off the forum (I can hear cheers everywhere -- smile). It used to be possible on some of the boards in the forum to switch to what was called "private messages" (which I believe is still mentioned when you sign up for the forum). Some time...