Re: "module format not supported"

2018-02-05 Thread hh via use-livecode
I'll answer only question 1 for a first aid. Leave others to the team. This is due to the *automatic* compilation by LC 9.0.0-dp11. This is an idea that only makes sense for code which runs in both LC 8.1.8 and LC 9.0.0-dp11 and for modules that should only be used in LC9. The result means your c

Re: "module format not supported"

2018-02-05 Thread hh via use-livecode
There is also a forum thread to that problem with an answer by LC-Mark. http://forums.livecode.com/viewtopic.php?p=162674#p162674 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage yo

Navigator

2018-02-06 Thread hh via use-livecode
> Mark T. wrote: > Geoff Canyon is amazing. > Thanks for all of your hard work on this very useful plugin. Yes, thanks a lot Geoff - that's really very useful. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscri

Re: any tricks to make SHELL non blocking?

2018-02-06 Thread hh via use-livecode
> Warren S. wrote: > The dictionary says: "On OS X systems, you can use the open process > command to start up an application, but not a Unix process. To work with > a Unix process, use the shell func instead." That makes me wonder if you > can only use shell() with ffmpeg. It is not quite clea

Re: representing this character from a pdf

2018-02-08 Thread hh via use-livecode
> Bob S. wrote: > {\rtf1\mac {\fonttbl{\f0\fnil \fcharset77 Wingdings;}{\f1\fnil \fcharset77 > (Message);}} > {\colortbl;\red0\green0\blue0;} > \pard \f0 \fs20 \cf1 \u61672?\f1 \fs22 \'00} So, on Mac it is numToCodepoint(61672) in font "Wingdings" ___ u

Re: representing this character from a pdf

2018-02-08 Thread hh via use-livecode
> Bob S. wrote > Better. Not the exact one tho. The dingbat one is thicker. I didn't name a fontsize. The one you get in the rtftext (in your case fs20/2=10) is dependent on the scale of the pdf when you copied the char. So the size should be related to the surronding textsize both in the pdf a

LC-Magick #10

2018-02-11 Thread hh via use-livecode
Added today LC-Magick #10: Color Tonality Curve Variant 1: Pure LC Script, use it best with LC 6 (slow with LC 8/9). Variant 2: Uses JS in a (hidden) browser widget for use with LC 8/9. Variant 1 runs on Mac/ Win 7+10/ linux 32bit with LC 6/7/8/9 and Raspi 6/7. Variant 2 runs on Mac/ Win 7+10/ Ub

Re: strange behaviour of standalone builder

2018-02-12 Thread hh via use-livecode
Hi Klaus, the move to "engine" is documented, see specialfolder/engine. This is the only "logic" way to do that because your "CLI" files are executables. That is Mac is correct in docu and building the standalone. The bug is now either the docu for Win/linux or the not-moving on Win/linux. > Kl

Re: Put URL into variable and textEncoding

2018-02-12 Thread hh via use-livecode
If you know it *is* utf-8 then (in LC 8/9) it "just works" whether put into a variable or directly into a field. But you have to be aware when working with the variable that you have to use codepoint for conversions for "foreign chars" (e.g. using diacritics). > Malte P-B. wrote: > Hi, I am a litt

LC-Magick #11

2018-02-13 Thread hh via use-livecode
Added today #11: ReflectImage ReflectImage mirrors (a part of) an image and blends the transparency of the mirrored part. This shows, compared to lengthy techniques in "full" image apps, how easy it is to have such effects with LiveCode. You can set the position of the mirror (top or bottom) and

LC-Magick #12

2018-02-16 Thread hh via use-livecode
Added today #12: Before-After-Image Before-After-Image shows horizontally or vertically an "original" image (image "before") and a part of it visually replaced by the changed image (image "after"). You select the proportions of the parts by sliders. The stack is "pure" LC Script and runs with LC

Re: Features and shortcomings of html5

2018-02-20 Thread hh via use-livecode
> JLG wrote: > The examples I've seen are mostly basic, usually just a one-card stack with > image > or graphic manipulations. What examples if not mine (and the few I link to) did you see? Would be very glad to know some more. > The stack I will be working with will require many cards, naviga

Re: Features and shortcomings of html5

2018-02-20 Thread hh via use-livecode
Forgot to say: There are a LOT of improvements in the HTML5 standalone builder from LC 8.0.2 to 9.0.0-dp10. It is especially Ian who does a good job in that field. But it is also a lot of work to recompile older standalones and to remove work arounds that are no longer needed. Probably

Re: Features and shortcomings of html5

2018-02-20 Thread hh via use-livecode
The laoding delay is very much dependent on how you configure your server. If the server is optimized I have here with Safari < 9 secs for the first load and < 3 secs for a reload, using the server of the first link below. The standalones mentioned are here [EU] http://hyperhh.org/html5/index-

Re: Features and shortcomings of html5

2018-02-20 Thread hh via use-livecode
So, here is one thing you have to keep in mind: The same-origin-policy for networking. http://hyperhh.de/html5/testFetch-9.0.0-dp-7X.html works with loading images but this one fails: http://hyperhh.org/html5/testFetch-9.0.0-dp-7X.html There is no other difference but using .org instead of .

Re: LiveCode Widget Factory

2018-02-21 Thread hh via use-livecode
> Todd F. wrote: > I have been in touch with a few people to get their ideas and needs, > but I wanted to reach out and check with the community. > At first, wehave decided to focus these for round one: > Basic Native UI elements, Native Maps Please start with *cross-platform-native* widgets

Re: LiveCode Widget Factory

2018-02-22 Thread hh via use-livecode
> Todd F. wrote: > Yes, Ali has provided a good multiplatform example of a button. We are > taking this example and creating a structure/template for all basic UI > widgets. This is our goal, but the #1 goal right now is mobile and getting > them in a widget store for people to purchase and use. Bu

Re: widget properties

2018-02-24 Thread hh via use-livecode
> Richard G. wrote: > When we query the properties of any object, we get an array that lets us > understand and even reproduce that object easily. > > Except with widgets. > > When we query the properties of a widget we get only the subset of > properties common to all widgets, but none of the

Re: widget properties

2018-02-24 Thread hh via use-livecode
> Richard G. wrote: > I'm suggesting the engine have an enhancement to add the widget-specific info > to the universally-supported "the properties" info. It would be possible to simply add all the info that the property inspector can display. But that can also easily be scripted by the user of th

Re: widget properties

2018-02-24 Thread hh via use-livecode
> Richard G. wrote: > What's missing is support for the universal method by which we can > obtain property info, "the properties" function. In order to work with a widget you have to know what the single properties do. I can't see what should be the purpose of such a "full list". > Given that t

hhMockup

2018-02-25 Thread hh via use-livecode
["hhMockup" is an enhanced version of the stack I used to produce the demos for my LCGlobal talk "Perspective and affine transformations of images" in Nov 2017.] The stack contains a *very fast* version of the perspective image-transformation given in Raspberry Pi stacks collection #85 (pure LC S

Re: widget properties

2018-02-25 Thread hh via use-livecode
> Brian M. wrote: > My 0.02 is that export should mirror what the engine saves to the stack > file such that import could exactly recreate an object (with some logic on > how to handle ID collisions - overwrite, throw error, assign new ID...) If you are developing and testing a widget this would m

Re: send "keyUp" / "rawKeyUp" ?

2018-02-28 Thread hh via use-livecode
If I understand correctly what you have in mind then you could try the following. Clicking the button will place one copy of numToCodepoint(M) into both fld 1 and fld 2. Type into the fields as usual, especially you can delete. Typing outside the fields ("blind") will put one copy of space&char in

Re: send "keyUp" / "rawKeyUp" ?

2018-02-28 Thread hh via use-livecode
Read again. Got it now. What you effectively want is the (current) foreign keyMapping. This is done by the OS, not gettable by LiveCode AFAIK. Apple even doesn't has a file to check, Linux and Win have. Look what they do: https://wiki.archlinux.org/index.php/Keyboard_configuration_in_console http

Hyphenator

2018-03-05 Thread hh via use-livecode
Just uploaded a LiveCode Hyphenator. The stack uses Hyphenator.js (by M. Nater, MIT licensed) in a browser widget with your input. It runs using LC 8/9 on Mac/ Win 7+10/ Ubuntu. You get as plain text 1. The hyphenated text (using the selected language patterns) displayed in a browser widget, the h

Re: Rotating PNG images

2018-03-05 Thread hh via use-livecode
> Richmond M. wrote: > Not much. > Luckily I am building images where the part that needs > rotating is monochrome so that can > be rendered as an SVG and imported into a widget. > This is, however, quite beside the point . . . > The inability of LiveCode to do something that nearly > every other p

Re: Rotating PNG images

2018-03-05 Thread hh via use-livecode
> Richmond M. wrote: > There's no "instead", I set the angle on PNG images and they deteriorate. Did you already try hhMockUp (from "sample stacks")? I just tried with the LCC 1024x1024 logo. Simply use the images menu there to import and then select it from that menu. Works fine: skewing, scalin

Trace_to_SVG

2018-03-05 Thread hh via use-livecode
Just uploaded "Trace_to_SVG" (MIT license from Potrace). The stack uses Potrace (by P. Seliger, the "lite" JavaScript version) in a browser widget with your input. It runs using LC 8/9 on Mac/ Win 7+10/ Ubuntu. I changed the JavaScript a little bit to use better the power of the "LC-GUI". You inp

Re: Release 9.0.0 RC-1

2018-03-14 Thread hh via use-livecode
Special thanks for the detailed documentation of changes in the release notes and also the compact listing here. > Panos/LCTeam wrote: > > 1. New libraries added: > > - Amazon Web Services (AWS) Library > - Android Audio Recorder Library > - Android Background Audio Library > - Command-line Opti

Re: Still looking into HTML5 app

2018-03-14 Thread hh via use-livecode
There is a new feature "new window/another canvas" that may help with the 'splash' problem (library stacks). Regarding audio/video: LC player is not supported. But everything is possible what's possible in the supported browsers, because you have the "do as javaScript" feature. Sadly you need unti

Re: LC 9 and Icon Families

2018-03-14 Thread hh via use-livecode
Thanks. Please put this on "Sample Stacks" (there are more visitors there). ___ 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/mai

Re: LC 9 and Icon Families

2018-03-15 Thread hh via use-livecode
@Brian Please add your tool also to "Sample Stacks". This was reworked in the last year and works really fine here. And it is *very* fast for searching and downloading a stack. Such wonderful stacks go (somehow) lost in the list or the forum. ___ use-li

Re: Stupid Question Again - Proportional Scaling

2018-03-17 Thread hh via use-livecode
For proportional resizing a stack window hold the shiftkey down when resizing. ___ 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/

Re: Stupid Question Again - Proportional Scaling

2018-03-17 Thread hh via use-livecode
[Sorry lost above half of my answer.] You could try the following with user's interaction: For proportional resizing a stack window hold the shiftkey down when resizing. And in card's script add on resizestack w,h set rect of img 1 to (0,0,w,h) end resizestack ___

Re: Stupid Question Again - Proportional Scaling

2018-03-18 Thread hh via use-livecode
@Peter You could try the following (doesn't need a shiftkey down). Put the following into the stack's script and drag anywhere the image to resize it and the stack proportionally (topLeft fixed). -- 1. Don't use any resize stack handler -- 2. set resizable of the stack to FALSE local l0, t0, ew,

Re: Stupid Question Again - Proportional Scaling

2018-03-18 Thread hh via use-livecode
Never tried to script that. It's *eventually* simple -- as always with LC. Here again a little bit optimised, changing the size also by the scrollWheel: -- 1. Don't use a resizestack handler -- 2. Set resizable of the stack to FALSE local l0, t0, ff on mouseDown put the long id of the target in

LC-Magick Collection

2017-01-08 Thread hh via use-livecode
Added today #5: Circular (Polar) Image Distortion. The distortion output is, not only in LC, somehow "jagged" at the border. I tried to "soften" border using graphic effects. Bernd (bn) already showed me a nearly perfect method for #4 (will be updated soon), sadly this can't handle transparency.

Re: LC-Magick Collection

2017-01-10 Thread hh via use-livecode
Update to LC-Magick #5: Circular (Polar) Image Distortion http://forums.livecode.com/viewtopic.php?p=14#p14 Bernd solved the antialiasing-border-problem with a brilliant technique (using a fillGradient). Needs some more time but it's worth. Thanks BerndN! > Added today #5: Circular (Polar

Re: Setting the Cursor to an image

2017-01-12 Thread hh via use-livecode
> William P. wrote: > I use: > on mouseUp > set the cursor to # —the ID of the image > lock cursor > end mouseUp You could try to _first_ lock the cursor then set it. (This works for here). ___ use-livecode mailing list use-livecode@lists.runrev.com

Nabble fools one of us

2017-01-13 Thread hh via use-livecode
Just in case somebody of us is wondering why he/she suddenly authored *all* posts of this list since Jan 8 here: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html I can't see the logic which author is elected as the "one-for-all", but it's certainly without asking that p

Re: HTML5 and different editions

2017-01-22 Thread hh via use-livecode
Keith M. wrote: > HTML5 production is part of the LiveCode Community edition, which is > fantastic. It's in the Business edition too, of course. The Indy > edition, however, doesn't allow HTML5 production at all. In which version do you see this? I made close to all of my > 50 examples (hh.on-r

Re: HTML5 and different editions

2017-01-22 Thread hh via use-livecode
I don't understand. Keith writes about the ability to make standalones, not about the license. I thought *every* edition of LiveCode can create HTML5 standalones? (I can't test because I have a HTML5 license). If not, that is possibly because Indy can set passwords to all standalones, what has to b

Re: Script editor chops "end handler" to "nd handler"

2017-01-27 Thread hh via use-livecode
I cannot confirm this, it's even more: "en" is chopped. [Also, sometimes: When hitting immediately after that the backspace key a zero appears.] This is only with code that is not "beautified" (all lines begin at left). I tried my own, not your demo. [I had also _sometimes_ similar chopping wh

Re: Browser Widget/HTML5/LC Integration

2017-01-28 Thread hh via use-livecode
BR wrote: "Even my attempts with AnimationEngine which is, I believe as good as it's going to ever get with LC's engine, have a clunky, jerky feel." I tried to generate such "bad" graphics in LC without any success. So: Could we see (at least one of) such attempts? Don't forget the source code. _

Re: Browser Widget/HTML5/LC Integration

2017-01-28 Thread hh via use-livecode
> BR wrote: > Sure.. try this: > go stack url "http://wiki.hindu.org/uploads/SivasHawaiiRevels_v001.livecode"; > it's so "bad" as it is "just below par" enough to cause others to blink at it. It's not the LC graphics it's the "jagged" and "uncomplete" scripting. LC can do much more. Some basic ex

Re: Yertle the Turtle

2017-01-31 Thread hh via use-livecode
> Richmond wrote: > The problem is that (as far as I am aware) LiveCode cannot > move objects for fractions of pixels. Even if it could, this would be not enough, because sqrt(2) is an irrational number ;-) ___ use-livecode mailing list use-livecode@lis

Re: Yertle the Turtle

2017-01-31 Thread hh via use-livecode
> Colin H. wrote: > I’m sure any system would not attempt to parse an infinite number of decimal > places. The turtle would probably be placed at 1.41421356237 pixels. If you > want to try more accurately than that, here’s the first million decimal > places: > https://apod.nasa.gov/htmltest/gifci

Re: Mobile library for barcodes?

2017-01-31 Thread hh via use-livecode
> Devin A. wrote: > I am actually interested in *bar code* reading rather than QR codes. https://github.com/trozware/rev_stacks/ ? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage y

LC-Magick Collection

2017-01-31 Thread hh via use-livecode
Added today #6: Bilinear Perspective Image Distortion Distortion part by 'hh', Antialiasing part by 'BNig'. LC-Magick #1 - Blur and Pixelate (Scott R.) http://tactilemedia.com/blog/2016/03/26/update-blur-effect-plus-pixelize-bonus/ LC-Magick #2 - Pointillize (Hermann H.) http://forums.livecode.com

Re: LC-Magick Collection

2017-01-31 Thread hh via use-livecode
Tracing all opaque parts of a picture with transparency, not only the outline, is one of the tools that BerndN uses in button "TracedAntialias" for the bilinear distortion, the tracing method used is "radial sweep". We should ask him to make an own 'little stack' for "Antialiased Tracing" where he

Re: Size of Image in RAM

2017-02-07 Thread hh via use-livecode
Scott is right: JPEG has exactly one _color_ mode: 16M = 2^24 (seen apart of 256 gray-color mode). What you interpret as "8bit-color-mode" relates to the _compression_ mode which also explains the relation filesize vs (uncompressed) size in memory. ___

Re: Windows and OSX 64-bit builds?

2017-02-10 Thread hh via use-livecode
Please post this "Split it!"- answer, as it is, in LC's blog. This is good even for real beginners. Large files or large data shouldn't be a reason for _incomplete_ 64Bit implementations that would make once again LC Script slower. > Mark Waddingham wrote: > > > > Tom Glod wrote: > > I will... if

Re: Windows and OSX 64-bit builds?

2017-02-11 Thread hh via use-livecode
This is a well known visual phenomena: When I'm tired I also switch sometimes 'in between reading' the temporarily memorized decimal point from the beginning to the end of a three-digit-block (did it recently in the forum). It mostly works for me (if not 'computing') to force myself to obey the ru

Re: Windows and OSX 64-bit builds?

2017-02-13 Thread hh via use-livecode
> Bob S. wrote: > I failed 6th grade math and then went on to ace algebra and geometry. > Everyone can thank their lucky stars I didn't go in for Rocket Science! Documented in a letter: "... Do not worry about your difficulties in Mathematics. I can assure you mine are still greater. Best regards

Formatting scripts in a field

2017-02-15 Thread hh via use-livecode
Some time ago there was a thread about formatting 'directly' the text of a field or the selection of a field, without using manually the script editor: http://runtime-revolution.278305.n4.nabble.com/Script-Indenting-tp4699437.html I couldn't find a follow-up, so just in case this is not (publicly)

Re: Reveal in Find on Windows

2017-02-23 Thread hh via use-livecode
The following works here on Mac/Win/Linux with LC 6/7/8/9. All my newer stacks have a menu (small square at top left) to do that for each path item of the current stack path. ## Opens the folder that contains the file pFolderFile command openWorkingFolder pFolderFile set itemdel to "/" put

Re: Reveal in Find on Windows

2017-02-23 Thread hh via use-livecode
> Richard G. wrote: > There are three major desktop OSes. :) Yes. And I'm _the only one_ in this thread who posted a handler that serves all these three ... http://lists.runrev.com/pipermail/use-livecode/2017-February/234858.html ___ use-livecode maili

Re: Reveal in Find on Windows

2017-02-23 Thread hh via use-livecode
@Roger I adjusted (uncompletely) the name to the OP's handler name. Yes, you are right, the handler only opens the enclosing folder (or any path item of such a folder path). The purpose of my post was to second the "launch document" solution for folders and moreover to add the linux variant for t

Re: Goofy Drawing question

2017-02-25 Thread hh via use-livecode
Assuming you wish to draw, not to paint: local gg="goofy", fc="255,0,0", ls=3 on mouseUp lock screen if there is no grc gg then create grc gg set style of grc gg to "polygon" -- or "line" set points of grc gg to (250,250),(375, 375) set lineSize of grc gg to ls set forecolor of grc gg

Posting delay

2017-02-25 Thread hh via use-livecode
I have currently a "posting delay" (time between sending the mail and the becoming visible in the list) of 40 up to 60 minutes. Is this the consequence of a changed incoming spam filter? ___ use-livecode mailing list use-livecode@lists.runrev.com Please

Re: Dragging widgets

2017-02-27 Thread hh via use-livecode
This is not a bug because a widget is not an ordinary control: Nearly all user interaction has to be allowed and scripted. I implemented a kind of "grab" in some of my LC8-widget examples. You can for example also Not focus on a widget from LC Script (that's why the browser widget is 'robust' agai

Re: Dragging widgets

2017-02-28 Thread hh via use-livecode
> Richmond wrote: > So . . . can any one tell me how to effect a "grab" (which is the same > whether with a PNG image, a button or a graphic object) with a widget? There is one way that is acting similar to a "grab": Put the following into your card's script. Works for widgets and any 'usual' con

Image Manipulation by javascript/HTML5 using a widget

2017-02-28 Thread hh via use-livecode
Hi all. There is a new sample stack by Jonathan Lynch called "Browser Widget Image Manipulator". This name could lead to underestimate a bit this stack. That's why I would like to point to it. This is a real clever solution, short and practicable. It uses the image manipulation possibilities of j

Re: Image Manipulation by javascript/HTML5 using a widget

2017-02-28 Thread hh via use-livecode
Roger E. wrote: > Sounds very cool! Where is the download link? Use "Sample Stacks" in the LC toolbar (Sort descending by date) or (slower) http://livecodeshare.runrev.com/ (at top if sorted by 'Newest') ___ use-livecode mailing list use-livecode@list

Working browser widget/linux-flavour combinations?

2017-03-09 Thread hh via use-livecode
I would like to test some browser interaction on linux. Please, could someone who works with a LC version that has NO problems with the browser widget tell me this working 32/64 bit LC version - linux flavour combination? Thanks in advance. ___ use-liv

Re: Working browser widget/linux-flavour combinations?

2017-03-09 Thread hh via use-livecode
Thanks Richmond. There are bug reports from Sept 2016 reporting this 'something'-answer you describe above. I tested with Mint 173 to latest, 32bit. Always had to kill LC 8/9 after the the something-dialog, exactly as reported to LQCC (#17715 and links there). I can not believe that nothing chan

Searching "teh" or tihs"

2017-03-09 Thread hh via use-livecode
Searching is important for your project? Would you like to ask "Did you mean the?" if user searches "teh"? I've implemented a fuzzySearch algorithm in LiveCode script: http://forums.livecode.com/viewtopic.php?p=152202#p152202 Now if you wish to look up "the" or "this" then fuzzySearch will find i

Re: Searching "teh" or tihs"

2017-03-09 Thread hh via use-livecode
> Peter Bogdanoff wrote: > This looks intriguing! I’m working on a commercial project that > could use this. What is your license? The code is based on pseudocode from https://en.wikipedia.org/wiki/Damerau–Levenshtein_distance From my side it's free for non-commercial use, I only wish to have a c

Re: Working browser widget/linux-flavour combinations?

2017-03-09 Thread hh via use-livecode
> Mark Wieder wrote: > ... worked in 9.0-dp6 ... 64-bit Linux Mint 17.3 cinnamon. So I tried Mint 173 cinnamon 32 bit and Mint 181 cinnamon 64 bit, used LC 8 and LC 9, in Virtualbox on Mac and on a 64 bit Linux box. Both show with the browser widget the "something"-window that Richmond described

Re: Searching "teh" or tihs"

2017-03-10 Thread hh via use-livecode
1. The algorithm I implemented is for "fuzzy search" of written/typed words, not for "similar sounding words" (soundex), mostly quite different. My demo is scripted for looking up a (mistyped) search string in the 3233 keywords of LCScript. 2. That's for me the true value of LiveCode: Don't talk a

Re: Messages sent while mouse is down?

2017-03-11 Thread hh via use-livecode
Although there is one scenario where one has to use Mike's looping "within"-approach (adjusted to collecting, not exiting the repeat): If the controls in question (may be all) have some overlapping areas: controlAtLoc((x,y)) reports only the control at (x,y) with the highest layer. > JLG wrote: >

Re: LC for Raspberry Pi

2017-03-11 Thread hh via use-livecode
Richard. Thanks for your engagement. I would like to second this with 98%. Let me correct two of your statements (the missing 2%). 1. > RG wrote: > The last RPi build was v704, which is generally good with one critical > issue: a bug in the menu handling routine causes a crash when clicking >

Re: LC for Raspberry Pi

2017-03-12 Thread hh via use-livecode
People who are using a Raspi and try or even use LC on it may be inclined to try or use LC if they 'expand' to a tablet or desktop. And their own creations will work after no or small adjustments, WOW. This may cause (delayed) revenue to LC. > Mike K. wrote: > Pi is interesting to me because of w

Re: Colour Manipulation

2017-03-19 Thread hh via use-livecode
> Jonathan L. wrote: > It would be amazing if the LC folks created an ImageMagick wrapper so that > we could use it as an external or widget! There is a Java interface (JMagick, see https://www.imagemagick.org/script/api.php) and the brand-new LiveCode FFI for Java. > If you can find a Javascrip

Widget usage examples

2017-03-19 Thread hh via use-livecode
Today I started a new collection, hope some of you come in with "LC-specials". This demo shall show that you need nothing more than a browser widget and a set of image files located locally (e.g. in tmp-folder from stack resources) or from a server in order to have a HQ Ken-Burns-effect show -- ju

Re: Widget usage examples

2017-03-19 Thread hh via use-livecode
> BR wrote > Now, if only we could layer objects on top. I'm seeing more and more apps now > that are using this kind of effect as the background, they also use looping > video - not animated gif, but actual video: short small looping clips that > run behind/ underneath a scrolling group of buttons

Re: Widget usage examples

2017-03-20 Thread hh via use-livecode
Correction. My widget usage example (Ken-Burns-Effekt) http://forums.livecode.com/viewtopic.php?p=152547#p152547 misses one feature I have announced: The images list is currently only working if you use image files from a server (may be also a local server). My variant for local files was, not in

Re: Widget usage examples

2017-03-20 Thread hh via use-livecode
Hi Jonathan, the problem is the slowdown/stuttering because base64 encoding increases data sizes by round 30%. To avoid a huge html file I had to use an extra callback for that. The other method I described is simpler and faster anyway and can easily be LC-scripted. As this is a widget usage exam

Re: Suggestions regarding a webgl problem

2017-03-21 Thread hh via use-livecode
Did you already try https://browserleaks.com/webgl ? ___ 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-livec

Re: Colour Manipulation

2017-03-25 Thread hh via use-livecode
Hi all. Today I implemented this as part of LCImageToolBox89: Basics. Get it _from LC 8/9_ via "Sample Stacks" of the LC-Toolbar or http://livecodeshare.runrev.com/stack/826/LC-ImageToolBox89%3A-Basics Uses Canvas2D (no webGL because of issues with some graphic cards) in a hidden browser widget.

Re: Widget usage examples

2017-03-25 Thread hh via use-livecode
Widget usage example #2: LC-ImageToolBox89_Basics http://forums.livecode.com/viewtopic.php?p=152723#p152723 You will be astonished how close the core of the javascripts is to the handling of imagedata in LCScript. There are a lot among you who will add and change effects without knowing javascript

Re: Colour Manipulation

2017-03-26 Thread hh via use-livecode
Now this is also available, very fast, with the same speed, for LC 6/7/8/9 on Mac using Canvas2d in a revBrowser instance (on Win revBrowser doesn't support Canvas2d) in LC-ImageToolBox-67: Basics. Get it via "Sample Stacks" of the LC-Toolbar or from http://livecodeshare.runrev.com/stack/827/LCIm

Re: Overlaying on video

2017-03-27 Thread hh via use-livecode
> Roger E. wrote > Will there be a similar capability to allow objects (buttons and fields) > to overlay a browser widget, which might also be displaying a video? > I believe there is a need to make this possible for any situation. As I'm currentl refershing my 'web-knowledge' I made a demo. An o

Re: Line numbers for soft-wrapped styled text?

2017-03-27 Thread hh via use-livecode
The solution of Alex T. was the first example I saw of a useful usage of the styledText array. TMHO this is the way to go for the future of more and more complicated styled text. As was said elsewhere, there could be a considerable speed up if first the visible range of lines, say numbers L1 to L2

Re: Line numbers for soft-wrapped styled text?

2017-03-28 Thread hh via use-livecode
Hi Alex, below you will find a tested binary search for the visible lines which uses item 4 of the formattedRect for the topLine and item 2 of the formattedRect for the bottomLine. TMHO your method is so fast for visible lines of a field on usual screensizes only that you could do that for each si

Re: Line numbers for soft-wrapped styled text?

2017-03-28 Thread hh via use-livecode
I see, you are optimizing this. Will become perfect. The current search is part of a script that has to work also for non-wrapped text (with possibly horizontal scrollbar) and is a first step for calculating the visible "chars" (incl. whitespace). In sum: you are right, the search for the lines c

Re: Line numbers for soft-wrapped styled text?

2017-03-29 Thread hh via use-livecode
Alex, before you waste valuable time: The formattedRect can NOT be used in LC 7/8/9, because of the (2^15 div 2)-limit for coordinates is active for that. So the algorithm works in LC 6.7.11, but the results are sadly 'extremely' wrong in LC 7/8/9: Crossing the 'limit' with a vertical coordinate j

Re: Line numbers for soft-wrapped styled text?

2017-03-29 Thread hh via use-livecode
> Jim L. wrote: > Just set the liststyle of the field that contains your editable text to > ‘decimal’. Then the lines will be automatically numbered and outdented. > Yet conveniently, the ’text’ and the ‘styledtext’ runs will not ‘contain' > the numbering since it is a styling. Now I finally under

Re: Transparent Images in LC

2017-03-30 Thread hh via use-livecode
Yes, I also have seen this sometimes when special kinds of alphachannel (flattened/premultiplied/postmultiplied) were used in the PNG to import. Nevertheless the following 'standard' import script works for me nearly always in LC 6/7/8/9: on mouseUp set the paintcompression to RLE if there is

Release 9.0.0-rc1

2017-03-31 Thread hh via use-livecode
I can't sleep. The new LC 9.0.0-rc1 features make me crazy. Close to infinity. Converting all my stacks since two hours. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscript

Re: Line numbers for soft-wrapped styled text?

2017-04-01 Thread hh via use-livecode
> Alex T. wrote: > I set out to optimise the 'visibleLineNumber' function, and succeeded > in getting it down to approx 20% of the original version, by: > - reduce from 2 to 1 height calculations per iteration > - convert from recursive to iterative > - use Newton-Raphson style linear interpolation

Re: Line numbers for soft-wrapped styled text?

2017-04-02 Thread hh via use-livecode
Alex, a brilliant technique. It is certainly usable for other "searching" tasks. And it simply needs for this use case a faster measurement-method as input. We could try the selectedLoc: The script below gets for me the exakt topLefts of the visible ones of 2 "worse case"-lines in < 1 second,

Re: New Features?

2017-04-03 Thread hh via use-livecode
Interesting thread about scalefactor (lower half is your issue): http://runtime-revolution.278305.n4.nabble.com/scaleFactor-strangeness-tc4697399.html#none >Dan F. wrote: >Anyone know where to write LC for a feature request? >In case your curious… Don’t know if it’s possible or not, but I want t

Re: Script to find bottom of lowest field

2017-04-03 Thread hh via use-livecode
on mouseUp put 20+maxbottom() end mouseUp -- note: invisible or hidden fields are included function maxbottom repeat with i=1 to the num of fields of this card put the bottom of fld i of this card into b[i] end repeat return max(b) end maxbottom __

Re: Negative Numbers and NumberFormat

2017-04-03 Thread hh via use-livecode
TMHO, this could be a feature request rather than a bug report. The zeros in the number format determine the num of characters and "-" is one. Also we have -0 = 0. So what about "-01:-00:-00" ?? > Bob S. wrote: > "-01:00:00"? > Yes I expected this. It's not that I cannot work around it, > it's ju

Re: Negative Numbers and NumberFormat

2017-04-03 Thread hh via use-livecode
> Bob S. worte: > I have a function for calculating the difference in time Then you mean -(01:00:00) and not (-01):(00):(00), quite different. AFAIK most languages do such time evaluations as follows 1) compute the time in seconds, 2) convert its absolute value to time format, and 3) if negative,

Re: Negative Numbers and NumberFormat

2017-04-04 Thread hh via use-livecode
>>> Bob S. wrote: >>> You should rather say the number format determines the num of DIGITS. >> hh wrote: >> That's what you wish to have (good idea). But it's not like that, its >> the length of the number as string. > Bob S. wrote > Really? Then why does : > set the numberformat to 0.0; put -.

Re: [ANN] Release 8.1.4 RC-1

2017-04-04 Thread hh via use-livecode
> Panos M. wrote: > Dear list members, > We are pleased to announce the release of LiveCode 8.1.4 RC-1. Bugs fixed (among others): Lock cursor works again ... Layering is correct again ... The formattedRect works now also for 16 bit coords ... Thank you very much LC-team, especially for that! _

Re: Standalone Magnify Problem

2017-04-06 Thread hh via use-livecode
> Peter R. wrote: > I have it working fine when I'm in the development environment > but it's not working reliably in a standalone app. a) Did you already check to have the same paintcompression in both environments? b) If you make such large images (why?) you may get a conflict with the 8bit-co

Re: Negative Numbers and NumberFormat

2017-04-06 Thread hh via use-livecode
You forgot to give examples for Bob's original problem? The negative numbers ... ;-) > Paul D. wrote: >> put format("$%0.2f",tMoney) into msg >> >> for tMoney = 5.55, you get $5.55 >> for tMoney = 5.3, you get $5.33 >> >> want a space between the $, then use >> put format("$ %0.2f",tMoney)

<    1   2   3   4   5   6   7   8   9   >