Re: Forum: Waves of Russian Nonsense

2017-08-15 Thread hh via use-livecode
>> Mark wrote: >> This is getting annoying. > Klaus wrote: > I just deleted 71 slavic spam postings from the forum manually again, > now THAT is getting annoying! +71 for you. Thanks for that. But better stop manual deletion now. As long as you do that probably nothing will improve/change. It

Re: lockscreen?

2017-08-15 Thread hh via use-livecode
> Richmond wrote: > If I lock the screen (so these automations don't show up) will that > speed things up? lock screen; lock messages ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and

Re: JPNG

2017-08-11 Thread hh via use-livecode
@Mark *** Thanks for your expertise. I couldn't do that this perfectly. *** One of the reasons for posting this JPNG stack is to show the power of LC: The essential code of compressing PNG -> JPNG and decompresing PNG -> JPNG is both less than 10 *essential* lines of code, using comfortable LC

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: 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: 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
> 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: 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
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: [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: 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: 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: 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: 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: 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: [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: [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: 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: 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: 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: 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" (

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: 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

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: 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: 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: 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: 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: 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: 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
> 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
> 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: 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: 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: 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: 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: 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
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: 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: 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: 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: 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-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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: answer file under OSX El Capitan no longer has titlebar

2017-04-24 Thread hh via use-livecode
It's the answer file only, not the ask file: The following workaround is from a bug report, I can't remember the number and who found it (not me, at any rate). put "I m the missing prompt" into pp answer file pp with myPath titled pp ___

Re: Getting a Google MAP

2017-04-28 Thread hh via use-livecode
Have you already seen this nifty utility? http://staticmapmaker.com/google/ === I use the following for getting the geo-location. on mouseUp put url ("https://maps.googleapis.com/maps/api/geocode/; & \ "json?address=25a+Thistle+Street+SW,+Edinburgh,+UK") into rslt replace quote with

Re: Getting a Google MAP

2017-04-28 Thread hh via use-livecode
Not to forget related to (static) maps, especially as you can have them from there also as SVG or 'true' PDF (not embedded PNG only): https://www.openstreetmap.org For exporting as HTML link or as an "image" (JPG, PNG, SVG, PDF) see https://wiki.openstreetmap.org/wiki/Export In short: Don't use

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
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: 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
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: 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: 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: 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: 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: 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: 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-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
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: 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: 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
> 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: 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: 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: 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: 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: 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: 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: 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

textbanner widget

2017-08-18 Thread hh via use-livecode
Some of you may find this new widget useful. A textbanner widget that displays a text string, an "one-liner", as running text right to left (optionally left to right) or static. Has many documented options to set (font, size, colors, speed, ...). Ready to use via the extension manager in LC

Re: lock screen gotcha revisited

2017-08-22 Thread hh via use-livecode
@Mark. Say I have 24 copies of the LC clock widget in order to display different time zones. How can I have them in "seconds-sync"? In LC Script, with LCS-clocks I would do a screenLock, update the clocks and then unlock. In LC Builder I even tried to make a composed widget, without

Re: lock screen gotcha revisited

2017-08-22 Thread hh via use-livecode
Thanks for your fine explanation. And the future handlers sound very promising, both OnUpdate() and OnMarksPonder(). Graphics are meanwhile pretty fast in LCB. I timed such clock updates (in LCB): The OnPaint of a clock needs, also with a heavy loaded CPU, less than 4 millisecs. Even checking

Re: Documentation on Accelerated Rendering

2017-05-03 Thread hh via use-livecode
Thanks for that, this was very enlightening (should be, once again, attached to the Dictionary). If I understand correctly, it explains why testing for speed has reliable results only on _physical_ mobile devices. And, while in physical desktop environments a stack/ an app may run correctly,

Re: SVG powered images

2017-05-11 Thread hh via use-livecode
You could try to leave out the "liveCode.JStoLC" from the html. Instead send the conversion 'delayed", 1 tick should be enough: local svgb="SVGBrowser1" send "processSVG tID" to widget svgb put "var dd=document.getElementById('canvas1');" & \ "liveCode.JStoLC(dd.toDataURL(),tID)") into js

Re: SVG powered images

2017-05-12 Thread hh via use-livecode
> Jonathan L. wrote: > However, delaying the command to send for the image does not work > for the first resizing of the image in this scenario. It works. I have it running here with the browser widget. I finally got it using an "onload" for the image and for the window. ... image1.onload =

Re: Using a hidden browser widget to create a perfectly scalable LC control

2017-05-10 Thread hh via use-livecode
Hi Jonathan, if you do it anyway, then you could also add SVG-Filter. Not too much work, they can easily be chained and work fine in the browser widget (where the browser widget works ...). I have it working but have no time for the demostack. Hermann

Re: Using a hidden browser widget to create a perfectly scalable LC control

2017-05-10 Thread hh via use-livecode
This is essentially already done by Alejandro with SVGtoPNG, see the Forum/RichMedia. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: [ANN] This Week in LiveCode 82

2017-05-15 Thread hh via use-livecode
> Mark W. wrote: > > and most of these legacy Blend Modes: > > clear, noop, notSrcAnd, notSrcAndReverse, > > notSrcCopy, notSrcOr, notSrcOrReverse, > > notSrcXor, reverse, set, srcAnd, > > srcAndReverse, srcCopy, srcOr, > > srcOrReverse, srcXor, blend, addPin > > addOver, subPin, transparent > >

Re: Writing Extensions

2017-05-18 Thread hh via use-livecode
> hh wrote: >> But I wait for my next examples until there is a stable >> widget format (we have meanwhile three formats that work on >> some LC versions only, not on the others). > Mark Waddingham wrote: > Unfortunately we aren't going to be guaranteeing binary-level

LC core team

2017-05-18 Thread hh via use-livecode
There is rumour about personal changes in the LC core-team. Could we please get some reliable info about that? What are the consequences of that change for the HTML5 deployment? There was no progress with that for half a year. Is it now 'stopped'? ___

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