Re: Setting hidden of lines very slow

2018-12-01 Thread hh via use-livecode
> Kaveh wrote: > I can confirm that the htmltext method works beautifully and blindingly fast. So we have here two methods: The htmlText-method and the styledText-method. There is an interesting result in the speed comparison of the two methods. Here the htmlText-method is significantly faster w

Magic "Integer" Circles

2018-12-01 Thread hh via use-livecode
Some of you may be interested in the following "mathy beauty". Under all circles with integer radius 0 < r <= 1 there are four "magic" ones with radius 5, 25, 65 and 325. These four have relatively many points of *integers* (x,y) such that x^2 + y^2 = r^2. (These points are NOT rounded values

Re: LC-apps for HC

2018-12-01 Thread hh via use-livecode
> Richard G. wrote: > ... Is there anything in MacPaint that can't be done with LC's bitmap objects? "That can't be done" wins always, because the only limit for LC is the sky (more exactly, sadly, the sky below the 65535-limit for all coordinates). But there's a lot of features that are not done

Re: Setting hidden of lines very slow

2018-12-03 Thread hh via use-livecode
> Hakan wrote: > The code will not work if you have htmltext containing the text "color=" like: > To set the color you can use color="#fa3b42" Oh yes, was rather silly of me not to keep this in mind. There is a simple remedy: put ("color=" is in fld 1) into isInField if isInField then replace "c

Re: Setting hidden of lines very slow

2018-12-03 Thread hh via use-livecode
Sorry, the styledText method of my last post had a logic fault (style-runs without textcolor are ignored). The following works now for me. -- styledText method on mouseUp put the millisecs into m1 lock screen; lock messages put the styledText of field "text" into tTextA repeat for each ke

Re: hhPDFViewer v0.8.0

2018-12-03 Thread hh via use-livecode
> Kaveh wrote: > Any way of selecting or copying text from the PDF file? > Any way of finding a particular text in the PDF? The problem is: The viewer template of pdfJS cannot be used if one would like to load PDFs from anywhere, not only from a server where the script resides. So I had to use the

Re: Safari vs Browser Widget

2018-12-05 Thread hh via use-livecode
>> Dan F. wrote: >> I am working on a HTML5 web page that accesses the device's camera. >> When I open the url in Safari (on my Mac or iOS device), I am asked >> if it's ok to use the camera and everything works perfectly! >> However, if I load this same url in the Browser Widget (or a plain >> nat

Re: Safari vs Browser Widget

2018-12-05 Thread hh via use-livecode
Some of the newer browser versions need a https connection. So if http://hyperhh.de/TEST/GUM/GUMX.html doesn't work, then please try https://hyperhh.de/TEST/GUM/GUMX.html > >> Dan F. wrote: > >> I am working on a HTML5 web page that accesses the device's camera. > >> When I open the url in Safari

Re: Map url in Browser Widget

2018-12-07 Thread hh via use-livecode
> Mike wrote: > ... does anyone know what needs to be added to the code in order to place a > "marker" into the map location? ... > This is what I generate now: > https://www.google.com/maps/@45.829321,-109.904418,10z http://maps.google.com/maps?q=45.829321,-109.904418&z=10&t=h The t=h is for a h

Re: Show invisible characters (tab, space, return) in field

2018-12-08 Thread hh via use-livecode
> Kaveh wrote: > What I am looking for is a native replacement of a return, say, > with a visible characters wherever it appears. You have to replace return with &return if you wish to preserve the line breaks. Similarly • have you to replace space with &space if you wish to preserve the word br

Re: Show invisible characters (tab, space, return) in field

2018-12-08 Thread hh via use-livecode
> Kaveh wrote: > I need the user to edit as normal and with normal functionality but see the > normally > invisible characters. So seems I would need a native solution. :-( This works for me (TMHO, this demonstrates the beauty of LC). Script your field with the following. on rawkeyDown k switc

Re: Show invisible characters (tab, space, return) in field

2018-12-08 Thread hh via use-livecode
You could moreover add the following to the field's script. on rawkeyup k switch k case 65288 -- backspace put word 4 of the selectedChunk into cx if char cx of me is among the items of \ (numToCodePoint(0x23CE),numToCodePoint(0x21E5),numToCodePoint(0x00B7)) th

Re: Show invisible characters (tab, space, return) in field

2018-12-08 Thread hh via use-livecode
> Kaveh wrote: > On the live conversion, you are adding a unicode character before > a space, say. That means two characters and therefore two character > widths. Is there a way of making spaces zero width, or the new characters > overlapping the space etc? Ideally I want the text widths of lines t

Re: Map url in Browser Widget

2018-12-08 Thread hh via use-livecode
The examples of my last post show a marker but ignore the initial zoom. The following shows the marker and also respects the zoom (1-19). (Tested on desktop only). on mouseUp put 8 into z put 45.829321 into la put -109.904418 into lo set url of widget "browser" to \ merge("https://www

Re: Show invisible characters (tab, space, return) in field

2018-12-08 Thread hh via use-livecode
> Kaveh wrote: > There is a also a zero width character. :-) that is 200B. > So using a monospace font all chars line up. This works if and only if your field has dontWrap true, else your line will not (soft-)break at the new "spaces" between the words. But then (if dontWrap is true) you don't ne

Re: Show invisible characters (tab, space, return) in field

2018-12-09 Thread hh via use-livecode
> Kaveh wrote: > You are right. It's getting complicated :-) So why does 200A allow > wrapping and 200B does not? Perhaps a team member can come in? And corrects this/explains this better: 0x200B is probably not in LC's word-break table (for word wrapping) because it is usually used to indicate

HTMLtoIMAGE_v100

2018-12-17 Thread hh via use-livecode
HTMLtoIMAGE makes an image of the *whole* HTML content of a browser widget (while waiting for printToPdf from the browser widget in 9.x). The image may have a height of several thousands pixels. Download from "Sample Stacks" or http://livecodeshare.runrev.com/stack/919/ The stack is based on the

Re: HTMLtoIMAGE_v100

2018-12-17 Thread hh via use-livecode
> Bob S. wrote: > I tried this on a copier web portal. It produced a 0 kbyte file with no > image. So the imagedata of the canvas was empty. Thus a pdf created from the DOM will also not work with such pages. It will have to rely on the print-layout of the portal: Can you print it correctly from

BrowserSnapshot_v001

2018-12-17 Thread hh via use-livecode
BrowserSnapshot makes an image of the *whole* HTML content of a browser widget (while waiting for printToPdf from the browser widget in 9.x). The image may get a height of several thousands pixels. ** It works currently only for (horizontally) responsive HTML pages, that is if the widget doesn't n

BrowserSnapshot_v015

2018-12-18 Thread hh via use-livecode
BrowserSnapshot updated to v015: • Removed a bug. • Added also scrolling snapshots when the viewport is horizontally clipping. • There is also an example for how to hide overlays (menu, chat, campaign) in pages like livecode.com (test livecode.com after the page is fully loaded). **This is now wit

Re: Map Widget with Custom Marker

2018-12-18 Thread hh via use-livecode
> Brian M. wrote: > Try this one (similar concept) > http://forums.livecode.com/viewtopic.php?p=173867#p173867 This will not work. I just tried: The map widget updates in short intervals like a movie. Even a native button disappears. So the overlaying native object should also use a fast update li

Re: Understanding Image Sizes, Before And Display

2018-12-22 Thread hh via use-livecode
> BR wrote: > Well after all these years, I want to know the original width > and height of reference image ... You could use the formattedWidth and the formattedHeight. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url

Re: Anyone using the HTML 5 LiveCode tool?

2018-12-22 Thread hh via use-livecode
> Kee N. wrote: > Was thinking of trying it out but the details indicate that > it is not yet ready for production. HTML5 standalones are not made for mobile. As Matthias said, for desktop you will always miss important features. But there is one very important feature you can use: the HTML5/javas

FrameTalkHTML5_v100

2018-12-26 Thread hh via use-livecode
FrameTalkHTML5 is my end-of-year gift 2018 to the community. It is a HTML5 standalone that can talk (send/ receive messages) to other instances of itself in frames of the same browser window. The instances of the standalone can come from different (local or remote) servers. The "installation" use

Re: Image Remove Perimeter White Space

2018-12-26 Thread hh via use-livecode
> Ralph D.wrote > I am downloading various images from a customer with > varying unpredictable amount of white space around the > image. I want to make the visible center portion images > the same size. Assuming the white space around is symmetric, at least proportional to width and height, you co

Re: Image Remove Perimeter White Space

2018-12-26 Thread hh via use-livecode
> Ralph wrote: > I will just have to go pixel by pixel and check > left, top, right and bottom sides for any non-zero > RGB and delete rows/columns until one of the sides > has an RGB that is not zero. Here is a comparison value for that. Using javascript from a hidden browser widget autocropping

Re: Image Remove Perimeter White Space

2018-12-26 Thread hh via use-livecode
Here is a pure LC Script handler from one of my "early" images stacks. For large images this may become pretty slow... ## CROP image to opaque pixels on cropIt ft put the width of img ft into w; put the height of img ft into h put the maskdata of img ft into mData put numToByte(0) into c0

Re: Websockets Problem on LiveCode

2018-12-27 Thread hh via use-livecode
> Todd wrote: > I assume that it is a memory leaking error. Has anyone had this problem of > calling LiveCode function from a JavaScript function in the browser?? This > is a HUGE problem for us as the app cannot be shipped. Libbrowser eats on desktop up to 5 MByte of memory per second. Bug #20012

Re: Probably a No-Brainer

2018-12-27 Thread hh via use-livecode
> Roger wrote: > I want to replace the contents of a field that contains x^n > with x^1 or x^2 or x^3 as n= 1 or 2 or 3 etc. You could try to write in the file "x^[[n]] + x^[[n+1]]" and then script put 2 into n put merge(fld 1) into fld 1 --> yields "x^2 + x^3" ___

Re: Probably a No-Brainer

2018-12-27 Thread hh via use-livecode
You don't want to compute it but want to write it out into a field? on mouseUp put taylorsum(4,"x") into fld "OUT" end mouseUp function taylorsum n,x -- n is the degree, x the function argument put "1" into s -- or: put x &"^0/0!" into s repeat with i=1 to n put " + " & x &"^"& i &"/"&

JIGSAW PUZZLE 2d-video v_100

2018-12-27 Thread hh via use-livecode
JigsawPuzzle2d-video is a HTML5 standalone that demoes what LC is able to do. I have seen such "live" computed puzzle pieces until now only in specialized native apps. Images. You can choose a built-in image or import a local one into the standalone. Moreover choose the base width for the pieces a

Re: JIGSAW PUZZLE 2d-video v_100

2018-12-28 Thread hh via use-livecode
JIGSAW PUZZLE 2d-video is now updated to v_105 • Improved speed with videos a little bit. • The width-menu computes now all sizes from 20 up to 144 that leave either width or height (or both) of the image/video unchanged (no cropping). • A video can now be paused. Then it can be continued (when

Re: JIGSAW PUZZLE 2d-video v_100

2018-12-29 Thread hh via use-livecode
> Colin wrote: > Frame rate is still a bit slow. I left the whole "pieces part" (set backpattern of the pieces) in the LiveCode/Emscripten part, which is up to 10 times slower than the IDE. So there is no chance to improve this more. You could see it only as a demo of "this is working". In the I

Re: JIGSAW PUZZLE 2d-video v_100

2018-12-29 Thread hh via use-livecode
[A] JIGSAW PUZZLE 2d-video (HTML5) is now updated to v_110 • Improved once again speed with videos a little bit. The links are unchanged (US) http://hh.on-rev.com/html5/jigsawPuzzle2d-video-9.0.2hhX.html or (EU) http://hyperhh.de/html5/jigsawPuzzle2d-video-9.0.2hhX.html [B] JIGSAW PUZZLE 2d-vid

Re: Refactoring is your friend / moving from 6.x to 9.x

2018-12-31 Thread hh via use-livecode
> Craig wrote: > Not sure if this is still relevant in LC, but in HC, lock screen > commands were queued. So the fix, so that one did not have to count > the number of locks through perhaps several handlers, was: > > repeat until the lockScreen is false >unlock screen > end repeat Yes! Or loc

Video-Fun2

2019-01-01 Thread hh via use-livecode
Video-Fun2 is a major update of the HTML5 standalone "Video-Fun". Finally all I wanted works. This uses only "atomic" canvas2d methods of JavaScript in the browser, no JS-packages. And, where they are fast enough in the HTML5 engine, all the well known wonderful LC-techniques: (US) http://hh.on-r

Re: Video-Fun2

2019-01-01 Thread hh via use-livecode
Well, HTML5 standalones have a display filter, just try to find out how you can set it. > Richmond wrote: > "What you see is an LC-image object" > Um, well, unfortunately NOT on my Mac Mini running WaterFox on MacOS 10.14.2 > https://www.waterfoxproject.org/en-US/ > Nor, for that matter on safari

Re: Video-Fun2

2019-01-01 Thread hh via use-livecode
> Peter B. wrote: > It looks great! > After awhile (10-15 minutes) it froze. Reloaded the page, then Safari had the > message, “This page is using significant memory….” Yes, I had this too. It's probably a caching problem of Safari. They do a lot of caching, that's why they are the fastest browser

Re: Navigator 7.0.1rc1 is available -- Multi-target windows!

2019-01-02 Thread hh via use-livecode
This is (not only now) a real comfortable developer tool. Especially when starting a project the new features are very effective. Thanks for that! ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscrib

Re: Navigator 7.0.1rc1 is available -- Multi-target windows!

2019-01-03 Thread hh via use-livecode
> Geoff C. wrote: > Let me know if there's anything still missing. A reordering in the stacks list that sets the window layering? (What a simple go to stack from last line down to first line does). ___ use-livecode mailing list use-livecode@lists.runre

Re: Navigator 7.0.1rc1 is available -- Multi-target windows!

2019-01-03 Thread hh via use-livecode
> Geoff C. wrote: > So you want drag and drop in the stack list to reorder the windows? > What's the purpose? To bring a particular stack to the foreground? What others do with the "z-index". Or what we can do with setting the layer of card controls (no only setting the layer of a control to "top"

TestInStandalone v_100

2019-01-06 Thread hh via use-livecode
There is nearly no documentation in the dictionary what works (or works not) in HTML5 standalones. That's why I made this tool: Here is "hhTestInStandalone", a HTML5 standalone that is ready for testing code snippets up to local libraries (script-only stacks). I use it to isolate critical script

Re: Get RGB color of a specific screen location

2019-01-07 Thread hh via use-livecode
Try if there is no img "temp" then create invisible img "temp" export snapshot from rect to img "temp" as PNG Then average the imagedata of that image. If you would like to use transparency then also use the alphadata. This is for desktop, on mobile there are some specials (see the dictionary).

Re: Get RGB color of a specific screen location

2019-01-07 Thread hh via use-livecode
Try if there is no img "temp" then create invisible img "temp" export snapshot from rect to img "temp" as PNG Then average the imagedata of that image. If you would like to use transparency then also use the alphadata. This is for desktop, on mobile there are some specials (see the dictionary).

Re: Get RGB color of a specific screen location

2019-01-07 Thread hh via use-livecode
> Beat C. wrote: > What I need is to get the RGB of a specific screen > location - I need to make an avarage of e.g. 5x5 pixels. Make a new small stack with a button. Script it as given below. On mouseUp the average is taken from the 5x5-rect left of the topleft of your stack. - begin button

Re: Get RGB color of a specific screen location

2019-01-07 Thread hh via use-livecode
Sorry, my last post had a typo. Now it is correct. > Beat C. wrote: > What I need is to get the RGB of a specific screen > location - I need to make an avarage of e.g. 5x5 pixels. Make a new small stack with a button. Script it as given below. On mouseUp the average is taken from the 5x5-rect lef

Re: Get RGB color of a specific screen location

2019-01-07 Thread hh via use-livecode
Sorry, my last post had a typo. Now it is correct. > Beat C. wrote: > What I need is to get the RGB of a specific screen > location - I need to make an avarage of e.g. 5x5 pixels. Make a new small stack with a button. Script it as given below. On mouseUp the average is taken from the 5x5-rect lef

Double posting

2019-01-07 Thread hh via use-livecode
Sorry for my several double postings. This was a problem with my email server. ___ 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/m

Re: TestInStandalone v_100

2019-01-09 Thread hh via use-livecode
> Bernd N. wrote: > At times it is hard to believe that it is "just" a HTML5 stack, it > seems like a little IDE in its own. It is in fact an interesting question how much of the IDE can be "ported" to a HTML5 standalone. Currently we are at the level of a non-debugging message box. If somebody is

Re: Get RGB color of a specific screen location

2019-01-09 Thread hh via use-livecode
Looking again at your problem my experiences with both statistics and images say that the *median* would be a better average than the *arithmeticMean*. So you could try and compare both averages (more exactly: location parameters of your WxH-color-distribution). local t="temp" -- hL,vL is the top

Re: Getting Browser Widget to Read Local Assets

2019-01-11 Thread hh via use-livecode
Field and button names below relate to my example stack. http://forums.livecode.com/viewtopic.php?p=173867#p173867 To use a local file (= NOT from a local or remote server) you have to load the image from a stack property or url("binfile:"...) and add it inline (base64 encoded): Step 1: imageVari

LCImageToolBox_v190

2019-01-13 Thread hh via use-livecode
LCImageToolBox89 and LCImageToolBox6789Mac are updated to v190: Added 5 methods of a stippling effect [ see https://en.wikipedia.org/wiki/Stippling ] Download LCImageToolBox from "Sample Stacks" or http://livecodeshare.runrev.com/stack/826/ (for LC 8/9) http://livecodeshare.runrev.com/stack/827/

Re: Getting Browser Widget to Read Local Assets

2019-01-15 Thread hh via use-livecode
BR, assuming you don't have a local server running: It is an essential difference whether you set the htmltext or set the URL of the widget. If the image is called in the htmltext then there is no way but using a dataURL (=inline image), no matter if it is an img tag or called in the style tag.

Re: The merge function is awesome!

2019-01-17 Thread hh via use-livecode
> Geoff wrote: > using value(): > the name of tID && "[" & the id of tID & "]" > using merge(): > [[the name of tID]] - ([[the id of tID]]) > (is there a way to escape the "["?) You could use with merge not only variables but also functions that are available for the script that calls merge: [[br

Re: The merge function is awesome!

2019-01-17 Thread hh via use-livecode
> Geoff wrote: > ... you've just given me an idea how to handle things like font/styling > tags. Something like: > function ifTag b,o,s,c > if b then return o & s & c else return s > end ifTag Allow me two remarks. 1. You could use, in order to avoid the check: function tag s,o,c return

Re: HTMLTEXT of a Browser Widget in Properties Inspector?

2019-01-17 Thread hh via use-livecode
Browser widget: A. URL There are some problems with caching if one sets the URL and reloads. Then the chance is really big that you get fooled by the cache. I tried even to delete the widget and create a new one with the same URL. Also unloadig the url doesn't help. I couldn't catch with several

Re: Feature request: merge function!

2019-01-18 Thread hh via use-livecode
Until parametrization is implemented for LC 9 one could use the following generalization of Andre's method for David. This is still fast enough because replace is so fast in LC. David would call merge2(string, "{{", "}}"). To make merge xml safe use e.g. merge2(string,,,"<1>","<2>") Of course you

Re: HTMLTEXT of a Browser Widget in Properties Inspector?

2019-01-18 Thread hh via use-livecode
> BR wrote: > and you have a "flicker" as the "cache" htmltext seems to load > and then the my code set it. > > So, now the question is... is the htmltext of browser widget > a saved property? I already answered both in my last post! Especially: = To avoid flicker hide the widget until it is r

Re: Feature request: merge function!

2019-01-18 Thread hh via use-livecode
Until parametrization is implemented for LC 9 one could use the following generalization of Andre's method for David. This is still fast enough because replace is so fast in LC. David would call merge2(string, "{{", "}}"). To make merge xml safe use e.g. merge2(string,,,"<1>","<2>") Of course you

Re: The merge function is redundant?

2019-01-18 Thread hh via use-livecode
> Kee N. wrote: > I’m confused. Can someone explain why merge function exists when > the put function works just as well? > merge([[ 1 + 2 ]] = 3) vs put 1 + 2 && “= 3” merge([[ 1 + 2 ]] = 3) produces a script error, this should read merge("[[ 1 + 2 ]] = 3"). Merge is the one and only function to

Re: Livecode Dictionary

2019-01-19 Thread hh via use-livecode
Use Bernd's TinyDictionary. There everybody can add his own (private) notes. Download from "Sample Stacks" or http://livecodeshare.runrev.com/stack/825/TinyDictionary ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to s

Re: Howto play live video from webcam on OSX?

2019-01-25 Thread hh via use-livecode
http://lists.runrev.com/pipermail/use-livecode/2018-December/251858.html ___ 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/mailma

Re: Should I forget HC? Honestly?

2019-01-26 Thread hh via use-livecode
(1) https://vipercard.net (2) https://github.com/kreativekorp/openxion (3) https://github.com/uliwitness/stacksmith/ See also the xtalk interviews here: http://www.zathras.de/angelweb/articles.htm (4) Why not make a rather complete LC HTML5 standalone? It could have an optional "retro-look" (Hy

Re: Should I forget HC? Honestly?

2019-01-26 Thread hh via use-livecode
There is also https://jamesfriend.com.au/pce-js/ that lets you have retro pc's (IBM/Atari/Mac) in the browser. The MacPlus could be enhanced to have the full latest HyperCard available. ___ use-livecode mailing list use-livecode@lists.runrev.com Please

IndyCam2_v100

2019-01-26 Thread hh via use-livecode
*** The stack does NOT run with LC Community *** (Because it uses the cameraControl that is available in the Indy or Business versions of LC only.) Download IndyCam2 from "Sample stacks" or http://livecodeshare.runrev.com/stack/927/ You can take snapshots with up to two (intern oder extern) camer

Re: Trying to get Camera Control. Community Plus License

2019-01-27 Thread hh via use-livecode
Find some info here: https://livecode.com/products/livecode-platform/pricing/ >From the 9.0.2-dict entry to cameraControlCreate: Edition: Indy OS: mac, windows, ios, android So, the Community plus edition is not the Indy edition. I will soon publish a *timelapseCamera* stack that runs on Mac/Win

Re: IndyCam2_v100

2019-01-27 Thread hh via use-livecode
This is now updated to v102 that removes a display bug on Windows where I could not make two cams visible at the same time. So, if you have two cameras attached then you see on MacOS the display of both and on Windows10 only the selected one. Tested to work on MacOS 10.14 and Windows 10 with LC 9.

Re: IndyCam2_v100

2019-01-27 Thread hh via use-livecode
I don't know exactly the differences between the editions. But did you already try https://livecode.com/trial/ ? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription pre

Re: browserDocumentLoadComplete fired twice Mobile

2019-01-29 Thread hh via use-livecode
You could use "the target" do get the browser that is calling the handler. ___ 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/mail

Re: browserDocumentLoadComplete fired twice Mobile

2019-01-29 Thread hh via use-livecode
> You could use "the target" do get the browser > that is calling the handler... .. and put the browserDocumentLoadComplete *only* in the card's script (or the stack's script if the widgets are on different cards). ___ use-livecode mailing list use-liv

timeLapseCamera6789

2019-01-30 Thread hh via use-livecode
The stack TimelapseCamera works with all editions of LC 6/7/8/9 on Mac/Win/linux and on Raspi 2/3 (with LC 651 and 704) Download timeLapseCamera6789_v105 from "Sample Stacks" or http://livecodeshare.runrev.com/stack/928/ TimelapseCamera lets you ... * select one of the (web-)cameras attached

Re: Setting behaviors in 9.0.2

2019-02-02 Thread hh via use-livecode
I think this is not related especially to behaviors. There is possibly something going wrong with the memory management of LC 9. I had, especially when developing or using widgets, several strange effects. For example changed scripts worked not before saving 2-3 times and closing the script editor

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: http://lists.runrev.com/mailman/listinfo

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

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 wo

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 manage

Simplify polygon

2017-08-15 Thread hh via use-livecode
Today I implemented the Ramer-Douglas-Peucker algorithm for reducing the number of points of a polygon such that the "shape" of that polygon is preserved as good as possible, controlled by a tolerance parameter. This is known as "simplifying" of a polygon (is also done for polygon/ polyline paths i

Re: Couple of questions about the browser widget

2017-08-16 Thread hh via use-livecode
Additional to Jonathan's instructions. Basic: http://forums.livecode.com/viewtopic.php?f=7&t=29589 Medium: Get MouseEvents from browser widget http://forums.livecode.com/viewtopic.php?p=154496#p154496 and others there (7 Browser Widget usage examples) ... ___

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 8.1.6

Re: lock screen gotcha revisited

2017-08-21 Thread hh via use-livecode
The real interesting thing is now for me how to lock the screen in LC Builder? I couldn't find a way to do that. Who knows? This interacts with LC Script, timed widgets (clocks, animations) want their own screen updates ... ___ use-livecode mailing lis

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 improvement.

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 the

Re: Sending a message to users that floats above everything

2017-08-24 Thread hh via use-livecode
Jonathan wrote: > What is the best way to send a message to users that floats above > everything else, including browser widgets? > ... > Would it be possible in LCB to make a float-above-everything (including > browser) dialog? Didn't read the whole huge thread, so in case it is not already said:

Re: Sending a message to users that floats above everything

2017-08-24 Thread hh via use-livecode
> Jonathan wrote: > I hate to hide the map just for something like adjusting the range at which > one can see markers. You could make a snapshot of the map, gray it out and use the image as background (everything else hidden). ___ use-livecode mailing

Re: webP and webM support in LiveCode

2017-08-26 Thread hh via use-livecode
For webP you could use (from LC via shell) these free WebP utilities for Mac/Win/linux: cwebp -- WebP encoder tool dwebp -- WebP decoder tool vwebp -- WebP file viewer webpmux -- WebP muxing tool gif2webp -- Tool for converting GIF images to WebP See https://developers.google.com/speed/webp/downl

Re: webP and webM support in LiveCode

2017-08-26 Thread hh via use-livecode
> Al wrote: > Yes, LiveCode shell control is a real godsend for > working with command line programs, but we could > not use webP compressed images within our stacks > unless LC engine could decode them back to RGBA > images within LiveCode. So what's the problem? Decode them with shell to a (tem

Re: Bad Crash on Attempt to Group Radio Buttons

2017-08-27 Thread hh via use-livecode
> JLG wrote: > ... But it should be easier. You could use tinyDictionary. ___ 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/mail

Re: LC on Raspberry Pi3

2017-09-01 Thread hh via use-livecode
All > 100 stacks from my Raspberry Pi stacks collection (Forum) run on Raspi 2B+/3 using the LC 6.5.1 or LC 7.0.4 IDE. Some of them may be called "apps". Of course they run also as standalone on Raspi 2B+/3. Simply compile one of these on Mac/Win/linux and run them on Raspi ... I also made an app

Re: LC on Raspberry Pi3

2017-09-02 Thread hh via use-livecode
No, vice versa. ImageJIT (= LC as GUI + luajit via shell) on Raspberry 3 is faster as 'LC with LCS only' on the 3 GHZ CPU (a linux box). The Raspi app lets do the core processing of the raw imageData by luajit and the 'LC with LCS only' is running with my fastest LC Scripts. Doing both on the 3 G

Re: Vector graphics, again

2017-09-07 Thread hh via use-livecode
Jonathan, Richmond wants to convert his bitmaps to SVG, because he has no SVG version. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.run

Using the property inspector

2017-09-11 Thread hh via use-livecode
It was not heard there, so I ask here: http://forums.livecode.com/viewtopic.php?p=157993#p157993 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http:

IconGrid widget v2.0.2

2017-09-12 Thread hh via use-livecode
Some may say it has too much options but I couldn't stop when coding: LC Builder is full of features. The more one codes, the more one sees that. Some may say, I could have split it into several smaller widgets so that we could have sooner 100 community widgets, if not 1000 ;-) Anyway, I documente

Re: IconGrid widget v2.0.2

2017-09-12 Thread hh via use-livecode
> I wrote: > Each element has properties (in order of the layering): > > Colors (using high contrast colors), > Image (load these from server or disk, 150 'icons' are built in), > SVGpath (use the built in SVGs or any other valid path), > Text (multiline supported), > Number (readable only). Co

Commmunity widgets #47-50

2017-09-15 Thread hh via use-livecode
Just updated/upgraded community widgets #46-#50 to run from the same source. So that also these widgets, now 10 widgets in sum, will run your stacks UNCHANGED, but you have to use the correct version in the IDE. Currently available is by the newest hh-(un)-installer stack from "Sample stacks" or

Community widgets #42-52

2017-09-17 Thread hh via use-livecode
Two widgets have new features, that may be interesting for some of you. For your convenience here the long list. Currently available is by the newest hh-(un)-installer stack from "Sample stacks" or http://livecodeshare.runrev.com/stack/842/ [Download the installer and read the short scripts to tru

Re: (Browser) Widget documentation

2017-09-20 Thread hh via use-livecode
> Ben R. wrote: > General question: where can users find a reference to the supported > properties/commands/functions of widgets? E.g. the properties of a Segmented > Control widget? > More specific immediate question: where can I find a reference for the > Browser widget? In the dictionary (so

Drag widgets from Tools palette -- solve issues?

2017-09-20 Thread hh via use-livecode
Is an IDE specialist out there who is interested in that? http://forums.livecode.com/viewtopic.php?p=158334#p158334 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

How to to type bottom to up and right to left in a field

2017-09-21 Thread hh via use-livecode
Because "textChanged" was also mentioned in a recent thread. This is a handler full of features: *** How to to type bottom to up and right to left in a field *** Simply script the field as follows and start typing. on textChanged replace space with space in me -- or whatever end textChanged D

Re: Constraining an input field's contents to be a single line.

2017-09-21 Thread hh via use-livecode
Did you already try the following? This works here, also with pasted text. on textchanged lock screen; lock messages put the selectedChunk into sc replace cr with space in me -- or with empty select sc unlock screen; unlock messages end textchanged > > Mike B. wrote: > > If "textchanged

<    1   2   3   4   5   6   7   8   9   >