Re: Question for LCB FFI workshop attendees at upcoming conference

2019-05-07 Thread hh via use-livecode
> > Matthias R. wrote: > > Are the workshops also available through Simulcast or are they "offline"? > > Would be great even if only watching would be possible w/o interaction, > > but i am afraid they aren´t, right? > > Trevor D. wrote: > I don’t know the answer to that. I’m not sure what is

Re: Browser widget - is there something similar to browserBeforeNavigate

2019-05-06 Thread hh via use-livecode
The problem is that you cannot cancel the page navigation in the widget, not even by using simple JavaScript (unbeforeunload). Find below instead a way to "revert" the navigation. If you don't want to hide the widget you can similarly use two widgets and change their layer. Or you can show a

Re: Some questions about Browser Widget + Spinner Widget

2019-05-04 Thread hh via use-livecode
Forgot to mention: There is also a post "Browser widget and loading animation" http://forums.livecode.com/viewtopic.php?p=173867#p173867 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and

Re: Some questions about Browser Widget + Spinner Widget

2019-05-04 Thread hh via use-livecode
> Matthias R. wrote: > ... force the browser widget to go to a previous page besides using "go in widget" make your own history, see http://forums.livecode.com/viewtopic.php?p=174936#p174936 > Matthias R. wrote: > ... i cannot layer the spinner over the browser widget. > Is there a way to do

Re: button ICON

2019-04-22 Thread hh via use-livecode
As Phil said, but don't set the text of the (empty) image used as icon of the button but set the filename of the image. The icon will change accordingly. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe,

Re: Browser HTML Source & URLs

2019-04-18 Thread hh via use-livecode
: > > I thought it was the source code originally too, > > but it doesn’t work correctly. > > hh wrote: > put the htmltext of widget "browser" into field 1 > > If you don't mean the htmltext but the *generated* htmltext then you > have to use

Re: Browser HTML Source & URLs

2019-04-17 Thread hh via use-livecode
> Rick H. wrote: > I am able to load the browser widget with a URL > and go to the URL successfully. > > I can get the HTMLtext of the page I have browsed to just fine. > What I have yet to do is to get the page source code of the page > I have browsed to in LiveCode into a field. The htmltext

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread hh via use-livecode
-- Converts a simple table field with tabstops to a html http://lists.runrev.com/pipermail/use-livecode/2019-March/253271.html ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: Browser selections

2019-04-08 Thread hh via use-livecode
(Getting the selection of a browser widget: Aee my previous post). Setting the selection of a browser widget: Assume you have an element click me in your webpage. Then the following selects char 1 to 4 of the link text (= "clic"). on mouseUp put "var node =

Re: Browser selections

2019-04-08 Thread hh via use-livecode
> Is there a way to get/set selected text in a browser widget? > I couldn't find anything. Why is the LC Builder forum not among your search places? With LC Script: No. With JavaScript. Yes. http://forums.livecode.com/viewtopic.php?p=174936#p174936

Re: hhDate gone?

2019-04-02 Thread hh via use-livecode
Bill, nothing changed. And here it still works with the latest LC 9. http://livecodeshare.runrev.com/stack/903/DatePicker89_v108 Did you check that it is installed with the Extension Manager? ___ use-livecode mailing list

Re: Browser layering

2019-04-01 Thread hh via use-livecode
> Brian M. wrote: > May be able to take a screen shot, show it, hide the real browser, > show the tree widget. That does require that the browser contains > something static and user can’t interact with the browser while the > tree is visible. This is probably the easiest solution. But problems

Re: Anchor links in browser widget

2019-04-01 Thread hh via use-livecode
> JLG wrote: > If you load the htmltext from a file on disk, the URL is set to > the file path and it will respond to an anchor link sent via script. > This is probably the most viable solution since I can write the text > to disk first and then load it. The browser widget does the following

Re: Anchor links in browser widget

2019-04-01 Thread hh via use-livecode
> JLG wrote: > I may need to go back to the revBrowser implementation, since > layering isn't working with the widget anyway and internal links > aren't reliable. The browser widget needs some time after a "reloading" (setting the htmltext in your case). set htmltext of widget "browser" to empty

Re: Bud: crash with widget popup

2019-03-30 Thread hh via use-livecode
Your syntax is wrong (see dict), "footer" is not a widget kind. Try this: popup widget "com.livecode.widget.paletteactions" at the mouseloc Nevertheless the wrong syntax should result in an error, not in a crash. Please report to https://quality.livecode.com

Re: Bud: crash with widget popup

2019-03-30 Thread hh via use-livecode
popup widget works here in LC 8/9 without problems. What is your crashing line(which widget)? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: What is Macintosh equivalent of relaunch handler?

2019-03-30 Thread hh via use-livecode
To summarize some of the previous advices and to show beginners how easy it is to use applescript: -- begin commandline osascript -e 'tell application "LiveCode" activate do script "put the internet date" end tell' --end commandline (include the last char which is cr)

Re: [ANN] Release 9.0.4 RC-1

2019-03-29 Thread hh via use-livecode
Thanks for closing all these (hidden) memory leaks. I had the first time in LC 9 no crash of LC when working several hours with CPU/GPU-stressing scripts. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe,

Re: LC and Raspberry PI

2019-03-27 Thread hh via use-livecode
RaspberryPi has an own subforum http://forums.livecode.com/viewforum.php?f=76 For Raspi special interfaces use (the fastest) LC 6.5.1 and the python libraries via shell. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url

Re: goofy question about "repeat for each"

2019-03-25 Thread hh via use-livecode
> Jerry J. wrote: > "Starting in version 7.0 it is possible to modify the container > variable inside a for each loop without affecting the iterations > of the loop." > >> jbv wrote: >> repeat for each line j in cc >> add 1 to item 1 of j >> put return & j after var2 >> end repeat You can't

Re: Fastest Frame Rate?

2019-03-23 Thread hh via use-livecode
That's why "tick" is 1/60 seconds ... A native display (as a browser widget in LC) or a browser (as Colin used) may be a good test object. See also https://www.testufo.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this

Re: ANN: Script Editor Refactoring Support

2019-03-22 Thread hh via use-livecode
> Mark Wieder wrote: > Thanks to a suggestion from Mikey, the refactor plugin has been removed > from SampleStacks/LiveCodeShare and now lives at > https://github.com/mwieder/revRefactor What's the purpose of such a move? ___ use-livecode mailing list

Re: ANN: Script Editor Refactoring Support

2019-03-20 Thread hh via use-livecode
So useful and so clever made ... 5/5 stars! > Mark Wieder wrote: > Uploaded to LiveCodeShare: > http://livecodeshare.runrev.com/stack/934/revRefactor ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe,

Re: A Question about Ask File

2019-03-20 Thread hh via use-livecode
Create a *full* filePath. For example: ask file "Save as:" with imagePath("export",".png") function imagePath f,x put the effective filename of this stack into p set itemdel to slash put 0 into z put f into last item of p repeat while there is a file p add 1 to z put f into

Re: Browser widget and downloading of files

2019-03-20 Thread hh via use-livecode
> Tore N. wrote: > Are there any ways to start a download of a file via a link in > the browser widget? It works fine in any other browser ... on browserUnhandledLoadRequest pURl -- do your thing with pURL, for example: -- use libURL for showing progress put url(pURL) into end

Re: who has experience with mp4 videos on windows?

2019-03-18 Thread hh via use-livecode
Why not use the future: HTML5 video tag, in a browser widget or a HTML5 standalone? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Drag-and-Drop with Desktop Files

2019-03-14 Thread hh via use-livecode
Hi, I use MacOS or linux (on Raspi only), never really worked with windows. I'm using Windows only to test my stacks/apps on the PC of my youngest son. Scripting Host-WScript can execute JScript, the MS-extension of ECMAScript. It has a lot of features. We probably can use a lot of these

Re: Drag-and-Drop with Desktop Files

2019-03-13 Thread hh via use-livecode
** Get selected files of the file manager (without user interaction like dragDrop) ** (I write the following such that also beginners can read it.) +++ [a] Solution for MacOS (tested to work on MacOS 10.14): (a1) Put the following in a field "myScript". # Full path of

Re: Ineffective lazy screenRect

2019-03-13 Thread hh via use-livecode
> > Richmond M. wrote: > > Had that happened initially I would not have started this thread. > Mark Wieder wrote: > I think there's a valuable lesson to be learned here. I'm not sure > what it is. I wrote also things to the use-list (mostly silly typos) I wished a few seconds later I could

Re: Statistics-Distributions_v105

2019-03-12 Thread hh via use-livecode
Roger, a side effect of my announcement is that also your "Coup de Graph" is seen which opens a much wider field of applications. (You didn't announce it here in the list!sss?) So the same thanks to you. Hermann ___ use-livecode mailing list

Statistics-Distributions_v105

2019-03-12 Thread hh via use-livecode
This tabulates and displays 20 distributions: binomial, hypergeometric, negativebinomial, poisson, arcsine, beta,cauchy, centralF, chisquare, exponential, gamma, invgamma, kumaraswamy, lognormal, normal, pareto, studentt, triangular, uniform and weibull. Uses jStat (

Re: Polygon Bug

2019-03-05 Thread hh via use-livecode
> Michael K. wrote: > >> Non-Opaque polygons block the mouse click, when their > >> lineSize is greater than 9. (This figure varies) > Hi hh, if you are a reg member of the bug site then please go > ahead and report it, because Im not. https://quality.livecod

Re: TabStops and Tab Spacings

2019-03-05 Thread hh via use-livecode
> Roger G. wrote: > Is there any way to export myFld to URL and retain the Tab spacings > 15,250,320 ? > ... > I’m working with rtfText instead of HTMLText. (Again, not sure if that makes a > difference or even what the trades are of each). RtfText is, without a large JavaScript library,

Re: TabStops and Tab Spacings

2019-03-04 Thread hh via use-livecode
Last trial. Typos removed and tested to work. Sorry for the previous faulty version, it's too late here. -- Converts a simple table field with tabstops to a html -- [-hh fecit, Mar 2019] on mouseUp put the htmltext of fld 1 into ht put the effective textSize of fld 1 into fs put

Re: TabStops and Tab Spacings

2019-03-04 Thread hh via use-livecode
To avoid misunderstandings here again the (correctly displayed) code: -- Converts a simple table field with tabstops to a html -- [-hh fecit, Mar 2019] on mouseUp put the htmltext of fld 1 into ht put the effective textSize of fld 1 into fs put the tabstops of fld 1 into tStops put

Re: TabStops and Tab Spacings

2019-03-04 Thread hh via use-livecode
The itemdel (that was translated from html in my last post to a tab) is the htmlCode of tab: numToChar(38)&"#9;". ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Re: TabStops and Tab Spacings

2019-03-04 Thread hh via use-livecode
Using the htmltext or the rtfText will not work: They contain the tabs but NOT the tabspacing. You could try the following, it works for me. Make a browser widget with the width of your table field = fld 1. -- Converts a simple table field with tabstops to a html -- [-hh fect Mar 2019

Re: Bug with polygons

2019-03-01 Thread hh via use-livecode
Yes. I have it too here, in LC 9.0.2 and LC 8.1.10. Did you already report the bug? Currently we could use as a workaround to disable the graphic, from the message box, for simple scenarios. And set the foreColor of it to have a full color. > Michael K. wrote: > Non-Opaque polygons block the

PDFViewer_v100

2019-02-27 Thread hh via use-livecode
Just updated PDFViewer (uses parts of pdf.js, see https://github.com/mozilla/pdf.js ). Use it if you can't/won't rely on the user's PDF-plugin. Download PDFViewer_v100 from "Sample Stacks" or http://livecodeshare.runrev.com/stack/916/ Current features: * Switch to prev/next/any page of the

Re: SVG icons in buttons

2019-02-27 Thread hh via use-livecode
> BR wrote: > though I just discovered that if you group the widget, by itself, in > does accept the graphic effects. Was the first time published by Jeanne DeVoto: http://lists.runrev.com/pipermail/use-livecode/2016-October/232259.html after a question of BR in the use-list ...

Re: SVG icons in buttons

2019-02-27 Thread hh via use-livecode
The corresponding versions that use JavaScript (from midth 2017) use the full SVG power of a browser and store the SVG as a property of the image. And then they convert (very fast) the SVG again to the image whenever the image is resized. This doesn't need any additional space if you already use a

Re: SVG icons in buttons

2019-02-27 Thread hh via use-livecode
That's a fake, as long it is called "SVG"-Icons. These are ordinary images, converted from SVG, no longer SVG objects. Also the import is not a real SVG import but an import of the converted image. This is fine, but we shouldn't name these objects "SVG" as they are ordinary images in the stack.

Image "Size"

2019-02-21 Thread hh via use-livecode
Release 9.0.3 RC-1: Thanks Panos (especially) for your work of the last months. The "size" field for images disappeared a while ago and is now back. TMHO the name "size" may be misleading. It is = not the size = (width, height) of the image, = not the size of the raw data

Re: scrCopy BlendMode

2019-02-21 Thread hh via use-livecode
of the CSS art, especially chapters 9-10 (and look forward to the promised CSS widget) https://drafts.fxtf.org/compositing-1/ > Beat C. wrote: > As for info about blendmodes, hh wrote : > > https://en.wikipedia.org/wiki/Blend_modes > > I had seen this site, but was wondering abo

Re: SVG widget and grab me command

2019-02-21 Thread hh via use-livecode
> Tore wrote: > Since my student does not need any handlers (in fact would not > want any handlers added to the widgets) ... That's exactly why I wrote ControlHandles: The approach doesn't change any property of a control/widget. Your approach does (grouping, scripting) ...

Re: SVG widget and grab me command

2019-02-21 Thread hh via use-livecode
Widgets are not ordinary controls. So this is not a bug, rather a missing feature (the widget author will have to implement an own "grab"-handler). The widget passes mouseDown but not in a way that "grab" can be used. MouseMove isn't passed (=> not usable) at all. You could try "ControlHandles89"

Re: LC902 and LC901 Hang with Answer (was Crash)

2019-02-20 Thread hh via use-livecode
Each and every MacOS 10.x.0 and 10.x.1. Even Windows 10 is closer to "stable" than these "first" versions. > Bob S. wrote: > Really? Which ones? > > hh wrote: > > * People are updating their OS without denoting it (for example > > some MacOS versions a

Re: LC902 and LC901 Hang with Answer (was Crash)

2019-02-20 Thread hh via use-livecode
All LC 9 versions have some serious problems, especially memory problems with widgets. But we should have also the following possible reasons for "malfunctions" of LiveCode in mind. * People are updating their OS without denoting it (for example some MacOS versions are highly unstable). This

Re: Old Rev stack feature / view ...where is it in LC 8

2019-02-20 Thread hh via use-livecode
> GlenB. wrote: > I found the problem...in my Indy Version 8.0.0 DP4 there is > no image library under the development menu?? In LC 6.7.6 > there is. So why isn't there one in LC 8.0.0? Lost in space? Only the sky is the limit for LiveCode ... ___

Re: scrCopy BlendMode

2019-02-20 Thread hh via use-livecode
1. If you quote the modes then it works. set the ink of img "DSC03103.jpeg" to "srcCopy" 2. The bitmap modes are no longer supported in LC 9. This is reported in several of the release notes. Probably they are still listed to allow legacy stacks (LC 6/7/8/9). 3. For example:

Re: widget browser

2019-02-19 Thread hh via use-livecode
Two basic ways: set the url of widget "Browser" to "https://duckduckgo.com; set the htmltext of widget "Browser" to "Hello" If these two work, the problem is your html file. To open a local file drag its icon to the url field of the widget in the property inspector. Then you see the correct

Re: Widget TurnImage89_v135

2019-02-12 Thread hh via use-livecode
> Roger E. wrote: > If the rotate speed also included "0", this could be used to display > the same card, or the same video as SBS (side-by-side). That would > make it possible to create SBS apps for use on phones in a VR headset. If I understand correctly what you mean: In the turnImage-sample

Re: Replacing GlobalNames with Global Values

2019-02-11 Thread hh via use-livecode
> Roger G. wrote: > Let’s say that I have 3 globals: > gGlobal1 = 10.1, gGlobal2 = 20.2 and gGlobal3 = 30.3 > I have an expression like gGlobal1*gGlobal2/gGlobal3 > I want to transform this to the expression 10.1*20.2/30.3. As everything in LC is a string: put gGlobal1 &"*"& gGlobal2 &"/"&

Widget TurnImage89_v135

2019-02-11 Thread hh via use-livecode
While making another example stack for the TurnImage widget I missed some features and added them to the widget. So we have now in version 1.3.5: (1) The two images are now also saved with the widget. (2) The sometimes appearing stripes when animating are gone. (3) The rotation axes can

Re: Android SDK

2019-02-10 Thread hh via use-livecode
> Richmond wrote: > because LiveCode seems unable to "see" my User/library folder. A simple way that you (and LiveCode) can see the Library Folder: Select your home folder in the finder. Hit cmd-J (= View >Show View Options) and check "Show Library Folder".

Re: Weird LiveCode Plugins Prefs writing problems

2019-02-08 Thread hh via use-livecode
Bill, I had severe problems when starting with MacOS 10.14. As I know now these were mostly permission problems. The Apple security hystery may help to that. I still have some files of zero size that are not deletable and change their name. I think this is caused by MacOS. But meanwhile I'm

Re: Widget TurnImage89_v100

2019-02-07 Thread hh via use-livecode
Bill, the installer button should work, did you use an earlier stack? The widget is not downloaded by the installer button but is a custom property of the downloaded stack: ** You have to download the sample stack for each new version. ** Sorry, as soon as the "widgets store" works I'll use that.

Re: Widget TurnImage89_v100

2019-02-07 Thread hh via use-livecode
The widget has a huge background or transparency, needed for the turns and rotation. So I added a "clickedInTransparency" message that you can use, see tab "Custom" of the property inspector for an example script. Deinstall the old version and download version 1.1.0 from the sample stack, still

Re: LiveCode Builder language Library Tutorials

2019-02-07 Thread hh via use-livecode
> Al wrote: > Where could I find Tutorials for creating LCB Libraries > (not widgets)? https://livecode.com/topic/creating-an-lcb-library/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and

Memory leaks

2019-02-06 Thread hh via use-livecode
>> hh wrote: >> ... the browser widget is still memory leaking when using JS > > Brian M. wrote: > I don’t think that leak is browser widget specific. I was able to reproduce > the effect of increasing memory usage with the tree view widget, but much > more slowly.

Re: Widget TurnImage89_v100

2019-02-06 Thread hh via use-livecode
I tested now more intensive the widget with LC 9.0.2 on Win 7-10 and linux (Xubuntu 1604). It works as it should but I changed the (only partially working) sample stack: I had to rewrite the video grabbing loop so that the browser widget has no problems on windows and linux. Especially on

Re: Widget TurnImage89_v100

2019-02-06 Thread hh via use-livecode
> BR wrote: > Now, if I could only figure out how to use a series of images > instead of just two? You can set new images at any time, even during rotation. Setting an image needs at about 10 millisecs (the widget has to adjust its size). See the help at topright of the sample stack. The video

Re: Widget TurnImage89_v100

2019-02-06 Thread hh via use-livecode
nimage The same for my other widgets hermann.X Find the overview by tinyDictionary > LiveCode Builder > Search: hhturn or the names hh from (a). The recommended way to look at one of my widgets is: 1. Install the widget from the sample stack, then restart LiveCode. 2. Make a new stack, create a w

Widget TurnImage89_v100

2019-02-05 Thread hh via use-livecode
TurnImage is a pure LiveCode Builder widget, there is no essential script access and no use of JavaScript. The widgets lets you = turn an image horizontally or vertically with a 2D-perspective view, = switch from an image to a second image while turning or rotating. Thus it is essentially an

Re: weird video screenshot problem

2019-02-05 Thread hh via use-livecode
> This has nothing to do with LiveCode, is only influenced > by Windows and the user's graphics card. > > Did the user already try > Settings > Advanced settings > Let windows try to fix apps so > they're not blurry: ON ? > > You could also compare with system screenshots (win+print). Sorry,

Re: weird video screenshot problem

2019-02-05 Thread hh via use-livecode
This has nothing to do with LiveCode, is only influenced by Windows and the user's graphics card. Did the user already try Settings > Advanced settings > Let windows try to fix apps so they're not blurry: ON ? You could also compare with system screenshots (win+print).

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

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

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:

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

Re: IndyCam2_v100

2019-01-27 Thread hh via use-livecode
9.0.2 Indy. > hh wrote: > *** 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/9

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

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)

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

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"

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:

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

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

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

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

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

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

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.

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

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

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

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:

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

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

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

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

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

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

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,

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