Search found 1473 matches

by sturgis
Fri Feb 22, 2019 2:05 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: SQLite Questions
Replies: 32
Views: 1681

Re: SQLite Questions

If the default folder is pointing to the location that contains your "data" folder, I think it should locate and open up your database correctly. If this is happening in the IDE, its likely that the default folder is pointing to a wrong, and likely un-writeable location. Check to see what the defaul...
by sturgis
Thu Mar 29, 2018 12:34 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: widget Browser + Port 80 + htaccess
Replies: 6
Views: 845

Re: widget Browser + Port 80 + htaccess

I ran across this issue, and ended up using revbrowseropen rather than a widget to get around it. It would be very nice if this capability was added to the widget, or if there was a way to make it work as it is. I really like being able to drag and drop a browser.
by sturgis
Fri Jul 14, 2017 6:51 pm
Forum: Creating Games
Topic: Kids' exam, summer 2017
Replies: 4
Views: 1625

Re: Kids' exam, summer 2017

My take on it.

https://www.dropbox.com/s/c40jiwn36lroh ... ecode?dl=0

I too used an image object. oops.
by sturgis
Wed Mar 15, 2017 2:26 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: store and compare data in variable?
Replies: 11
Views: 1462

Re: store and compare data in variable?

In the case of multiple mouseups that do generally the same thing I move the main handler to the card or stack and then call that one with a passed parameter. 2 buttons both alike each with the handler on mouseup switchgroups "mygroup1" end mouseup on mouseup switchgroups "mygroup2" end mouseup And ...
by sturgis
Mon Feb 06, 2017 5:43 am
Forum: iOS Deployment
Topic: 360º Panorama
Replies: 18
Views: 6751

Re: 360º Panorama

I don't think it would be too bad. You would need more than 1 copy of the same image to do it as I envision, that way as the left edge is about to show in the viewport, you tack a copy of the image to the left side and line it up, same with the right side if it is going to come into view. Pretty muc...
by sturgis
Tue Aug 30, 2016 2:40 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Underneath
Replies: 28
Views: 4220

Re: Underneath

One more thing you might consider, get rid of field fscrip entirely. Since you're doing a name change of the new tile, its easy enough to add a conditional to your code.. if the short name of me contains ".jpg" then do the clone stuff.. (and "set the script of.." will no longer be necessary) and of ...
by sturgis
Sun Aug 28, 2016 9:07 pm
Forum: Talking LiveCode
Topic: all data from one datagrid to column i another datagrid?
Replies: 1
Views: 603

Re: all data from one datagrid to column i another datagrid?

I'm hoping I understand what you area asking.. When you -- put the dgdata of grp "tmpldatagrid" into thedataB you end up with an array like this.. thedatab[1] [column] data [another column] data theDataB[2] [column] data [another column] data etc.. So when you -- put thedataB["data"] into tdata tDat...
by sturgis
Sun Aug 28, 2016 7:16 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Underneath
Replies: 28
Views: 4220

Re: Underneath

EDIT: Changed the line that checks for intersect to the following if the mouseloc is within the rect of img tLine then Using "within" removes a little bit of odd behavior ENDEDIT Here, try this in your tile buttons (or just one to see what it looks like) on mouseDown lock screen set the itemdel to "...
by sturgis
Sun Aug 28, 2016 6:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Underneath
Replies: 28
Views: 4220

Re: Underneath

Nice catch! I fixed the issue while messing with your stack by using long id's wherever necessary, but think I like your method better. I've been messing around with a) cloning, and then b) immedietly grabbing the new cloned letter tile, but haven't managed to make that work. I'm wondering if an alt...
by sturgis
Sat Jun 18, 2016 6:25 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Basket help
Replies: 48
Views: 4260

Re: Basket help

You can use "dispatch" or "send" for this. Look earlier in this thread for an example using dispatch. dispatch "addItem" to <where do you want it go go? " with the info you want to go along goes here. For example if you had a command that adds 2 numbers on a different stack, in a button on a card yo...
by sturgis
Thu Jun 16, 2016 6:37 pm
Forum: Talking LiveCode
Topic: Moving button unwanted behaviour
Replies: 28
Views: 2785

Re: Moving button unwanted behaviour

Yep. Relayer is interesting. I've never needed to relayer, so its all new to me.

you can relayer before, relayer after, or front, or back or..
by sturgis
Thu Jun 16, 2016 5:18 pm
Forum: Talking LiveCode
Topic: Moving button unwanted behaviour
Replies: 28
Views: 2785

Re: Moving button unwanted behaviour

YOu set the layer to the highest layered control in the group. That way, it takes over that position, (still in the group) and the other controls shift downward to fill the vacated hole. And if I understand what I read in the dictionary for "relayer" thats exactly what "relayer <control> after the o...
by sturgis
Thu Jun 16, 2016 3:41 pm
Forum: Talking LiveCode
Topic: Moving button unwanted behaviour
Replies: 28
Views: 2785

Re: Moving button unwanted behaviour

Hey, you might look at "relayer" in the dictionary too. As far as "top" goes, its likely that while moving, you pull it out of the group, then you set it back to where it was, inside the group. My method did the math to find the right layer number, but it looks like with relayer you can do.. relayer...
by sturgis
Thu Jun 16, 2016 3:11 pm
Forum: Talking LiveCode
Topic: Moving button unwanted behaviour
Replies: 28
Views: 2785

Re: Moving button unwanted behaviour

Yep, what klaus said. A couple additions.. When you officially start to move the button, you might want to save its current layer so that you can revert after drag. Also, to keep from layering your way out of the group you can find the correct number to relayer to by getting the layer of the owner o...
by sturgis
Tue Jun 14, 2016 8:42 pm
Forum: Talking LiveCode
Topic: Moving button unwanted behaviour
Replies: 28
Views: 2785

Re: Moving button unwanted behaviour

Gotta go to town, but off the top of my head you probably need to do something simple like... on mouseDown pBtn if pBtn is 3 then put "No" into MovedYN put the millisec into MovingDelay end if end mouseDown And in your mousestilldown.. Since the dictionary says its sent "periodically" you probably d...

Go to advanced search