Re: SVG to image

2018-09-16 Thread hh via use-livecode
BoundingBox widget / Compile iconPath to image The real point that came up here is how to get the bounding box of an SVG path that is used as iconPath of the svgIcon widget. With that it is simple to prepare the path as input for

Re: SVG to image

2018-09-16 Thread hh via use-livecode
There is a problem with transparency in the result of drawingSVGcompile that my "cropIt" should remove: While an importer via javaScript (SVGHandles89 uses javaScript) removes the transparency from the data, it does it not with the result of drawingSVGcompile probably it doesn't use numToByte(0)

Re: SVG to image

2018-09-16 Thread hh via use-livecode
eturn "" & \ "http://www.w3.org/2000/svg; & "" & \ " xmlns=" & "http://www.w3.org/2000/svg; & "" & \ " version=" & "1.0" & "" & \ " width=&qu

Re: Calendar widget again...

2018-09-14 Thread hh via use-livecode
Add in http://forums.livecode.com/viewtopic.php?p=129713#p129713 to the card script: on mouseUp put the clickText into cT if cT is a number and cT < 31 then put "day: " & cT & \ "month: " & the label of btn "month" & \ "year: " & the label of btn "year" end if

Re: Calendar widget again...

2018-09-14 Thread hh via use-livecode
Klaus, honestly, if you never worked with LCB then you better use one of the many LC Script versions, for example http://forums.livecode.com/viewtopic.php?p=129713#p129713 (you can switch Mo or So week start there). To get more than display functions of 1-3-6-12 months is, based on that,

Re: Slow LC 9 Performance - Test Stack, Video, QA Report

2018-09-11 Thread hh via use-livecode
As to speed comparisons with LC 9: Compared to LC 8, LC Builder of LC 9 has an increase of 50-120% in speed. (Seen with timings when creating an LCD-scroller widget and an image widget). ___ use-livecode mailing list use-livecode@lists.runrev.com

Re: Slow LC 9 Performance - Test Stack, Video, QA Report

2018-09-06 Thread hh via use-livecode
Curry, sorry I overlooked the post with your download link > http://curryk.com/showdown.zip This is a *fine* comparison stack. You could think about adding for LC 8/9 a browser widget and in handler "work done", instead of copying to the clipboard, set htmltext of widget "browser" to the cJS

Re: Slow LC 9 Performance - Test Stack, Video, QA Report

2018-09-06 Thread hh via use-livecode
How did you do the JavaScript (in browser?) and how did you do the timing? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Sample Stacks

2018-09-06 Thread hh via use-livecode
Was "ANN: LC Documentation Cache Cleaner" Jacques LG wrote: > We can upload zip files to Sample Stacks? ... No. But you can, of course, use a stack container for zips. I once uploaded a simple version: http://livecodeshare.runrev.com/stack/805/ZipContainer "Sample Stacks" had an update before

SVGHandles89_v100

2018-09-02 Thread hh via use-livecode
Just uploaded SVGHandles to "Sample Stacks". This is a group of handles that is attachable to a SVG display. All you have to do (after copying the group to your stack): send "setTarget " to group "hhSVGPoly" The field's name will usually end with ".svg" and contain any valid SVG source. The

ImageHandles_v105

2018-09-01 Thread hh via use-livecode
Just uploaded hhImageHandles to "Sample Stacks". This is a group of handles that is attachable to any image. All you have to do (after copying the group to your stack): send "setTarget " to group "hhPoly" Base position of the 9 handles (use a monospaced font): ### ##

Re: Missing function selectedWords/selectedTrueWords

2018-08-31 Thread hh via use-livecode
You could try: on mouseUp put the selectedChunk into sc put word 2 of sc into strt put word 4 of sc into stp put fld word 7 of sc into txt put selectedWords(strt,stp,txt) into fld "out" end mouseUp function selectedWords strt,stp,txt put the num of words in char 1 to strt of txt into

Re: How to get word offset all instances of a string in a chunk of text?

2018-08-30 Thread hh via use-livecode
> Alex T. wrote: > > put 0 into tOffset > repeat for each trueWord W in tSource >add 1 to tOffset >if W = myWord then > put tOffset & comma after tOffsetList >end if > end repeat This is (whether trueWord or word chunks used) probably the fastest method for an offset counting

Re: How to get word offset all instances of a string in a chunk of text?

2018-08-30 Thread hh via use-livecode
For a more general context see http://www.runrev.com/pipermail/use-livecode//2004-February/032280.html Sadly LC 9 is at about 10 times slower than LC 6 with such fast scripts. For example LC 6.7.11 needs at about 500 ms to evaluate a 1 MByte string, LC 9.0.0 needs at about 5 seconds.

Re: What do we know about LC 10?

2018-08-29 Thread hh via use-livecode
> Tom G. wrote: > What do we know about whats coming in LC 10? > I'm assuming big improvements to widgets and LC builder. Still waiting for big improvements to widgets and LC builder for LC 9 ... Increasing the version number alone doesn't improve the net content (= gross content - fixes of

ImageStatistics_v100

2018-08-28 Thread hh via use-livecode
ImageStatistics_v100 is a very fast computation of the color-values distribution of an image for each of the R/G/B-channels and the 'mean channel' (= grayscaled image). You get the raw data and select for the display the number of bins (one of 2, 4, 8, 16, 32, 64, 128, 256) for the values range

LC-ImageToolbox_v185

2018-08-26 Thread hh via use-livecode
LC-ImageToolbox_v185 adds Color-Dithering which does a 1-Bit-Dithering for each of the R-G-B-channels (1-Bit-Methods: Atkinson, Burkes, Floyd-Steinberg, Javis-Judice-Ninke, Sierra-twoRow, Stucki). For more info see http://forums.livecode.com/viewtopic.php?p=170620#p170620 > Alejandro T. wrote:

LC-ImageToolbox_v180

2018-08-25 Thread hh via use-livecode
LC-ImageToolbox_v180 Version 1.8.0 adds a new feature to LC-ImageToolBox: Kuwahara filtering. The filter replaces each pixel with the mean value of the one of four overlapping subsquares that has minimal values variance. For more info see

LC-ImageToolbox_v175

2018-08-24 Thread hh via use-livecode
Added a new feature to LC-ImageToolBox: Quantile filtering. An x-Quantile is a generalized parameter of location of distributions with a percentage x. For example x=0 yields the minimum, x=50 the median, x=100 the maximum of the sample values. You can select the percentage x and a 'population

Re: filter list_of_files with REGEX xyz?

2018-08-17 Thread hh via use-livecode
This is already case-insensitive, but the period needs an escape: filter tList with regex pattern "\.*(jpe?g|png|gif)$" ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: Sender of send in time

2018-07-13 Thread hh via use-livecode
> Bob S. wrote: > Something in my scripts is sending a selectionChanged message in > time to a specific datagrid when it shouldn't. How do I determine > the sender of a send in time message? Simply use a a parameter: send "selectionChanged " to in where identifies the sender.

Re: Filed entry cursor

2018-07-01 Thread hh via use-livecode
This is a stack for making cursor images: http://forums.livecode.com/viewtopic.php?p=129211#p129211 You can set the color, size and transparency of the cursor image. Don't forget to set the hotspot adjusted to the cursor's size. Just copy your cursor image to your stack and set the cursor (or

Re: bitwise shifts gone?

2018-06-30 Thread hh via use-livecode
Mark, obviously you ask relating to Bob's IPv4 sort problem. But when optimising (for speed) the connected formula (1) a + b * 2^8 + c * 2^16 + d * 2^32 using the constants is slightly faster: (2) a + b * 256 + c * 65536 + d * 16777216 Why is the engine not handling the internal bitshifts

Re: Sort IP List

2018-06-30 Thread hh via use-livecode
Remains to remark that the upcoming standard IPv6 with its text representations (Section 2.2 of https://tools.ietf.org/html/rfc4291) will require more detailed methods, both for number base conversion and for item sorts/cosorts (the items are hex numbers ...) @Bernd Depending on the function an

Re: MouseMove and HTML5

2018-06-30 Thread hh via use-livecode
MouseMove works in HTML5 standalones, see for example http://hyperhh.de/html5/RGBPuzzle-8.0.2X.html ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Tessellated hexagonal grid?

2018-06-29 Thread hh via use-livecode
A simple hexagonal grid creating stack: http://forums.livecode.com/viewtopic.php?p=168657#p168657 You choose the number of rows and columns and, for "scaling", the horizontal radius and vertical radius of the circumellipses. ___ use-livecode mailing

Re: Sort IP List

2018-06-29 Thread hh via use-livecode
Your IP addresses [0-255].[0-255].[0-255].[0-255] are the hex IP numbers converted to base 256. So you may try the following sorting function that converts the IPs from base 256 to base 10 (decimal). function ip2dec x set itemdel to "." repeat with i=0 to 3 add (item 4-i of x)*256^i to y

Re: Grabbing a widget

2018-06-27 Thread hh via use-livecode
> Klaus wrote: > ... any opinion to the funky behaviour I experienced? Sorry, I overlooked that you are using LC 9. With LC 9 in edit mode the SVG widget is here moved with the mouse even without any script. ___ use-livecode mailing list

Re: Grabbing a widget

2018-06-27 Thread hh via use-livecode
A widget is not an ordinary control. It is the widget that has to generate messages for user's interaction. So the widget's author decides whether you can grab it or not. See the still actual discussion from 2015 here: http://forums.livecode.com/viewtopic.php?p=126208#p126208

Re: Tessellated hexagonal grid?

2018-06-27 Thread hh via use-livecode
Here a rather complete guide to the "theory" with a link to implementation guides for several programming languages, especially, close to LC, JavaScript. https://www.redblobgames.com/grids/hexagons/ ___ use-livecode mailing list

Re: Optimization can be tricky

2018-06-12 Thread hh via use-livecode
The scenario Geoff described is roughly to get the top ten (a handful) of 2000 records comparing a certain numeric value of each. To get that unknown value of each one has to go once through all the records *and then sort* for that ranking. (LiveCode is very fast with a simple numeric sort!) Any

Re: Optimization can be tricky

2018-06-12 Thread hh via use-livecode
Sorry, I forgot to mention Jerry who already proposed to pull out computations from the inner loop and also to use variables in the inner loop. My experience says to avoid getting items as often as possible. And to use the random() in the inner repeat loop instead of in the final sort may be worth

Re: Optimization can be tricky

2018-06-12 Thread hh via use-livecode
You could try the following: repeat for each key T in interestArray[uID] put item 1 of interestArray[uID][T] into i1 put item 2 of interestArray[uID][T] into i2 repeat for each line S in storyArray[T] put userSeenArray[uID][item 1 of S] into s1 put abs(item 2 of S - i1) into s2

Re: Copying Text from Field In HTML5 app?

2018-05-21 Thread hh via use-livecode
> John P. wrote: > I have a little HTML5 project that creates some text data in a > card field. I would like to let my user copy the text created in > this field out the HTML5 app so that they can paste it into a > spreadsheet in order to manipulate it. > Can this be done using an HTML5 app? You

LC ImageToolbox_89_v170

2018-05-21 Thread hh via use-livecode
Uploaded an enhanced version of LC-ImageToolbox that has Matrix (Convolve up to 7x7) and ColorMatrix available. This does here on a medium fast machine (2.5 GHz Mac mini) a 5x5 convolve (e.g. Laplace filter) for a 1920x1080 image using LC 8 in 1 second, using LC 9 in 850 millisecs! You can

Re: Web fonts

2018-05-21 Thread hh via use-livecode
> Peter B. wrote: > Crazy question, but is it possible to use a web font within a > internet-connected LiveCode application? Of course in a browser widget, but not for use in other LC objects. ___ use-livecode mailing list use-livecode@lists.runrev.com

Re: Sean?

2018-05-08 Thread hh via use-livecode
is worth more than money. Perhaps we should create kind of a LC-developer-fund for emergency help? Lagi would be the right person to manage such a fund. I would ask everybody who uses (commercially) one of my widgets etc. to donate to such a fund, just now to the above sce

Re: Sean?

2018-05-08 Thread hh via use-livecode
is worth more than money. Perhaps we should create kind of a LC-developer-fund for emergency help? Lagi would be the right person to manage such a fund. I would ask everybody who uses (commercially) one of my widgets etc. to donate to such a fund, just now to the above sce

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

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

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

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:

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

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

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

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,

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

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

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

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 into

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

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

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

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

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: LiveCode Widget Factory

2018-02-22 Thread hh via use-livecode
uot;cross-platform-native" widget? One beyond a "Hello " example? > BTW HH, thanks for the LBC property sample app you did, it was helpful. If you mean the Controlkit: It is free, cross-platform, and there are around 100 downloads. Who should live from 100 downloads? Probably it

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*

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

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

LC-Magick #12

2018-02-16 Thread hh via use-livecode
k is "pure" LC Script and runs with LC 6/7/8/9 on Mac/Win/linux. = The LC-Magick Collection. LC-Magick #12 - Before-After-Image (hh) http://forums.livecode.com/viewtopic.php?p=164067#p164067 LC-Magick #11 - Reflect

LC-Magick #11

2018-02-13 Thread hh via use-livecode
or bottom) and the percentage of the image to be mirrored. = The LC-Magick Collection LC-Magick #11 - ReflectImage (hh) http://forums.livecode.com/viewtopic.php?p=163935#p163935 LC-Magick #10 - Color Tonality Curve

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

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

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/

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

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" ___

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

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

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

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

Re: Pasting tabs into Excel

2018-02-03 Thread hh via use-livecode
Possibly this is not LC but an Excel update that changed Excel's default delimiter from tab to comma. Does comma as delimiter work? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage

Re: any tricks to make SHELL non blocking?

2018-02-02 Thread hh via use-livecode
> Way cool, dude! > Voll krass, Alter! :-) Yes. I once was also a young man with curly hair -- like you. are now ... ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: any tricks to make SHELL non blocking?

2018-02-02 Thread hh via use-livecode
> Klaus wrote: > ... it WORKS, thanks a lot! How could you doubt that!? :-( I never post things that I didn't test thoroughly, learned that from 'bn'. In this case I looked into the script of my next Mac/Win/Linux/Raspi-stack "timeLapseCamera" which runs since four days without problems. I have

Re: any tricks to make SHELL non blocking?

2018-02-02 Thread hh via use-livecode
This is non-blocking: put tCommandLineUtility && q(tGeneratedFile) into p0 open process p0 for neither -- no need to close that Don't use quotes for the utility. You have no feedback with that. That's the advantage of shell. > Klaus M. wrote: > Hi friends, > I have a command line utility which

ControlKit and widget "hhControls" v1.0.2

2018-02-01 Thread hh via use-livecode
r downloading the widget and a demo stack use the [b]hh-widgets-un-installer[/b] from "Sample Stacks" of the LC toolbar (or http://livecodeshare.runrev.com/stack/842/ ) For an easy build of the controls I made moreover a CONTROLKIT, see "Sample Stacks" (or http://l

Re: "clear" a command?

2018-01-26 Thread hh via use-livecode
Klaus wrote: ... I only looked for "clear". You never used that? This is a symptom for ... (forgot the name of that disease). ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: "clear" a command?

2018-01-26 Thread hh via use-livecode
According to dictionary: "clear chunk" is a synonym to "delete chunk". ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: problem with fullscreen option on HTML5 apps

2018-01-25 Thread hh via use-livecode
"Fullscreen" never worked for me (other than getting a scaled display). It was probably not reported since HTML5 deployment is still experimental (means: It's easier to list what's working than what's not working). > T.J. wrote: > I’ve been trying out the fullscreen option (via the checkbox on

Re: mobile: pick image without importing?

2018-01-24 Thread hh via use-livecode
Of course sandboxed files only. Getting file locations (or listings) outside of that is violating privacy. Who is interested in that? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage

Re: mobile: pick image without importing?

2018-01-24 Thread hh via use-livecode
> Do we have a way to obtain a file path for an image on mobile? > I see mobilePickImage, but it insists on importing a copy of the > image, and what I'm really after is a reference to the image file. Why not set the defaultFolder and use "the files"? Or use the files()?

Re: LC Toolbar

2018-01-24 Thread hh via use-livecode
> TMHO it is a feature. Another comfort way to bring LC to front: > Click on a pixel between the toolbar sections (I use "Toolbar Text" only). > > ** 1. You have the option to hide the "Toolbar": > > [a] by script: hide stack "revMenubar" > [b] use Menu View: uncheck "Toolbar Text" and uncheck

Re: LC Toolbar

2018-01-24 Thread hh via use-livecode
TMHO it as a feature. Another comfort way to bring LC to front: Click on a pixel between the toolbar sections (I use "Toolbar Text" only). ** 1. You have the option to hide the "Toolbar": [a] by script: hide stack "revMenubar" [b] use Menu View: uncheck "Toolbar Text" and uncheck "Toolbar icons"

Re: OT - What linux do you recommend for older PCs?

2018-01-23 Thread hh via use-livecode
machine running with Mint-Cinnamon. But I work with LiveCode only on Mac or Win. Whenever I make a widget or use widgets I try for several hours to arrive at workarounds for the linux version. Only that is a lot of pain -- the upper limit for me. >> hh wrote: >> [netbook] ... The problem is

Re: OT - What linux do you recommend for older PCs?

2018-01-23 Thread hh via use-livecode
Matthias, sometimes I use a nearly identical netbook (for example when there is not enough space for a modern laptop). I had installed Lubuntu for several months. That *OS* is optimally suited for such a netbook. But I removed it. Why? The problem is LiveCode: The Linux version of LiveCode has

Re: how to refer to a custom prop that is a multidimensional array

2018-01-22 Thread hh via use-livecode
> N.C. wrote: > What should I be doing? There is a good tutorial Step-By-Step Guides To Tasks In LiveCode - Custom Properties http://lessons.livecode.com/m/4071/c/16763 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url

Re: Identifying empty lines of text

2018-01-12 Thread hh via use-livecode
> hh wrote: > You could try to use (respects UCI word boundaries): > if the num of trueWords in myString is 0 > Works here in LC 7 and later. Sorry: ICU - International Components for Unicode (not UCI). >> I use “the number of words in myString = 0” to test whether >>

Re: Identifying empty lines of text

2018-01-12 Thread hh via use-livecode
You could try to use (respects UCI word boundaries): if the num of trueWords in myString is 0 Works here in LC 7 and later. > I use “the number of words in myString = 0” to test whether > a line of text appears empty, since I want a line with only > space characters to be understood as empty. >

Re: LC Global schedule is online

2018-01-11 Thread hh via use-livecode
Great. Although the speaker "TBA" with always the same subject "Apply to speak" will be a bit boring ... ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

TextEditWidget-Basic v0.9.9

2018-01-10 Thread hh via use-livecode
This is a still very basic TextEdit widget for LC 8 (8.1.5 and later). >From several reasons I don't publish a LC 9 version of the widget. [The widget is the 'widget version' of stack "HHTextEdit-Basic".] It uses libbrowser and essential handlers of the browser widget source. It has NO

Re: Do widgets support introspection?

2018-01-09 Thread hh via use-livecode
> G.C. wrote: > Is there a way, given a widget, to find out programmatically what the > relevant properties of the widget are? Only the documented ones. Even the property inspector shows only the "user_visible" ones. The only possibility I can see is to scan the lcb file (if it is available).

Re: Local Image Paths in HTML for Browser Widget Fails

2018-01-08 Thread hh via use-livecode
Yet another option. For a *true* progress animation (no gif) use https://github.com/HubSpot/pace That's what I use with my HTML5 demo pages. For example (with a selfmade LiveCode theme) http://hh.on-rev.com/html5/SVG2PNG_HTML5-9.0.0-dp-4hhX.html Instead you could use your own logo for rotating.

Re: Let's rotate an SVG widget

2018-01-07 Thread hh via use-livecode
Maintain aspect ratio is for resizing the svg object when resizing the widget. What you want is probably that the widget resizes its rectangle *minimally* so that the size of the svg remains unchanged when rotating. That's not (yet) available in LCB. But you can compute the needed rectangle and

Re: Local Image Paths in HTML for Browser Widget Fails

2018-01-06 Thread hh via use-livecode
Yet another option. 1. Put ONCE the loader into a custom property on mouseUp answer file "input your loader.gif" if it is empty then exit mouseUp put base64Encode(url("binfile:")) into ii replace linefeed with empty in ii set the loader of this card to compress(ii) end mouseUp -- this

Re: text encoding problem Mac to iOS?

2018-01-06 Thread hh via use-livecode
I tested this as follows (what shows that all my presumptions are wrong): 1. Downloaded and installed in the IDE the default iOSFont SF from here ___https://developer.apple.com/fonts/ 2. Set the font SF Text Regular for both the field and the dataGrid header 3. Wrote Text (incl. umlauts) directly

Re: text encoding problem Mac to iOS?

2018-01-06 Thread hh via use-livecode
If the font you are using (may be some default) in the IDE 1. is not available in the standalone/simulator or 2. available in the standalone/simulator but not identical (only same names) then in both cases the standalone uses a font (in case 1 a fallback) for the datagrid that has obviously

Re: text encoding problem Mac to iOS?

2018-01-06 Thread hh via use-livecode
You use the clipboard with different objects. These objects may have different default font settings and different default text encodings. And these default fonts may have different sets of glyphs missing. Possibly you mave have also to encode the text that you paste. > lock the clipboard > set

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