Search found 245 matches

by RossG
Fri Jun 19, 2020 3:58 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Left Mouse Button not being Detected
Replies: 5
Views: 462

Re: Left Mouse Button not being Detected

Richmond

Pleased to see that I'm not the only one who
forgot the easy way to show/hide an object
with --- "show graphic g1..." and "hide" ditto.

That aside your nice little stack answered my
next question so thanks for that.
by RossG
Thu May 28, 2020 8:27 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Hidden Objects
Replies: 8
Views: 722

Hidden Objects

Is there a way/add-on that can show a list
of the hidden objects?

When there are a lot of them using the show
function isn't much help.
by RossG
Mon Aug 27, 2018 1:17 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sort List Fields
Replies: 11
Views: 2141

Re: Sort List Fields

Field 2 shows the stdDev and avgDev of the
sets of numbers in field 1 so when the deviations
are sorted I want the number sets to be in the
same order.
by RossG
Mon Aug 27, 2018 12:12 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sort List Fields
Replies: 11
Views: 2141

Sort List Fields

I have two list fields.
When I sort field f2 I want field f1 to be
sorted in the same order.

Stack attached.
by RossG
Sat Jun 16, 2018 3:36 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Text Entry field Cursor
Replies: 14
Views: 2925

Text Entry field Cursor

I have a text entry field for the user to add/modify data.
It works but is inconvenient as the cursor can't be
positioned with the mouse. Tried "set cursor to arrow"
without success.

London to a brick there's an solution and someone
here knows what it is. (LC 7.1.2, Win XP)
by RossG
Sat Jun 09, 2018 10:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: MouseUp or MouseDown?
Replies: 14
Views: 3078

Re: MouseUp or MouseDown?

Regarding "on mouseUp" allowing the user to
change his/her mind before releasing the
button isn't it normal for a programme to
allow the user to "undo" a wrong click?

So I find the argument for "on mouseUp" is
pretty feeble.
by RossG
Fri Jun 08, 2018 9:38 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: MouseUp or MouseDown?
Replies: 14
Views: 3078

Re: MouseUp or MouseDown?

I can't recall ever changing my mind mid-click
but perhaps one day...

Don't see anything in the Dictionary about
using left or right (or middle) mouse button.
Have I missed something?
by RossG
Thu Jun 07, 2018 10:33 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: MouseUp or MouseDown?
Replies: 14
Views: 3078

MouseUp or MouseDown?

I've long been intrigued by the default
"on mouseUp" since "on mouseDown" seems
more intuitive and I've recently found that
in some cases "mouseDown" works better.

Is there some history in the use of "mouseUp"?
by RossG
Thu May 24, 2018 6:14 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Putting some life into an empty field
Replies: 2
Views: 1060

Putting some life into an empty field

I have three fields which I've set up to
react to a mouseUp but I find that if
a field is empty it "plays dead" even
though I've added code to get a function
if "me is empty" but still no reaction.

Is there an answer?
by RossG
Sun May 20, 2018 2:56 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: What line is it?
Replies: 5
Views: 1680

Re: What line is it?

Thanks for your help ClipArtGuy.

I must remember to use the field and
not the array which populates it (and
is superfluous anyway).
by RossG
Sun May 20, 2018 12:35 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: What line is it?
Replies: 5
Views: 1680

What line is it?

I have a list field with two items per line..

17 18
22 19
13 21
27 26

I can find the line which item 2 matches
e.g 21 but I then need the line number so that I
can extract item 1 for that line and 3 or 4
lines before and after.
by RossG
Thu Apr 12, 2018 3:23 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Mod Question
Replies: 6
Views: 1503

Re: Mod Question

Thanks guys for your help.

I ended up with what I think is a nifty bit of code...

Code: Select all

 repeat with x = 8 to min(36,(field SCount div 4 * 4)) step 4
This was to avoid a "divide by zero" error.
by RossG
Wed Apr 11, 2018 1:07 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Mod Question
Replies: 6
Views: 1503

Re: Mod Question

Well, if I put 22 mod 5 the answer is 2 - the remainder.
whereas 22/5 is 4.4. The answer I want is 4 not 2.
Just coded it to delete char "." and following numbers.

While on the subject I wonder has anyone found a use
for "mod" and if so what was it.
by RossG
Wed Apr 11, 2018 7:12 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sockets...
Replies: 1
Views: 638

Sockets...

Been thinking about using a socket but on
investigation I found that it seems my idea
of what a socket can do was a bit off.

I thought I would be able to send a command
(send mouseUp to button k7) from one stack
to another.

Is it possible? Has anyone done it?
by RossG
Wed Apr 11, 2018 7:07 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Mod Question
Replies: 6
Views: 1503

Mod Question

Is there a function to give the whole
part of the number?

I've done it with a bit of code but just
feel that it's in.

Go to advanced search