Search found 1438 matches

by sturgis
Sun May 08, 2016 5:01 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Basket help
Replies: 48
Views: 24078

Re: Basket help

It appears that you have run into one of the reasons I avoid the datagrid if at all possible. In technical terms, then datagrid in your stack is "Broken." I would suggest making a backup of your stack just in case, then delete the broken datagrid. I would even go so far as to answer "YES" when it as...
by sturgis
Sun May 08, 2016 3:53 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Basket help
Replies: 48
Views: 24078

Re: Basket help

First look here: http://lessons.livecode.com/m/datagrid/l/7311-how-do-i-customize-a-table-s-columns You'll want to create a custom column template for your quantity column. You'll also want to create a custom column template for your total column for that item. You'll want to script for the behavior...
by sturgis
Sun May 08, 2016 2:26 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Basket help
Replies: 48
Views: 24078

Re: Basket help

When you "dispatch" you have to make sure livecode knows where to find the control you're dispatching to. If you only provide the control name, it looks at stack that the dispatch is being sent from. So if you have a button in one stack, and you want to dispatch to a control in another stack you nee...
by sturgis
Wed May 04, 2016 10:50 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Basket help
Replies: 48
Views: 24078

Re: Basket help

Agreed! Nothing like jumping off into the deep end. Thankfully there are lots of lessons and tips and tricks re: the datagrid, but even so. If I can accomplish a task ANY other way, I do. (For most of my uses its way to complex to mess with) I use dataGrids, and am fond of saying I do not understand...
by sturgis
Wed May 04, 2016 9:44 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Basket help
Replies: 48
Views: 24078

Re: Basket help

You should probably look at the lessons here: http://lessons.livecode.com/m/datagrid to get a better grasp of the datagrid. From your code, it looks like you're building an array, and specifying a key of 1 (myarray[1]) Then you set the dgdata to myarray. This overwrites the current contents of the d...
by sturgis
Sun May 01, 2016 3:34 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Restricting resize of stack by aspect ratio
Replies: 8
Views: 4408

Re: Restricting resize of stack by aspect ratio

Heres my take on this.. Its set up to resize a graphic, but could be adapted for a stack. To test, open a stack and place 2 rectangles on it. Name one "maskRect' the other "dragRect" Group them and name the group "maskG", then paste the script into the group. local sSizing,sSlope,sMinSize on mouseDo...
by sturgis
Thu Sep 10, 2015 5:40 pm
Forum: Android Deployment
Topic: Button do not navigate
Replies: 8
Views: 5728

Re: Button do not navigate

Are you sure you have a card named "about?" Right after you try to go to the card, put this.. answer the result If there is a problem when you try to go to the card it will appear in "the result" for example, if I try to go to a card that doesn't exist, the result contains "No such card". Hopefully ...
by sturgis
Sun Aug 30, 2015 3:40 pm
Forum: Talking LiveCode
Topic: [Help]Creating a clicker game
Replies: 60
Views: 36259

Re: [Help]Creating a clicker game

Alas, email to that address goes bouncy bouncy bouncy.
by sturgis
Sun Aug 30, 2015 2:11 pm
Forum: Talking LiveCode
Topic: [Help]Creating a clicker game
Replies: 60
Views: 36259

Re: [Help]Creating a clicker game

Nice site, good layout. Have you thought of putting together a book? (you can e-publish pretty easily, and/or let people pay for a printing if they want paper)

Does seem to be a great site to learn from.
by sturgis
Sun Aug 30, 2015 12:02 pm
Forum: Talking LiveCode
Topic: [Help]Creating a clicker game
Replies: 60
Views: 36259

Re: [Help]Creating a clicker game

Yes its possible. But heres the thing. You need to understand your own goal well enough to break the problem down into parts that you can solve. You said.. "This will only work for 1 auto increment, but there will be more for each button.." if each button gives the same amount per second, its easy. ...
by sturgis
Sat Aug 29, 2015 10:06 pm
Forum: Talking LiveCode
Topic: [Help]Creating a clicker game
Replies: 60
Views: 36259

Re: [Help]Creating a clicker game

I haven't poked through the whole thread yet, but.. Do you know how to save information to a file yet? Well first.. Look in the dictionary under "seconds" In your message box if you: put the seconds it'll pop out a number representing the current time in seconds. So yes, you would want to store that...
by sturgis
Sat Aug 29, 2015 9:18 pm
Forum: Talking LiveCode
Topic: [Help]Creating a clicker game
Replies: 60
Views: 36259

Re: [Help]Creating a clicker game

It sounds like you need to know the time of the last update before closing the app, the final amount, and any owned "factories". At which point, the next time you open up the stack, you read in the previous balance, figure out the time since last access and do the math to update your score to the cu...
by sturgis
Sat Aug 29, 2015 7:22 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Why does shell with attrib does not work?
Replies: 6
Views: 5343

Re: Why does shell with attrib does not work?

Theres another thing I do on windows that makes things easier.. put shortfilepath("D:\test folder\subfolder") into tPath at which point tPath has the old style 8.3 no spaces path to the file. merge can be pretty helpful too. If you have this string saved.. "attrib +h [[tPath]]" in a variable named t...
by sturgis
Sat Aug 29, 2015 7:06 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Graphic in scrolling list field disappears
Replies: 22
Views: 10847

Re: Graphic in scrolling list field disappears

The reason the img dissapears is because the character that it is linked to leaves the viewport, so the engine stops rendering it. The same happens with groups, for the same reason. If you want to get around this problem, you can us a cheater method. Use a separate scroll bar, mask off your viewing ...
by sturgis
Sat Aug 29, 2015 6:13 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: DataGrid V8 question
Replies: 6
Views: 3768

Re: DataGrid V8 question

With 8 dp3 I can see the required properties to work with the datagrid. 2nd icon (at the top) datagrid, then for me an error pops up that I ignore (for now), and THEN wait.... about 5 seconds.. And then resize the inspector and voila' there they are. Simple *cough* After the first time things work w...

Go to advanced search