Search found 71 matches

by Xero
Wed Oct 21, 2020 3:48 pm
Forum: Multimedia
Topic: Export Snapshot into Card
Replies: 7
Views: 183

Re: Export Snapshot into Card

Klaus...
You've done it again!
I don't think I could finish any new ideas without you!
"text" instead of "imagedata" has worked. Not sure why, but it's good to go.
I'll post the stack here when it's a little more polished. A nice fun little image manipulator.
X
by Xero
Wed Oct 21, 2020 12:09 pm
Forum: Multimedia
Topic: Export Snapshot into Card
Replies: 7
Views: 183

Export Snapshot into Card

OK... I have been running in circles and need the brainstrust again! I have a substack that has a field with text in it. I want to convert the card into an image (jpeg) so I can use that as part of an image manipulation. The image will then be read as Black or White pixels, and "inserted" into anoth...
by Xero
Tue Oct 20, 2020 9:59 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: HTML5 Deployment
Replies: 5
Views: 227

Re: HTML5 Deployment

Last time I tried to deploy HTML5, the engine was massive. Huge. Time consuming to download and run.
Maybe just give it a little more time to load and run.
I am sure there are better ways of getting HTML5 up and running...
X
by Xero
Tue Oct 06, 2020 6:39 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Moving and expanding Text Field Objects
Replies: 7
Views: 398

Re: Moving and expanding Text Field Objects

I have had a load of trouble with objects of all kinds when moving AND resizing. What Craig says holds true. The object (field) is moved by it's anchor point unless you tell it otherwise. Objects are resized around their anchor point. The left, right, top and bottom will move when resizing, so you n...
by Xero
Tue Sep 29, 2020 4:49 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Rounding to the nearest 1/16
Replies: 7
Views: 315

Re: Rounding to the nearest 1/16

I am sure there's an easier way of doing this... --have a field called 'field' that you put the measurement you want to round into. put fld "field" into tMeasurement --round that measurement either way-- put round(tMeasurement*16,0) / 16 into theFinalMeasurement --check if the result is less than or...
by Xero
Mon Jun 15, 2020 8:40 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Set image correctly
Replies: 4
Views: 457

Re: Set image correctly

Or dummy image and field off visible screen that moves to onscreen and set the contents of the field and the image to be the same as the image you want to show. put "x,y,z, whatever" into fld "msi" and for the image there will be some way of setting the properties of the image to match another image...
by Xero
Tue Jun 09, 2020 4:49 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: linear search
Replies: 6
Views: 553

Re: linear search

Try this: global arrayNumbers global targetNumber on mouseUp initialise getValue targetNumber search targetNumber, arrayNumbers end mouseUp on initialise put empty into field output put 0 into targetNumber put 45 into arrayNumbers[0] put 65 into arrayNumbers[1] put 23 into arrayNumbers[2] put 67 int...
by Xero
Tue Jun 02, 2020 4:17 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: (SOLVED) Change all values of Elements in Key of Array
Replies: 6
Views: 519

Re: Change all values of Elements in Key of Array

Danke Klaus! here's the code I ended up using to change the date in each line from dd/mm/yyyy to yyyy/mm/dd put the dgdata of group "Accounts" into theDataA --put into array put the keys of theDataA into tKeys set the itemdelimiter to "/" repeat for each line tKey in tKeys put theDataA[tKey]["Date"]...
by Xero
Tue Jun 02, 2020 3:21 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: (SOLVED) Change all values of Elements in Key of Array
Replies: 6
Views: 519

Re: Change all values of Elements in Key of Array

Thanks Craig. I think I have no idea what you just said. However, I managed to get a script written that kind of does what I need it to. But kind of doesn't... on mouseup repeat with x= 1 to the number of fields of group "Accounts" if field x of group "Accounts" contains "/" then set the itemdelimit...
by Xero
Tue Jun 02, 2020 12:14 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: (SOLVED) Change all values of Elements in Key of Array
Replies: 6
Views: 519

(SOLVED) Change all values of Elements in Key of Array

Hi, I feel like this should be a really straight forwards process, but for the life of me, I can't work out how to get it done! Arrays!!! Ok, I have a database of accounts (SQL), that I am loading into a livecode file and displaying in a datagrid. I have scripted all of the SQL search, change, write...
by Xero
Fri May 08, 2020 3:00 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Constrain Graphic dimensions
Replies: 3
Views: 455

Re: Constrain Graphic dimensions

on mousedown Get current size end mousedown on resize Get new size of one thing Put (new size)/(old size) into scalefactor Set the new size of the other thing to oldsize * scalefactor end resize Just depends on what you want to do with the resizing (i.e. whether you want the text size to dictate the...
by Xero
Fri May 08, 2020 1:29 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Constrain Graphic dimensions
Replies: 3
Views: 455

Re: Constrain Graphic dimensions

Should be a simple maths trick.
How do you want them to be constrained? Do you want the rhombus to resize relative to the text, the text relative to the rhombus, or do you want the rhombus to change shape (be wider) so the text fits in the rhombus?
Xero
by Xero
Mon May 04, 2020 5:30 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Line Graph: Double X Entrys
Replies: 12
Views: 1676

Re: Line Graph: Double X Entrys

You have a repeated 5 in your first graph as well...
No idea how to fix it, but it seems where you have a double number value, you're getting a repeat...
X
by Xero
Wed Apr 29, 2020 2:14 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: give roles randomly
Replies: 9
Views: 1150

Re: give roles randomly

Xero. I would have 1-9 in a list, select a random number from 1 to 9, assign that number to player 1, then delete that item of the list. See my handler offering, the third post in the thread. I do just that, not relying on a large sortKey. I have done it that way for decades. Craig Clearly reading ...
by Xero
Tue Apr 28, 2020 7:37 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: give roles randomly
Replies: 9
Views: 1150

Re: give roles randomly

on giveRole put "1,2,3,4,5,6,7,8,9" into theList sort items of theList by random(10000) repeat with N = 1 to 9 put item N of theList into fld ("playerRole" & N) end repeat end giveRole put "theres no such object". ive put playerRole" space and all numbers from 1 to 9. Is the problem that it's not g...

Go to advanced search