Search found 9473 matches

by dunbarx
Thu Mar 11, 2010 3:25 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Changing the size of objects
Replies: 5
Views: 4333

Re: Changing the size of objects

I think most of the behavior is logical. If you have an object located somewhere, and you change its width, IMHO it ought not to change its loc. It gets fatter, but stays where it is, if you know what I mean. You actually want to change its "right", an explicit option open to you, but you originally...
by dunbarx
Wed Mar 10, 2010 6:01 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Changing the size of objects
Replies: 5
Views: 4333

Re: Changing the size of objects

Klaus has a point (no pun intended), in that a little scripting will be required. But what I am hearing is that you want to lock the topLeft of and object. This will keep it visually "in place" while allowing it to grow in a "normal" way, that is, down and to the right. So take his script and substi...
by dunbarx
Tue Mar 02, 2010 8:45 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Flag a change
Replies: 2
Views: 2529

Re: Flag a change

Also check out the "exitField" message, sent when the user leaves the field, but when nothing has changed.

Craig Newman
by dunbarx
Tue Mar 02, 2010 8:41 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: array manipulations
Replies: 2
Views: 3205

Re: array manipulations

Klaus is correct. But what he may not have said strongly enough is that when you combine an array, you change the array to an ordinary variable. The array is toast. So he suggests that you work with a copy, that you an do with as you like, and still keep the original. You can always "split" the data...
by dunbarx
Tue Feb 23, 2010 6:35 pm
Forum: Talking LiveCode
Topic: selection and drag
Replies: 31
Views: 16469

Re: selection and drag

I have run this back and forth on the mail list. The issue Tal raises is that when selecting an object by dragging a selection rectangle, as opposed to simply clicking on an object with the pointer, the handles linger after deselecting. The object really is deselected (the selectedObjects returns em...
by dunbarx
Mon Feb 22, 2010 4:48 pm
Forum: Talking LiveCode
Topic: selection and drag
Replies: 31
Views: 16469

Re: selection and drag

tal.

I have posted an inquiry to the mail list, It seems like a bug.

Craig Newman
by dunbarx
Mon Feb 22, 2010 3:34 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to drag and drop files from a text field
Replies: 3
Views: 3068

Re: How to drag and drop files from a text field

Not exactly sure what you need.

If I hilite some text in a normal (not a list) field, I can drag it to the desktop and it appears there as a clipping (Mac OS). Not sure if this is useful to you, but you need no code. If you have a list field, you cannot drag and drop at all (I think).
by dunbarx
Thu Feb 18, 2010 10:55 pm
Forum: Talking LiveCode
Topic: Validate a field content if it is a date
Replies: 21
Views: 14126

Re: Validate a field content if it is a date

That rev can resolve an integer into a date can be both useful and annoying, as you have seen.

You can always say:

if fld "txtdate" is a date and fld "txtDate" is not an integer then...

Craig Newman
by dunbarx
Mon Feb 01, 2010 9:21 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Items deselect themselves-is this a bug?
Replies: 2
Views: 2332

Re: Items deselect themselves-is this a bug?

My objects stay selected when I open the inspector.
by dunbarx
Fri Jan 22, 2010 4:02 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: number formatting
Replies: 5
Views: 4116

Re: number formatting

I have played with this,too. Setting the numberFormat pretty much locks in the way numbers are treated in Rev. So if you say: set numberformat to "#.00" put 1 into y add 0 to y answer y You get "1.00". This makes your field references wrong, since you wanted field "myField1" but Rev thought it was f...
by dunbarx
Tue Jan 19, 2010 11:58 pm
Forum: Talking LiveCode
Topic: Issue: formattedWidth of text in (a field & the target)
Replies: 6
Views: 4591

Re: Issue: formattedWidth of text in (a field & the target)

I tried this code and it seems to work:

Code: Select all

   put the formattedWidth of (item 1 of the target) into tTxtFWidth
Not sure why, the original looks good.
Do you have the lockText set to true or false?
by dunbarx
Fri Jan 08, 2010 8:46 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Array Question...
Replies: 5
Views: 4103

Re: Array Question...

Topcat, an array cannot be put into a field, or an answer dialog, or anything that displays it, until it has been converted back to a normal variable. Try it: make an array, and then put it into a field. You will see empty. Now combine the array using, say, a return. You will see the data. You can g...
by dunbarx
Thu Jan 07, 2010 11:16 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Moving Numbers..?
Replies: 8
Views: 4527

Re: Moving Numbers..?

bn's script looks like it should work fine. But since you only have four output fields, try putting this into the card script. On a new card, I made four fields, and a bunch of buttons that were named "B1", "B2", B3"... on mouseup if the target contains "button" then put fld 3 into fld 4 put fld 2 i...
by dunbarx
Thu Jan 07, 2010 9:03 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: calculate the points between two objects
Replies: 2
Views: 2719

Re: calculate the points between two objects

I made a gadget to answer another post recently. I am showing you this so you can play with it and hopefully get some ideas. On a new card, make a straight line graphic at an angle on the screen. This will be "grc 1". Make a button, and name it "test". Put this into its script: local x1,x2,y1,y2,xDf...
by dunbarx
Thu Jan 07, 2010 3:46 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Array Question...
Replies: 5
Views: 4103

Re: Array Question...

I don't think you can access the data in them directly, but you can always change them from an array variable into a normal one and then check to see if a string is present: put yourArray into temp combine temp using yourDelimiter [and yourOtherDelimiter] if yourString is in temp then put temp into ...

Go to advanced search