Search found 6028 matches

by dunbarx
Fri Jul 19, 2019 9:11 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Array add column with 'days until due'
Replies: 5
Views: 152

Re: Array add column with 'days until due'

What Richard said.. Arrays, that is, LiveCode array variables, have vast power and speed. But they operate a bit "invisibly", in that it is not easy to track their changes and progress. Whereas a well-ordered structure of columns and rows, just as in a spreadsheet, can be managed and viewed realTime...
by dunbarx
Fri Jul 19, 2019 5:19 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Array add column with 'days until due'
Replies: 5
Views: 152

Re: Array add column with 'days until due'

Hi. You want to use the "convert" command with the "dateItems" keyword. Read about these in the dictionary. Your "event date", I assume is of the same format as, say, the football date? If so, (pseudo) on mouseUp put "2019-10-16" into tEventDate put "2019-10-19" into tFootballDate replace "-" with "...
by dunbarx
Mon Jul 15, 2019 10:52 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: buffering browser widget
Replies: 7
Views: 426

Re: buffering browser widget

Hi. Hermann's idea is made more palatable when you put each "card's" worth of controls in a group, and simply hide and show groups. This could be indistinguishable from navigating to actual other cards. You might set custom properties to distinguish one group from another, so that you can reuse code...
by dunbarx
Mon Jul 15, 2019 7:17 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: buffering browser widget
Replies: 7
Views: 426

Re: buffering browser widget

What bogs said. This has been true since 1987 HC. Back in the day, since there is not a function "theNumberOfLocks", we used to: repeat until the lockScreen is "false" unlock screen end repeat This way you did not have to count locks, which might occur in various places including called handlers and...
by dunbarx
Sat Jul 13, 2019 1:58 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: resizing images with CTR
Replies: 12
Views: 737

Re: resizing images with CTR

Confirmed as Klaus said, though I am also on a Mac.

Craig
by dunbarx
Fri Jul 12, 2019 11:14 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Toasted on a grid iron
Replies: 3
Views: 225

Re: Toasted on a grid iron

Richmond.

Go get 'em.

It is not a law, but at least here crosswords are always so constructed. That is not to say that intentional oddities do not exist.

For your purposes, it is not pertinent.

Craig
by dunbarx
Fri Jul 12, 2019 9:01 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Toasted on a grid iron
Replies: 3
Views: 225

Re: Toasted on a grid iron

Richmond.

I agree, LC eats this for lunch.

But for dinner, you need to make the finished product symmetrical about the diagonals, or you do not get a crossword blank slate.

Craig
by dunbarx
Fri Jul 12, 2019 7:38 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Scrolling around
Replies: 13
Views: 423

Re: Scrolling around

Jacque nailed it. The "formattedHeight" is just the ticket, since it is a property of images, and the limitation of lines is then moot.

I did just a couple of tests; graphics and scrollbars do not have that property. But groups do.

Craig
by dunbarx
Fri Jul 12, 2019 5:35 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Scrolling around
Replies: 13
Views: 423

Re: Scrolling around

I only mention this because I cannot remember if there is a property that indicates the number of vertical "pixels" of the contents of a field. In other words, one solution to Richmond's post is: on mouseUp set the scroll of me to ((the clickV - the top of me) / the height of me) * (the number of li...
by dunbarx
Fri Jul 12, 2019 5:15 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Scrolling around
Replies: 13
Views: 423

Re: Scrolling around

Richard is spot on with that tweak. I am spot off in two ways. 1- There is no "bot" abbreviation for "bottom". That is what made Richmond doubt my "numbers". 2- I should have thought more about the signs. on mouseUp answer (the clickV - the top of me) / the height of me end mouseUp Well, the bridge ...
by dunbarx
Thu Jul 11, 2019 9:04 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Scrolling around
Replies: 13
Views: 423

Re: Scrolling around

...although I feel there is something a bit wrong with your numbers.
All my quick and dirty ditty did was find the vertical percentage of the mouseClick in the vertical height of the control. That value has to be scaled to make the scroll of the control react properly.

Craig
by dunbarx
Thu Jul 11, 2019 1:56 pm
Forum: Feature Requests
Topic: Date and Time in RFC 3339 format
Replies: 10
Views: 530

Re: Date and Time in RFC 3339 format

Without even understanding the format of this date, surely a handler that dissects each component, using our favorite property, the itemDelimiter, can be easily written and stored as a library function.
Craig
by dunbarx
Thu Jul 11, 2019 1:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Scrolling around
Replies: 13
Views: 423

Re: Scrolling around

Richmond. Try this experiment. Make a scrolling field with lots of lines in it, many more than can be displayed, so the scrollbar does a lot of work. Lock the field, and place this in its script; on mouseUp answer (the top of me - the mouseV) / (the bot of me - the top of me) end mouseUp Click anywh...
by dunbarx
Wed Jul 10, 2019 1:59 pm
Forum: Off-Topic
Topic: About Web access
Replies: 1
Views: 116

Re: About Web access

Hi.

I am not the one to answer this, but I recommend you repost to the "Beginners" or "Talking LiveCode" pane.

Craig
by dunbarx
Mon Jul 01, 2019 12:28 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Drag & Drop issues
Replies: 8
Views: 458

Re: Drag & Drop issues

Richard.

What is the usual way to touch a control and have it track ones finger motion?

Craig

Go to advanced search