JPNG

2017-08-10 Thread hh via use-livecode
JPNG (named using JPEG and PNG) is not an image format but a compression method. We use the file ending ".lcjpng" for that. It takes features from both JPEG (setting JPEGquality to compress the imageData and from the PNG compression the alphaData/transparency). It saves the alphaData, optionally

Re: math, bigly

2017-08-09 Thread hh via use-livecode
Is it a good idea to implement a bignum library in LC Builder? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: math, bigly

2017-08-09 Thread hh via use-livecode
> Mark wrote: > but I'm annoyed that the IDE doesn't give me an overflow warning if I try > to perform an operation on a number that's bigger than 0x. > Instead, it just happily trims it down to an unsigned integer and proceeds > to give me a wrong result. Hey Mark. Don't complain because

Re: Android Browser Widget JS problem

2017-08-09 Thread hh via use-livecode
Have you already seen the answer from here: https://stackoverflow.com/questions/9585487/cant-get-coordinates-of-touchevents-in-javascript-on-android-devices ?? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: Android Browser Widget JS problem

2017-08-08 Thread hh via use-livecode
Did you already read https://www.html5rocks.com/en/mobile/touch/ to that? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: how to get the value of a custom property if the name of the cProperty is in a variable?

2017-08-08 Thread hh via use-livecode
> Richard H. wrote: > I'm also bothered by *not* being able to use a text literal in quotes; > I'm generally vary careful about declared variables, etc. (I'd really > like an option to enforce case in variable names!) on mouseUp put "hello" into p1 put quote&"hello" into p2 set the p1 of me

Re: Leslie Nielsen

2017-08-08 Thread hh via use-livecode
> Tore wrote: > And change the script in the BASH button to something like this: > on mouseUp pAltKey > if pAltKey then > answer "Alt key was down" > else > answer "Alt key was up" > end if > end mouseUp Tore, we have to use a second param, e.g. on mouseUp pButton, pAltkey The

Re: how to get the value of a custom property if the name of the cProperty is in a variable?

2017-08-08 Thread hh via use-livecode
> JLG wrote: > In what circumstance would it be necessary to quote the property name? Use "&" in a key, for example the "G" of me > Mark wrote: > What doesn't work at the moment is if you have a var name which is > quoted: > > local catness > put "minimal" into catness > set the "catness" of

Re: how to get the value of a custom property if the name of the cProperty is in a variable?

2017-08-08 Thread hh via use-livecode
Two examples for testing ambiguity. [a] set "8.1" of me to "I dreamt to be quoted" set 8.1 of me to "I dreamt to be 8.2" put the customProperties of me into cp put cp["8.1"] &" : "& cp[8.1] &" : "& cp[8+1/10] Test and then interchange the first two lines and test again. [b] set "G" of

Re: SORT by length

2017-08-08 Thread hh via use-livecode
> Richmond wrote: > Sorry about the asterisks . . . > That is what happens when one copy-pastes directly from the LiveCode > scriptEditor into Thunderbird. Specify the default character encodings for sending and receiving messages Menu location: Thunderbird > Preferences > Display > Formatting -

Re: Recursive folder creation

2017-08-07 Thread hh via use-livecode
> Bob wrote: > Wha??? I didn't know this existed. I have a need for that too! I use > a repeat loop to do this. I suppose that is what this function does as well. Here is it, for a "direct" call, in case revSBLibrary is not available. It does the same as Tore's (and probably your) script but is

Re: Recursive folder creation

2017-08-07 Thread hh via use-livecode
> Brian wrote: > Check out _revSBEnsureFolder in revSBLibrary for example code that does this. Brian, WOW! This is great insight! on mouseUp put "/Users/admin/Documents/brian3/showed/us/the/trick/of/marcus/" into ff call "revSBEnsureFolder ff" of stack "revSBLibrary" launch document ff

Re: menuHistory & menuPick

2017-08-06 Thread hh via use-livecode
The following recipe is for use in LC 7/8/9. In LC 6 setting the label sets also the menuhistory. Delete your "set menuhistory line" and add the following to the script of your button 1: on mouseDown set the menuhistory of me to lineoffset(the label of me, me) end mouseDown > jbv wrote: > I

Re: MouseDown sent to button in group, but MouseUp sent to card

2017-08-03 Thread hh via use-livecode
> Monte wrote: > ... G drinking holiday ;-) Practising Geometry & Trigonometry and drinking?? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Android device speed

2017-08-03 Thread hh via use-livecode
> Jonathan wrote: > It sounds like I need to find a way to detect the processing speed > of the device. Did you alread try to use webgl? See the source of https://browserleaks.com/webgl ___ use-livecode mailing list use-livecode@lists.runrev.com

Re: Points of Graphic Oval

2017-08-02 Thread hh via use-livecode
I have already done what you describe in a HTML5 standalone for displaying progress along a Bezier curve, using LC Script only. http://hh.on-rev.com/html5/hhProgressHTML5_2-8.0.2X.html And it is done for all LC's SVG icons using the jquery-drawsvg plugin in a browser widget (incl. optional affine

Re: Points of Graphic Oval

2017-08-02 Thread hh via use-livecode
> Mark wrote: > So, at the level of the graphic object it is a true arc, at the level of > instructing > the graphics library it is a Bézier approximation but at the level of working > out what > pixels to render it is a polygon. Thanks for arriving from your previous post at this very clear

Re: Points of Graphic Oval

2017-08-02 Thread hh via use-livecode
Actually you don't see "sides" of a regular 360-gon because the engine uses "trunc()" differing from my "round()" used earlier in this thread. So the approximation using "round" may be better in case you are scaling such points lists. ___ use-livecode

Re: Points of Graphic Oval

2017-08-02 Thread hh via use-livecode
> BR wrote: >> HH wrote: >> A circle is, just like a Bezier curve, a mathematical model, for thinking, >> doing mathematics. Not realizable in our virtual world. >> What you can have and what you see are (more or less good) approximations >> to that mod

Re: Points of Graphic Oval

2017-08-02 Thread hh via use-livecode
The effective points of an oval (circle) are the 360 points of a regular polygon with 360 vertices (if it's closed). You could look at stack #2 of the Raspi-Collection, runs on Mac/Win/linux using LC 6/7/8/9: http://forums.livecode.com/viewtopic.php?p=98716#p98716 (in LC 8/9 add a semicolon after

Re: Release 8.1.6

2017-08-01 Thread hh via use-livecode
if there is no img "Nova.png" then create img "Nova.png" A file is created by LiveCode if not existing, but NOT an image, it has to be created by you. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe,

Re: Points of Graphic Oval

2017-07-31 Thread hh via use-livecode
> Mark wrote: >> How do you define "strict geometry"? > That would be my seventh-grade math teacher >> And what is an "infinite amount"? > For points in an oval, that would be Aleph-one, no? I see. When you selected to return 360 points for the effective points of an oval (what is, TMHO, a

Re: Points of Graphic Oval

2017-07-31 Thread hh via use-livecode
> Bob S. wrote: > By strict geometry, an infinite amount. Using Bezier, 4. :-) Just because I am curious which part of your statement is the joke: How do you define "strict geometry"? And what is an "infinite amount"? ___ use-livecode mailing list

Re: Points of Graphic Oval

2017-07-31 Thread hh via use-livecode
[Once again, without typos (although it works correctly with the typos)] The following runs in LC 6/7/8/9. ### yields points of an 'elliptical' n0-sided polygon, ### for a 'circular' shape set rx=ry. -- n0 is the number of vertices (= n0+1 points for a closed polygon) -- rx is the horizontal

Re: Points of Graphic Oval

2017-07-31 Thread hh via use-livecode
> BR wrote: > 1) draw graphic oval name: "moveClue1" > 2) create small image "word_1" > move image "word_1" to the points of grc "moveClue1" in 2 seconds > OK, so how can we generate the points of a perfect oval? > > Scott wrote: > > You can use the effectivePoints to get the points of any

Re: Matrix Multiplication bug and workaround

2017-07-30 Thread hh via use-livecode
Hi Al. Yes. I saw this mistake several times. The misleading thing is, TMHO, the name "transformation matrix" for [a,b,c,d,e,f] (because the listing is pairwise for columns, as you now describe, and not for rows). Let me explain that a bit simpler for readers who don't know or forgot

Re: Build a simple app on HTML5 [WAS: Re: Build a simple app on Android]

2017-07-30 Thread hh via use-livecode
> Alex wrote: > the "same domain" limitation makes it unfeasible for me to use it > for now. You can test it with a local web server. I use this always for testing in HTML5 (e.g. using python as described in the HTML5 deployment guide of the dictionary "Testing your HTML5 app ..."). So I hope

Re: Matrix Multiplication bug and workaround

2017-07-30 Thread hh via use-livecode
Al, your script is wrong. You are building the matrix in a wrong way. It is no bug! With your 'workaround' you point yourself to the lines where you did make the mistake. http://lists.runrev.com/pipermail/use-livecode/2017-July/240074.html ___

Re: Doing user testing in a risk free way (Re: gitter)

2017-07-30 Thread hh via use-livecode
> Monte wrote: > I’m not really sure that A/B tests of the IDE is something we should be > attempting to do at all as we don’t have the resources to do it with the > number of people required to get decent data. +42 ___ use-livecode mailing list

Re: Build a simple app on HTML5 [WAS: Re: Build a simple app on Android]

2017-07-30 Thread hh via use-livecode
> Alex wrote: > So I won't wait for my next question should that same simple > app work when built as an HTML5 standalone ? (9.0DP8 Indy, MacOS > 10.10.5, Chrome 59) (hint: right now, it doesn't - click on the > button, it highlights and then nothing else happens until we > get the "Page

Re: Matrix Multiplication bug and workaround

2017-07-30 Thread hh via use-livecode
Hi Al. This is not a bug, your script is wrong. If TM is a,b,c,d,e,f then you have to do put item 1 of pArgs into tMatrix[0,0] put item 2 of pArgs into tMatrix[1,0] put item 3 of pArgs into tMatrix[0,1] put item 4 of pArgs into tMatrix[1,1] this yields correct results. [In fact

Re: Wait, the problem, and why it is important to solve

2017-07-30 Thread hh via use-livecode
> Mark wrote: > I'm not sure relating this to RaspPi is useful. The reason is that if I > am wanting to move my Desktop app (Mac, Windows, Linux) app to HTML5 > then I'd want the performance in the browser to be within a reasonable > distance of that when on the Desktop... > ...The only way to

Re: CEF Browser - what is wrong with my script

2017-07-30 Thread hh via use-livecode
@Matthias "revbrowserOpenCEF" is deprecated since at least one year or so. Also note: revBrowserInstances() doesn't work after"revbrowserOpenCEF". Also note if you use revBrowserOpen: Then Mac is the only platform that supports HTML5/canvas2d. ___

Re: Wait, the problem, and why it is important to solve

2017-07-30 Thread hh via use-livecode
Wow. You say (using stars) it would make sense to implement wait in HTML5 for some features that do _not_ (yet) work in HTML5. Will be a great enhancement side-effect. I look forward to that. Peter-B already implemented wait in 2015, see bug #16076. This caused an _additional_ slow down by a

Re: Web vs Native (was Re: HTML5 limitations?)

2017-07-29 Thread hh via use-livecode
#wait I don't miss the "wait" handler in HTML5 and I wouldn't miss it in LC Script. I even don't know of any use case where "send in " (which works perfectly in HTML5) isn't superior to "wait". Especially when connected to move/animation. Also I don't miss "wait" in LC Builder. There OnTimer() is

Re: Web vs Native (was Re: HTML5 limitations?)

2017-07-28 Thread hh via use-livecode
> Mark wrote: > However, there is one VERY important point I do need to make. It is easy > to get hang up on saying 'oh the HTML5 engine doesn't do this, and oh it > doesn't do that' - and this might well be true. *However* the only important > metric in this regard is - does it allow a suitable

Re: template stacks

2017-07-28 Thread hh via use-livecode
Of course my "look-up" in the IDE: revIDENewMainstack max(,400),max(,400) is quick and dirty compared to the clever plugin-solution of Klaus: http://lists.runrev.com/pipermail/use-livecode/2017-July/239883.html Sorry Klaus. I overlooked your post. I really write too much and read too

Re: template stacks

2017-07-28 Thread hh via use-livecode
Forget to remark: revIDENewMainstack 40,30 = revIDENewMainstack 400,400 because revIDENewMainstack yourWidth,yourHeight sets new width to the maximum of yourWidth and 400 sets new height to the maximum of yourHeight and 400 ___ use-livecode

Re: template stacks

2017-07-28 Thread hh via use-livecode
> Richmond wrote: > From LiveCode 8.0 upwards when one wants a new stack one is given a > menu of choices for iPads, iPhones and so on. > Is there a way to edit that menu PERMANENTLY so one can accommodate > one's own sizes? Just type into the messageBox revIDENewMainstack , for example:

Re: HTML5: mixed signals

2017-07-28 Thread hh via use-livecode
*** The following is how I judge this, not based on any 'official document'. *** Depends a little bit upon what you are doing. The javascript part of the calling web page is always accessible, no matter the license. So, important parts that you have as javascript in the standalone's webpage are

Re: Web vs Native (was Re: HTML5 limitations?)

2017-07-26 Thread hh via use-livecode
> RG wrote: > - What are the use-cases where a native app is a better choice than a web app? > - What are the perceived benefits of web apps and native apps? > The first question is about actual capabilities, and the second is about the > psychological drivers of clients and customers, which may

Re: Web vs Native (was Re: HTML5 limitations?)

2017-07-26 Thread hh via use-livecode
> RG wrote: > My bigger question here is what needs to be delivered specifically > in a web browser window vs a native app, and why? This questions browsers ("the web") as platform in general. TMHO, you are too late with that question, by 25 years.

Re: Web vs Native (was Re: HTML5 limitations?)

2017-07-26 Thread hh via use-livecode
> Mike K. wrote: > My perception is that the web experience is very close to a desktop-native > experience, and the two are almost interchangable. Running an app in a > browser feels and works almost the same as a native one does. The HTML5 standalone builder has greatly improved within the last

Re: Web vs Native (was Re: HTML5 limitations?)

2017-07-26 Thread hh via use-livecode
> JLG wrote: > In my case, the app is courseware and students are complaining they want it > to work on their mobile devices. Some don't have laptops and don't want to > use the computer lab. The options are to create mobile apps or alternately > run it in the mobile browser. There is

Re: Restrict navigation in browser widget

2017-07-26 Thread hh via use-livecode
The following works here. on browserNavigateBegin pUrl put the URL of widget "browser" into uri put pURL & uri & (uri begins with "http://livecode.com;) end browserNavigateBegin Possibly your URL conflicts with the standards-compliant URL? > Tore N. wrote: > I am currently preparing the

Re: Apples Script Execution Error in Standalone

2017-07-26 Thread hh via use-livecode
AppleScript didn't change since v7. But networking did ... ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: HTML5 limitations?

2017-07-25 Thread hh via use-livecode
> Mark wieder wrote: > It's in process to becoming "beta" ... ... while "the mouse" still always reports "up". It's a miracle. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: HTML5 limitations?

2017-07-25 Thread hh via use-livecode
> JLG wrote: > I have a client that wants to move our project to HTML5. I have > some doubts about the capabilities, could someone tell me what is > currently possible and what is not? Wait until Mark Waddingham's talk about HTML5. Even he will probably not be able to answer the "what is

Re: HTML5 limitations?

2017-07-25 Thread hh via use-livecode
The HTML5 standalone builder is still "experimental". Has been "very experimental" until July 2017. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: How can I scrape text from a web page that is generated by javascript?

2017-07-24 Thread hh via use-livecode
> Roger E. wrote: > Is there a browser widget command that will do it? (Yet another option): YES. Set the URL of a browser widget to https://www.coinbase.com/charts and get (via a timer) the htmltext of the browser widget. This is the _generated_ source. You can now search and find the needed

Re: Setting image source of fld char to remote URL

2017-07-22 Thread hh via use-livecode
Of course you can get the display in a browser widget by setting the htmltext alone if you give the image source _directly_ (as part of the htmltext) as base64 encoded data. " [After LC-base64-encode replace linefeed with empty in the data.] ___

Re: Setting image source of fld char to remote URL

2017-07-22 Thread hh via use-livecode
Browser widget: Use a HTML-file and set the URL of the widget to that file. Setting the htmltext alone in order to get an image from a server usually doesn't work (what is the same with all browsers, this is not LC-special). If you wish to work with the image, you may have to respect the

Language of the internet: JavaScript

2017-07-21 Thread hh via use-livecode
Stanford University replaces Java with JavaScript as an introductory programming language https://www.neowin.net/news/stanford-university-dumps-java-as-an-introductory-programming-language ___ use-livecode mailing list use-livecode@lists.runrev.com

Re: Bug 20117: new rc2 sets a backdrop, and preferences for same

2017-07-19 Thread hh via use-livecode
The backdrop is a problem for the linux platform since I'm with LiveCode (4 years now). If you ever click on linux into the backdrop you are lost. That's why this was my first Raspi stack: a 'work-around' for that. (Raspi stacks collection #1) ___

Re: [ANN] Release 9.0.0 DP-8

2017-07-17 Thread hh via use-livecode
> Mark Waddingham wrote: > On 2017-07-17 11:05, panagiotis merakos via use-livecode wrote: > > @Hermann > > I am not sure if "{}" were left out on purpose or not, I'll ask Monte. > > However, if you want to add them, you have to: > > On Purpose. '{' is not a valid LCS bracket - so it shouldn't be

Re: intersect . . . invisible images

2017-07-17 Thread hh via use-livecode
> Richmond M. wrote: > That's because Richmond doesn't share your sense of humour, > and never really could understand North American jokes . . . As I read this thread (as a non-native speaker), none of the jokes was against you as person. And mine was based on a very old forum thread connected

Re: [ANN] Release 9.0.0 DP-8

2017-07-17 Thread hh via use-livecode
> Panos M. wrote: > Script Editor: Support for auto completion of square bracket `[`, > parenthesis `(` or double quote `"` is now added. After writing a long script I really like this feature and miss it already in LC 8.1.6. I wonder what's the reason to leave out braces "{}" (may be needed for

Re: intersect . . . invisible images

2017-07-17 Thread hh via use-livecode
> JLG wrote: > Has anyone noticed that since we hijacked this thread, Richmond has > disappeared? He has the lost sock, because men wearing kilts have three woollen socks. (Sorry, if you laugh now, one minute later, you are wrong. They simply have a spare sock with them, just like a good car

Re: Correct img format for browser widget.

2017-07-16 Thread hh via use-livecode
An option for James could be to put ONE html-file in the images folder with content: And then set any image of that images folder by changing the HTML by javascript: on mouseUp put "flower2.png" into nn -- give the name directly put line 42 of myImages into nn -- a list containing the

Re: Correct img format for browser widget.

2017-07-16 Thread hh via use-livecode
> Jonathan wrote: > Is this part of the same-source policy for web pages? The HTML file and the > image file > needing to be in the same folder? No. I wrote this only because the example used a relative path pointing to the same folder: > Example htmltext of the widget or text of the file

Re: Correct img format for browser widget.

2017-07-16 Thread hh via use-livecode
quot;i1" to 80; set the height of img "i1" to 60 4. set the imagesource of char 42 of fld 1 to "i1" > James H. wrote: > > hh wrote: > > ... Or in case you meant simple HTML load (not canvas2d): > > > > where src = "full http-path to image" (

Re: Correct img format for browser widget.

2017-07-15 Thread hh via use-livecode
... Or in case you meant simple HTML load (not canvas2d): where src = "full http-path to image" (local server is running) or src = "relative path to image" for example: src="http://localhost:/tests/images/myimage42.png; src="../images/myimage42.png" The relative path has to be relative to

Re: Correct img format for browser widget.

2017-07-15 Thread hh via use-livecode
You have to set it in the HTML, with HTML-syntax. LC Script may help with that by sending the imagedata to the HTML page. Examples how to do this can be found (look at handler "chooseScript" in the card's script and make the widget or revBrowser display visible) as follows. [a] using a browser

Re: [ANN] Release 8.1.6 RC-1

2017-07-12 Thread hh via use-livecode
> RG wrote: > I would caution against adding more stuff to the Prefs window, for > reasons too lengthy to indulge in here. The new stuff could replace "Compatibility" (and "Updates" could be replaced with one link to downloads.livecode.com). ___

Re: [ANN] Release 8.1.6 RC-1

2017-07-11 Thread hh via use-livecode
Very good: The idea and also all the refinement proposals. It would also be great if the prototypes were editable. Bad: Some of the prototypes use protected names like "filename" as parameters. So they don't compile ... ___ use-livecode mailing list

Re: No screenshot from LC video possible

2017-07-11 Thread hh via use-livecode
May be connected to fullscreen mode (=black) or windowed mode (=working). ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: I need a "slider" in a circle

2017-07-09 Thread hh via use-livecode
Just to 'complete' this thread. Detected today a good solution by Roger Guay from 2012, still up-to-date (this solution is in between a full gauge and a circular slider) http://livecodeshare.runrev.com/stack/645/RadialDialOmatic > Yet another solution: RotationControl. > > This is a control I

Re: Fat widgets

2017-07-08 Thread hh via use-livecode
Thank you very much for that. This solves the situation where the LC-8 version and the LC-9 version are the same (have the same lcb file). Thus you can only have widgets that use LCB-syntax/features that are present in both LC-8 and LC-9, especially no new/different LCB features from LC-9. >

Fat widgets

2017-07-08 Thread hh via use-livecode
This is the current situation: [*] A stack that contains a widget that is compiled with LC 8.1.5 can not be used with any other LC version than LC 8.1.5, [*] A stack that contains a widget that is compiled with LC 9.0.0 can not be used with any other LC version than LC 9.0.0 Mark Waddingham did

Re: Division by Zero Error

2017-07-08 Thread hh via use-livecode
-- d0 is what you judge as "is at about zero" for your input -- select it such in size, that you don't get an "overflow" or -- such that 1/d0 is your max ± vertical plot value (= clipping) function f3 x local d0=0.001 if abs(x-3) < d0 then return empty -- don't plot in case of an

Re: Problem showing card script in IDE in LC9.0.0(dp7)

2017-07-07 Thread hh via use-livecode
http://quality.livecode.com/show_bug.cgi?id=19887 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Google Static Maps Demo Available

2017-07-07 Thread hh via use-livecode
Hi William, this is a great demo, especially your (clever) library functions. It works all fine here and it is really the base one needs for getting everything else through the GMap APIs. Of course, every LC user from all over the world who is not used to work with numeric coords would be happy

Re: Feature Race: Pick Your Project

2017-07-06 Thread hh via use-livecode
185 backers. No comment. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode

Re: debugging a CEF browser instance

2017-07-06 Thread hh via use-livecode
Hi all, a few remarks, may be marginal. Some of the problems with the CEF browsers arise from the fact that the "same origin policy" changed. Some of the latest versions of the main browsers make the access easier. Also, when using webGL, this differs between browsers and the browser widget in

Re: Feature Race: Pick Your Project

2017-07-06 Thread hh via use-livecode
Reading the description once again, this should be titled: *** Faster Graphics in LiveCode (especially DataGrid 2) *** That is: Everybody who uses the Graphical user interface will profit if that work is done. Sadly: I don't think the goal will be reached in 10 hours from 51% to 100%. 117

Re: Feature Race: Pick Your Project

2017-07-05 Thread hh via use-livecode
> Kevin M. wrote: > I¹m not sure if its apathy or more likely just the holiday weekend ... > ... Android has been mostly delivered and the other platforms and stretch > goals are a small piece now. We really have finally cracked this project, > getting it into a build is the last step ... > ... If

Re: I need a "slider" in a circle

2017-07-05 Thread hh via use-livecode
Yet another solution: RotationControl. This is a control I recently made for use at LC Global in November: An "ovalslider"-group that is under the control of a behavior button. Attach the behavior to any LC-Object that has an angle property. Runs with LC 6/7/8/9 on Mac/Win/linux or with LC 6/7

Re: Advice on copying and pasting in mobile

2017-07-02 Thread hh via use-livecode
@Jonathan. Why dont't you simply use one single server-side HTML5 page to get reports and upload images? Has moreover the advantage that you can update the page (incl. the method and targets used therein) without having to update your apps. >From that reason I would even prefer it to

Re: Exporting coloured text to HTML and RTF from 8.1.4

2017-07-02 Thread hh via use-livecode
Did you already try ... url("binfile:" & it & ".rtf")? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Capturing screen into image

2017-07-01 Thread hh via use-livecode
@Terry. Because we make a snapshot this is independent of the browser's content. So at least for isolating the problem you will find below a variant that 'snapshots' directly to a file in your stack's folder. Then the file is opened with preview via applescript. Here I get exactly what I want.

Re: Google Static Maps Problem

2017-07-01 Thread hh via use-livecode
@Bill. No thank for that. I started to work with javascript in November 2016 when the HTML5 standalone builder introduced "do as javascript". It was now a good exercise because your javascript source is by an expert, written very clear and clean. Please show us your final product (doesn't matter

Re: Capturing screen into image

2017-07-01 Thread hh via use-livecode
This works here. on mouseUp local ii="myImage", bb="Browser" if there is no img ii then create img ii put globalLoc(the topLeft of widget bb) into TL put globalLoc(the botRight of widget bb) into BR export snapshot from rect (TL,BR) to img ii as PNG hide widget bb -- avoid artefacts

Re: Google Static Maps Problem

2017-06-30 Thread hh via use-livecode
Sorry all, I'm used to work in the forums where one can easily edit posts to remove errors and typos. So here another correction, a constant (pixelsPerLonRadian) was wrong in the first two versions above. My last version, hope it's all correct now: local MERCATOR_RANGE=256, pixelOrigin,

Re: Google Static Maps Problem

2017-06-30 Thread hh via use-livecode
William, sorry I made a mistake, you have to replace "log10" by "ln". Hermann = Here the full correct script: local MERCATOR_RANGE=256, pixelOrigin, pixelsPerLonDegree, pixelsPerLonRadian on mouseUp put (55.9537534, -3.1988236) into centerPoint -- LC Home put 10 into zom --

Re: Google Static Maps Problem

2017-06-30 Thread hh via use-livecode
This is the LC translation of the linked javascript from stackoverflow: (I checked and simplfied a little bit the math, the Mercator projection is OK, very clever there!): It works here, happy mapping: local MERCATOR_RANGE=256, pixelOrigin, pixelsPerLonDegree, pixelsPerLonRadian on mouseUp

Re: Is there Digital Clock Component out there?

2017-06-30 Thread hh via use-livecode
@ Ali. > Ali wrote: >> hh wrote: >> In Oct 2016 I made a digital widget clock, published in >> the forum > LC Builder > Community widgets: >> http://forums.livecode.com/viewtopic.php?p=146968#p146968 >> [And there: "Doesn't work in the HTML5 standalo

Re: Is there Digital Clock Component out there?

2017-06-30 Thread hh via use-livecode
In Oct 2016 I made a digital widget clock, published in the forum > LC Builder > Community widgets: http://forums.livecode.com/viewtopic.php?p=146968#p146968 Simply use the lcb file to recompile it with the LC version you wish to use. Currently the binary lce files from LC 8 are not usable in LC

Re: Google Static Maps Problem

2017-06-30 Thread hh via use-livecode
You may use the technique of a stack I made in April 2017 on base of a discussion started by you in the list: http://lists.runrev.com/pipermail/use-livecode/2017-April/236632.html I posted it just now here (Raspi stacks collection #100) http://forums.livecode.com/viewtopic.php?p=155414#p155414

Re: Is there Digital Clock Component out there?

2017-06-30 Thread hh via use-livecode
To have it in sync with the system clock: send "updateClock" to me in (1000 - the millisecs mod 1000) millisecs ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Re: Table Fields "and all"

2017-06-29 Thread hh via use-livecode
> RG wrote: > The human mind can generally hold between three and seven things in > conscious memory at any given time. How did you measure that? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe,

Re: Table Fields "and all"

2017-06-29 Thread hh via use-livecode
Hi all, closely connected to that, not this much advanced as Bernd's jewel modTableField, another 'jewel'-stack by Scott: http://forums.livecode.com/viewtopic.php?p=129767=fbca74cc652e7760ce1f837e482dc57a#p129767 H. ___ use-livecode mailing list

Re: How to get the number of lines of a fld referenced by long ID in a variable.

2017-06-29 Thread hh via use-livecode
> BR wrote: > but to be able to address the properties of the object referred > to by a variable containing the long ID of an object/ > How do we do that? I think the "rule" is [assume objID is the long id of an object] get|set of objID --- works for *properties* of the object the number of

Re: Table Fields "and all"

2017-06-29 Thread hh via use-livecode
> Richmond wrote: > I want to put "cheese" into the third column across of the third line > down of my Table Field "TF" You could try: set the itemdelimiter to tab put "cheese" into item 3 of line 3 of fld "TF" ___ use-livecode mailing list

Re: How to get the number of lines of a fld referenced by long ID in a variable.

2017-06-29 Thread hh via use-livecode
> BR wrote: > but to be able to address the properties of the object referred to by a > variable containing the long ID of an object/ > How do we do that? put the long id of fld 1 into fID put the short name of fID into sID put the number of lines of fld sID

Re: Speed comparison with imageData 1920x1080

2017-06-28 Thread hh via use-livecode
The canvas2d dataURL-methods (and LC's base64-methods) are so far optimized that it is even slower if one directly sends and receives arrays, I tried it. There could be more gain (what would give a speed-up-factor of up to 500) by using webGL, but this has issues with some 'black-listed' graphic

Speed comparison with imageData 1920x1080

2017-06-28 Thread hh via use-livecode
Here is a stack that compares simple grayLevel- and invert-filter for an image of size 1920x1080, needs LC 8 or 9. It shows the power of this "external" we have via LC Builder/the browser widget. go stack url ("http://hh.on-rev.com/xstacks/speedComparison.livecode;) or download the file

Re: How do we access the clipboard on mobile devices?

2017-06-27 Thread hh via use-livecode
> What is "js-package"? If the "js" isn't JavaScript, what is it? I used "package" in the sense of npm. Most packages are modules https://docs.npmjs.com/how-npm-works/packages And yes, js is short for javascript, the usual file ending. Using the browser widget enables HTML5 as a superset of

Re: How do we access the clipboard on mobile devices?

2017-06-27 Thread hh via use-livecode
> Richard G. wrote: > ... beyond the performance gains by moving "low level binary data > processing" to javaScript (would be nice if someone has time to > post some apples-to-apples comparisons) ... "Low level binary data processing" means for me for example to invert the color data of an image

Re: How do we access the clipboard on mobile devices?

2017-06-27 Thread hh via use-livecode
LC is a perfect tool, for me also plays the role of a GUI when seeking for speed. Javascript/HTML5 does a lot of low level binary data processing up to 100 times faster than LC Script (and no js-package needed for that). To use javascript/HTML5 is not "bypassing" the LC language" but *extending*

Re: Set the imagesource of a character to a built in graphic

2017-06-26 Thread hh via use-livecode
Bob S. wrote: "if the hidden of line tStartLine to tEndLine of me is then set the hidden of line tStartLine to tEndLine of me to " Yes, but depends on the scenario: Sometimes I find it more safe to walk through the range (for j=tStartLine to tEndLine) and check the hidden of each

<    2   3   4   5   6   7   8   9   10   11   >