Search found 2072 matches

by [-hh]
Thu Aug 22, 2019 10:49 am
Forum: HTML5
Topic: DataGrid2 forms still slow … ?
Replies: 2
Views: 107

Re: DataGrid2 forms still slow … ?

... on all platforms including mobile, desktop and web. As always,"web" means HTML5 standalones on desktop, not HTML5 standalones on mobile. HTLM5 standalones were never made to run on mobile. The simplest one work on very modern mobile but most probably not such ones that use widgets. And HTML5 st...
by [-hh]
Wed Aug 21, 2019 12:28 am
Forum: LiveCode Builder
Topic: Altering "my background paint"
Replies: 5
Views: 189

Re: Altering "my background paint"

This is how I understand it: "my background paint" is read only. It is the "effective" result of your current paint settings (pattern or color) for the canvas. Similarly you can't set my bounds, my children, my disabled, my enabled, my font, my height, my name, my native layer, my pixel scale, my re...
by [-hh]
Mon Aug 19, 2019 9:35 pm
Forum: HTML5
Topic: Successful test
Replies: 58
Views: 29970

Re: Successful test

HTML5 Focus-Move-Resize v_100 The stack shows simple methods how to resize and move a HTML5 standalone in the browser and how to focus a field so that you can start typing at startup without first clicking in a field (focus doesn't work with Firefox which always sets the initial cursor at topleft o...
by [-hh]
Sun Aug 18, 2019 10:28 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Normalizing text
Replies: 6
Views: 245

Re: Normalizing text

Possibly not "simpler" but for long input strings and replacement mappings 20-30 times faster by using regular expressions (btn " ReplaceText "): on mouseUp put the millisecs into m1 lock screen; lock messages put fld "TextIn" into s put length(s) into n put fld "Mapping2" into m2 replace " to " wit...
by [-hh]
Sat Aug 17, 2019 6:24 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Normalizing text
Replies: 6
Views: 245

Re: Normalizing text

@Jean-Marc Two considerations. 1. One should possibly use the casesensitive. 2. Sometimes 'accented' chars are replaced by two chars, for example "Ä" with "Ae" or "ß" with "sz". Here is a mapping that I once used (=fld "Mapping" in the code below). Á to A Á to A Ä to Ae  to A À to A à to A Å to A Č...
by [-hh]
Sat Aug 17, 2019 5:06 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Age Monitoring
Replies: 14
Views: 621

Re: Age Monitoring

If I understand correctly what you want then you could check that with another field "gotCake" for that user: on mouseUp put ageAndDays(fld "birthdate") into x put item 1 of x into fld "Age" put item 2 of x into fld "Days" if item 2 of x is "Happy Birthday" then put true into fld "gotCake" else if i...
by [-hh]
Sat Aug 17, 2019 4:06 pm
Forum: HTML5
Topic: Successful test
Replies: 58
Views: 29970

Re: Successful test

TestReadFile (and TestWriteFile) v_100 As downloading the source of HTML5 standalones is currently defunct (you get a file in a binary encoding only), here a stack that shows how to load local files into your standalone. The file can have any data, we get also the file type when reading. If the fil...
by [-hh]
Fri Aug 16, 2019 8:10 pm
Forum: Bug Triage
Topic: HTML5: Modifier bug?
Replies: 0
Views: 147

HTML5: Modifier bug?

We cannot enter into HTML5 standalone fields backquote (`), tilde(~), singleQuote('), quote(") and circumflex(^). with an US-International PC-keyboard. Quotes work with a German keyboard. This is probably the basic HTML5 "modifier-bug". You could use (built with 9.0.0 this is the same in LC 9.5.0) h...
by [-hh]
Fri Aug 16, 2019 1:36 pm
Forum: Raspberry Pi
Topic: RaspberryPi Stacks
Replies: 118
Views: 72708

Re: RaspberryPi Stacks

Raspberry Pi stacks collection #110 = CountUpOrDown_v2b You set a target date by dateItems that is then converted to internet date. Then if the target date is in the future then the stack counts down to it from the current internet date, if the target date is in the past then the stack counts up fr...
by [-hh]
Fri Aug 16, 2019 12:18 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Age Monitoring
Replies: 14
Views: 621

Re: Age Monitoring

You could try the following. on mouseUp put ageAndDays(fld "birthdate") into x put item 1 of x into fld "Age" put item 2 of x into fld "Days" end mouseUp -- Returns the age in full years at the first second of the -- birthday and the number of days until the next birthday -- incl. the current day. -...
by [-hh]
Thu Aug 15, 2019 4:47 pm
Forum: HTML5
Topic: Successful test
Replies: 58
Views: 29970

Re: Successful test

QRcode Clock Just for fun: This is a clock that shows every full second the current internet date as QR code and is overlayed by an analogue clock (my "ClockAround widget", see http://forums.livecode.com/viewtopic.php?p=146898#p146898). Play with the standalone at (US) http://hh.on-rev.com/html5/QR...
by [-hh]
Tue Aug 13, 2019 5:28 pm
Forum: LiveCode Builder
Topic: Browser Widget usage examples
Replies: 44
Views: 16619

Re: Browser Widget usage examples

Widget usage example #26: QR-Reader_v101 Edit (Aug 14, 2019): Version 101 improved dragging and works with snapshots now also on linux. This is a QR code *reader* which reads from static images that may be slightly rotated and/or skewed and/or distorted. You can make it to a QR code *scanner* by pr...
by [-hh]
Sun Aug 11, 2019 2:40 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Age Monitoring
Replies: 14
Views: 621

Re: Age Monitoring

... Always trust him. ... to make a a little bit less errors than usual. Craig, you probably mean an approximation like using 365.25 days for a year. This is also (mostly) OK. But 31356000/24/60/60 = 362.917 days. So where's your typo? lemodizon, say the difference between the current year and the ...
by [-hh]
Sun Aug 11, 2019 12:49 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Age Monitoring
Replies: 14
Views: 621

Re: Age Monitoring

The following switches the age in full years exactly with the first second of the birthday (or may be of the day after in case of Febr 29). Respects daylight saving and UTC offset (via using the internet date). function age d put d into d1; put the internet date into d2 if d1 is a date then convert ...
by [-hh]
Sat Aug 10, 2019 10:50 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Number of chars
Replies: 5
Views: 249

Re: Number of chars

You could use stack "passwordRules" from "Sample Stacks" with the following settings (where fld "Xxtra" contains your allowed special chars).   sample.png Then you can check whether a given password fulfils your rule or you can generate a random password that fulfils your rules.   generated.png What...

Go to advanced search