Thanks Sturgis-- that clickline is exactly what I needed.
I've deleted my original handler.
And Jean-Marc-- great little example stack there. That rounds out this thread.
If anybody every has a similar questions, this is where they'll find all the answers.
Search found 397 matches
- Mon Jul 02, 2012 3:06 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Last Click of a Multi-Hilited Text Field
- Replies: 4
- Views: 3462
- Sat Jun 30, 2012 6:28 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Last Click of a Multi-Hilited Text Field
- Replies: 4
- Views: 3462
Last Click of a Multi-Hilited Text Field
If I want to grab a line single line in a text field set for: ListBehavior, multipleHilite, nonContiquousHilite & toggleHilites. This code returns a list of hilited line numbers. put the HilitedLines of fld "my.list" into my.variable For instance, if 3 lines were hilited, I get something like this, ...
- Fri Jun 29, 2012 5:53 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Stack Location: jumping all over
- Replies: 3
- Views: 3331
Re: Stack Location: jumping all over
Thanks Sturgis! That was exactly what I needed! 1 line of code to replace my 8. And Mark! Wow-- your little algorithm is is FANTASTIC! That solved a problem I didn't even know I had. There 3 lines of code replaced my 10. Everybody should save those three lines (above) to their clip library. It's not...
- Thu Jun 28, 2012 10:18 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: What is the best way to implement Wait Mode?
- Replies: 8
- Views: 4816
Re: What is the best way to implement Wait Mode?
I don't know if this will help or not, but I've got something like this in my app. Of course I made a few modifications to reflect you situation. Basically you've got two global fields" sec.cntr & timer.on. When you want to start waiting, you put true in timer.on, and then call on.blinktimer . Then ...
- Thu Jun 28, 2012 10:01 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Stack Location: jumping all over
- Replies: 3
- Views: 3331
Stack Location: jumping all over
I've got a stack that is resized based on content. Content is just a single text field. I can save the loc and use that next time the window opens, but since the loc numbers are based on the center of the object, this stack jumps all over, depending on the sequence of the content size. I'm really st...
- Thu Jun 28, 2012 2:25 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Windows & Macs: Common Fonts
- Replies: 3
- Views: 2276
Re: Windows & Macs: Common Fonts
Thanks Guglielmo-- that's exactly what I was looking for.
And Mark-- YES-- I will definitively be using Installer Maker!
And Mark-- YES-- I will definitively be using Installer Maker!
- Wed Jun 27, 2012 4:41 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Windows & Macs: Common Fonts
- Replies: 3
- Views: 2276
Windows & Macs: Common Fonts
A while back, I was testing an Android app, and noticed that the fonts I used on my desktop, looked different on my phone. My guess is the Android OS tries use a font, which best approximates the font used in the desktop IDE. Now I have an desktop app which is to be deployed on both Windows and Mac ...
- Wed Jun 27, 2012 12:00 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: mouseUp vs mouseDown
- Replies: 2
- Views: 2224
Re: mouseUp vs mouseDown
Good to know-- this may not be such a good idea with mobile apps.
Thanks Craig--
Thanks Craig--
- Tue Jun 26, 2012 10:34 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: mouseUp vs mouseDown
- Replies: 2
- Views: 2224
mouseUp vs mouseDown
I made an interesting discovery today. I've got a lot buttons that perform operations on various Scrolling Fields. Some buttons perform multiple operations on two or more fields. I've noticed for a while now, LiveCode seem to be very slow in these operations. Now I understand why. The lag was the am...
- Tue Jun 26, 2012 10:04 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Getting selected text of a Data Grid
- Replies: 4
- Views: 3302
Re: Getting selected text of a Data Grid
I found this in the doUpdate handler. I think that's what you're looking for. put the dgHilitedLines of group "mygrid" into theLine --grabs hilited line put the dgDataOfLine[theLine] of group "mygrid" into theDataA -- theDataA is now an array variable. -- then you get the specific column values by u...
- Tue Jun 26, 2012 9:20 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Getting selected text of a Data Grid
- Replies: 4
- Views: 3302
Re: Getting selected text of a Data Grid
I think you'll find the answer you're looking for here:
Create, Read, Update, Delete Example
Create, Read, Update, Delete Example
- Tue Jun 26, 2012 6:52 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Local Variables with Variable Checking
- Replies: 7
- Views: 3833
Re: Local Variables with Variable Checking
Good point Dixie!
So-- if a Local variable is declared at the top of a script,
then it is global to all handlers in that script.
And of course, if a Local variable is declared within a handler,
then it is unique and available only to that handler.
So-- if a Local variable is declared at the top of a script,
then it is global to all handlers in that script.
And of course, if a Local variable is declared within a handler,
then it is unique and available only to that handler.
- Tue Jun 26, 2012 5:33 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Local Variables with Variable Checking
- Replies: 7
- Views: 3833
Re: Local Variables with Variable Checking
You were right! It was accidently defined as a Global variable. On my long list of GREAT things about LiveCode is the the Find & Replace window. So often when you want to change a name, you absolutely must be able to find all occurrences in the entire project. Find and Replace makes this easy. 885 f...
- Tue Jun 26, 2012 4:32 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Local Variables with Variable Checking
- Replies: 7
- Views: 3833
Local Variables with Variable Checking
It is my understanding that Local Variables are local to the handler where the are defined. Thus, if I want to call my counter, cntr, I can use that same variable name in many handlers, without a conflict, as long as they are all defined as Local. So, I've got Variable Checking turned on. But I stil...
- Tue Jun 26, 2012 3:47 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Test for If Sub-Stack is Open
- Replies: 7
- Views: 4252
Re: Test for If Sub-Stack is Open
Thanks for your feedback on this.
I used:Then, it turns out, the revloadedstacks() function shows:
All stacks part of the main stack. In memory or not. Open or not.
I used:
Code: Select all
set the destroyStack of stack "mySubStack" to true
close stack "mySubStack"
All stacks part of the main stack. In memory or not. Open or not.