Re: Checking the Milliseconds

2021-04-07 Thread Niggemann, Bernd via use-livecode
I tried this and got pretty constant results except for maybe the first ten iterations. I figured if you just jump in with the milliseconds you would not be at the "beginning" of the milliseconds and added a repeat loop to mitigate that effect. Furthermore I appended the result to a variable.

Re: Polygon fill algo?

2021-02-15 Thread Niggemann, Bernd via use-livecode
>Richard wrote >a way to coerce discontiguous polygon regions to always be filled? I assume you have set the opaque of the polygon graphic to true? Without "opaque" I do not get any filling, with "opaque" true it always fills Kind regards Bernd ___

Team-xAPI-in-LiveCode Update

2021-02-13 Thread Niggemann, Bernd via use-livecode
This url seems to work for the repository in xapi https://github.com/xapicohort/lib_LC_LMS_LTI Kind regards Bernd ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Re: Smooth scrolling

2021-02-05 Thread Niggemann, Bernd via use-livecode
> Trevor wrote > > On macOS it is simple enough to get the true scroll values from the scroll > event using NSEvent.scrollingDeltaX and NSEvent.scrollingDeltaY. It is > possible to get those values using LCB as demonstrated in the > mac_scroll_wheel.lcb extension that is included with the

Re: Is the DateFormat read only?

2021-01-31 Thread Niggemann, Bernd via use-livecode
Alex Tweedly via use-livecode Sat, 07 Nov 2020 07:29:15 -0800 I tested out the TimeZone library

Re: opened socket in IDE prevents script changes

2021-01-15 Thread Niggemann, Bernd via use-livecode
Hi Bernard, I have seen similar behavior of the apply button indicating "clean" when the script was "dirty"/had compile errors. That was without sockets. https://quality.livecode.com/show_bug.cgi?id=22555 maybe your problem is related Kind regards Bernd

Re: Trying to use the Segmented Control

2020-12-04 Thread Niggemann, Bernd via use-livecode
>Ralf Bitter wrote >See: https://github.com/revig/universal-button-widget/releases/tag/1.0.1 Thank you Ralf for this brilliant widget. Kind regards Bernd ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe,

Re: Script colorization not working

2020-11-18 Thread Niggemann, Bernd via use-livecode
panagiotis merakos via use-livecode Wed, 18 Nov 2020 13:28:22 -0800 Hello Devin, A rough

Re: Bug: jumping stack windows (when supress messages is off)

2020-10-11 Thread Niggemann, Bernd via use-livecode
Hi David, I am sorry, I did not look at the video. That is quite impressive. I have never experienced anything like that in the IDE. (LC 9.6.1 MacOS Mojave) Did you have a look at your plug-ins? Or have you tried to remove your preference file temporarily? Kind regards Bernd David Bovill

Re: Bug: jumping stack windows (when supress messages is off)

2020-10-10 Thread Niggemann, Bernd via use-livecode
Hi David, What I see on Mojave is that e.g. TextEdit or Safari show a similar behavior. Open 2 windows in TextEdit. Move one close to the other and they will snap into place, if the tops of those two windows are almost horizontally aligned they will snap into place. Same goes for Safari with

Re: Scroll a field to a specified line number

2020-08-17 Thread Niggemann, Bernd via use-livecode
Hi Michael, This is because the "fixedLineHeight" is turned off by default since a couple of versions. So you either turn "fixedLineHeight" on for the field or you change your code to something like -- one line set the vScroll of fld 1 to the formattedtop of line 60 of field

Re: Animation Engine: speed tips

2020-07-02 Thread Niggemann, Bernd via use-livecode
, Jul 1, 2020 at 8:27 AM Niggemann, Bernd via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > While not exactly what David asked for but on the topic of animating > > multiple objects with acceptable speed: > > > > htt

Re: Animation Engine: speed tips

2020-07-01 Thread Niggemann, Bernd via use-livecode
While not exactly what David asked for but on the topic of animating multiple objects with acceptable speed: http://forums.livecode.com/viewtopic.php?f=10=11726=sand#p56253 The original poster asked for "sand" particles that should have some sort of collision detection and should react to a

Re: Script profiler

2020-06-07 Thread Niggemann, Bernd via use-livecode
Jacques wrote > Does anyone with a business license use the script profiler? I'm having > trouble interpreting what it reports. According to the lesson in the LC > Lessons, it looks like the most recent handler is recorded on top of the > output but I'm getting output that is all mixed up

Re: Map Widget - how does it actually work?

2020-05-26 Thread Niggemann, Bernd via use-livecode
Unfortunately polylines stoppt working in recent versions of LC https://quality.livecode.com/show_bug.cgi?id=22377 Kind regards Bernd ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and

Re: Another widget grumble

2020-04-28 Thread Niggemann, Bernd via use-livecode
> Alex Tweedly wrote: > How do you tell whether a widget is "part of the main product" ? > Or, conversely, how do you find out what other source it came from ? If you look at a widget in the Properties Inspector in the "basic" pane you will find its name and then "Kind" for the Cock widget:

Re: Go to card has become slow

2020-04-08 Thread Niggemann, Bernd via use-livecode
Saving the 300 cards 8.x MB stack on a 2017 MacBook Pro SSD: 0.127276 seconds Same stack saving as binfile: 0.013656 seconds Kind regards Bernd ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe,

Re: DataGrid question: Suggestions for further enhancements

2020-04-03 Thread Niggemann, Bernd via use-livecode
Roland wrote Thu, 02 Apr 2020 04:08:51 -0700: Thank you Roland for your detailed list of possible improvements to modTableField > + Selecting columns: > > marking selected columns I will have to think about that > + Dragging and dropping columns and rows presently it is possible to drag

Re: DataGrid question...

2020-04-03 Thread Niggemann, Bernd via use-livecode
> Bernard Devlin via use-livecode Fri, 03 Apr 2020 11:23:08 -0700 > Reminds me of the work of the late great Eric Chatonet Thanks Bernhard for your kind words. But Eric is in my memory such a super coder and his code was crystal clear. Whereas my code is, um, less so. > I see only one

Re: How to find the column and row of a basic tableField

2020-04-02 Thread Niggemann, Bernd via use-livecode
Sean, The idea for the script I posted was to be independent of the Livecode provided tableField. My use case was that tab-delimited data was provided in a _regular_ field and the user clicks on a cell and the developer wants to know which cell was clicked to take action upon that

How to find the column and row of a basic tableField

2020-04-01 Thread Niggemann, Bernd via use-livecode
There was a long thread regarding the dataGrid which somehow touched getting the row and column of a basic tableField. I posted this solution also there. Mike Doub found some problems that turned out to be due to the fact that "cellEdit" was set to true for the table object. If "cellEdit" is

Re: DataGrid question...

2020-04-01 Thread Niggemann, Bernd via use-livecode
ed. I have not spent the time to figure out what is going on, but these are my observations. -= Mike On Apr 1, 2020, 9:29 AM -0400, Niggemann, Bernd via use-livecode mailto:use-livecode@lists.runrev.com>>, wrote: > This is a modification of Jaque's script to get the row and column of a >

Re: DataGrid question...

2020-04-01 Thread Niggemann, Bernd via use-livecode
This is a modification of Jaque's script to get the row and column of a locked tableField when the user clicks in a cell. Use tableField whose lockText is true. Set its script to on mouseUp put "Row:" &&

Re: DataGrid question...

2020-03-30 Thread Niggemann, Bernd via use-livecode
>Peter Bogdanoff wrote: >Does anyone have a link to obtain Bernd's modTableField ? Here is a link to the latest version of modifiedTableField berndniggemann.on-rev.com/mtf/modTableField.zip there is a zip of a demo stack with a helper

Re: Translate metadata to field content

2020-02-21 Thread Niggemann, Bernd via use-livecode
Hi Jacque, Jacque wrote: > put the styledText of fld 1 into tDataA > put 0 into tTotalChars > put 0 into tStartChar >repeat with i = 1 to the number of elements in tDataA >put tDataA[i]["runs"] into tRunsA >repeat with j = 1 to the number of elements in tRunsA > put tRunsA[j]

Re: Translate metadata to field content

2020-02-20 Thread Niggemann, Bernd via use-livecode
In reply to Mark Waddingham's comments Thank you Mark Waddingham for the improved scripts and the hints as to why they improve speed. I adapted Mark's version for unique occurrence, changed how the position of the target word is determined in the target line. It is not safe to assume that the

Re: Translate metadata to field content

2020-02-19 Thread Niggemann, Bernd via use-livecode
>J. Landman Gay wrote: >I haven't converted Bernd's script to use formattedStyledText yet but that >looks like the way to go. There is no difference to using styledText for this use case. The number of lines and the number of words are the same between the two. You mentioned that you want

RE: Translate metadata to field content

2020-02-19 Thread Niggemann, Bernd via use-livecode
My previous post was accidentally marking a part of my response as quoting Ralph's question. This is my response to Ralph's question about the difference between styledText versus formattedStyledText >From what I tested it behaves the same as formattedText. I.e. if you have wrapped text in

RE: Translate metadata to field content

2020-02-19 Thread Niggemann, Bernd via use-livecode
>Ralph DiMola wrote: >What is the difference between styledText and formattedStyledText? A quick test >yielded identical results. StyledText is in the dictionary. >From what I tested it behaves the same as formattedText. I.e. if you have >wrapped text in a field it will keep the wraps when

Re: Nested numeric lists that include number of parent list item

2020-02-11 Thread Niggemann, Bernd via use-livecode
I am not aware that listStyle decimal can show other then 1. No further sub numbering. However one could hack it. Although I know you are not particularly fond of those hacks... The code assumes that the listStyle of a field is set (any) will be "skip" afterwards and list depth is also set.

Re: Diff?

2020-02-01 Thread Niggemann, Bernd via use-livecode
Richard, Library com.livecode.library.diff was introduce in 9.0 >From the release notes: diff library A new library has been implemented for computing diffs between text sources and applying those diffs to text.

Re: OMG text processing performance 6.7 - 9.5

2020-01-31 Thread Niggemann, Bernd via use-livecode
Ben, If you have access to a business-license you could use "script profiling" on a small but representative sample of your data and see where the bottlenecks are. If you find any you could try to optimize that part. "script profiling" adds its own overhead to the processing time (roughly

Re: html5Player

2020-01-30 Thread Niggemann, Bernd via use-livecode
Hermann, This is magic. I always have to remind myself that it is Livecode running in a browser. It feels like some dedicated app. I suggest that anybody who is interested in what is possible with Livecode HTML5 to have a look at Hermann's examples. https://hyperhh.de/html5/html5Player.html

Re: Focus on customproperty inspector

2020-01-11 Thread Niggemann, Bernd via use-livecode
The bug is reported here: https://quality.livecode.com/show_bug.cgi?id=22199 the proposed bug fix is here: https://github.com/livecode/livecode-ide/pull/2079 Kind regards Bernd Hello, With livecode 9.6 I have a strange behavior, when the custom property inspector is open, and the script

Re: "empty" background in printed pdf is actually grey

2019-11-02 Thread Niggemann, Bernd via use-livecode
What happens when you set the opaque of group "oGrp" to false? Richard E. Hawkins, Esq. wrote: I’m printing each LC page with set the backgroundColor of otCd to empty set the opaque of group "oGrp" to true set the blendlevel of group "oGrp" to 100 set the blendlevel of otCd to 100 print

Re: Access Resource Files

2019-09-20 Thread Niggemann, Bernd via use-livecode
answer specialfolderpath("resources") ... in the standalone and check if that is the folder you manually copied the file(s) to! specialfolderpath("resources") was introduced in LC 6.7.5 (from the dictionary) Kind regards Bernd ___ use-livecode

Re: Resuscitation of Scott Raney Paint Tools

2019-06-22 Thread Niggemann, Bernd via use-livecode
do what Hermann suggested but add a line to the mouseUp handler script of colorPalette of grp "palette" of cd id 1002 of stack "HAColorChooser": on mouseUp set the selectedColor2 of me to the mouseColor --<--- add this setcolor the selectedColor2 of me end mouseUp Kind regards Bernd

Re: Filter an array by content

2019-06-21 Thread Niggemann, Bernd via use-livecode
Am 21.06.2019 um 09:01 schrieb use-livecode-requ...@lists.runrev.com: From: "J. Landman Gay" I spoke too soon. When I tested, I hard-coded a value as the filter string. But when I use a variable, it fails as it did before. The elements of the

[ANN] bnGuides has been updated

2019-03-28 Thread Niggemann, Bernd via use-livecode
bnGuides a tool to visually aid in alignment of controls has been updated to version 0.5.0 if fixes some instances where bnGuides did not delete temporary graphics on the target stack. Additionally it adds the optional display of distances to nearest neighbors. (capsLock-key toggles display

Re: Fastest Frame Rate?

2019-03-23 Thread Niggemann, Bernd via use-livecode
Hi Rick, rename your red and blue graphic according to this script or change the names in this script and try this. It works quite well for me. --- local sRed = "255,0,0" local sBlue = "17,137,255" local sRunning = false on mouseUp if not sRunning

Re: Shoutout to Bernd Niggeman

2019-01-31 Thread Niggemann, Bernd via use-livecode
Roger wrote: > This is to praise Bernd for his TinyDictionary! Kaveh wrote: > I second that. Thank you Roger and Kaveh, it was my pleasure. By the way my current version has some additional features that are mostly of interest to people writing widgets: You can import a temporary version

Re: TestInStandalone v_100

2019-01-09 Thread Niggemann, Bernd via use-livecode
Hello Hermann, this is a super HTML5 stack. It lets one easily test what works and does not work in HTML5 stacks. Anyone interested in HTML5 stacks should at least have a look at it. At times it is hard to believe that it is "just" a HTML5 stack, it seems like a little IDE in its own. And

Re: Musings on Architect, MVC, Nested Behaviors

2018-12-28 Thread Niggemann, Bernd via use-livecode
Sannyasin Brahmanathaswami wrote > BUT: " A new developer may be more likely to see the chained behavior if the >behaviors are explicitly assigned in code vs having to use vs going to the IDE >to look up what the behavior chain is." > >That is a problem using "Navigator" (does not show nested

Re: Using the Compass / GPS features of LC

2018-12-21 Thread Niggemann, Bernd via use-livecode
Am 21.12.2018 um 11:25 schrieb Niggemann, Bernd mailto:bernd.niggem...@uni-wh.de>>: Hi Mike, >Mike for GDC via >use-livecode > Thu, 20 Dec 2018 14:31:57

Re: [ANN] bnGuides alignment tool on ivecodeshare

2018-12-20 Thread Niggemann, Bernd via use-livecode
Thanks Tom, Matthias, glad you like "bnGuides" >Bob Sneidar via >use-livecode > Thu, 20 Dec 2018 07:53:51

[ANN] bnGuides alignment tool on ivecodeshare

2018-12-18 Thread Niggemann, Bernd via use-livecode
I have put a stack "bnGuides" on livecodeshare (or access it from "Sample Stacks" from within LC). It is best used as a plugin. http://livecodeshare.runrev.com/stack/918/BnGuides It helps with visual guides to align objects. It complements the build-in alignment tool. Feedback welcome. Kind

Re: Setting hidden of lines very slow

2018-11-30 Thread Niggemann, Bernd via use-livecode
Try set the hidden of line 1 to - 1 of field 1 to false Kind regards Bernd From: Kaveh Bazargan I have a text field with some 3500 lines of text. I want to ensure all lines are visible, as I have hidden some before. I use: repeat with i = 1 the number of lines of fld 1 set the hidden

Re: Max number of columns in a datagrid?

2018-11-29 Thread Niggemann, Bernd via use-livecode
>From the dictionary p 59 Maximum length of a LINE in a field: 65,536 characters storage No more than 32,786 pixels wide for display Kind regards Bernd From: Geoff Canyon I just checked, and (LC 8 on a Mac) indeed fields fail beyond a certain width/character limit/??? This: on mouseUp

Re: How to find offsets in Unicode Text fast

2018-11-12 Thread Niggemann, Bernd via use-livecode
Ben, Please see my remarks out failing UTF-32 with some Icelandic characters. Currently I would not recommend offset(UTF-32 text) unless one knows which character set is suited to be used and is in control of that character set. The same goes for UTF-16. I also thought that byteOffset would

Re: How to find offsets in Unicode Text fast

2018-11-12 Thread Niggemann, Bernd via use-livecode
Thank you Brian for putting the test stack up. It makes it easier to test various non-ASCII texts. As your testing shows the UTF16 variant can be misleading. Unfortunately I also found a case of UTF32 not working. I copied from Icelandic Wikipedia from the entry about the capital Reykjavik

Re: How to find offsets in Unicode Text fast

2018-11-10 Thread Niggemann, Bernd via use-livecode
Hi Richmond Richmond via use-livecode Sat, 10 Nov 2018 11:42:50 -0800 >I don't know who told you

Re: How to find offsets in Unicode Text fast

2018-11-10 Thread Niggemann, Bernd via use-livecode
nd Am 10.11.2018 um 20:30 schrieb Geoff Canyon mailto:gcan...@gmail.com>>: This is faster -- under some circumstances, much faster! Any idea why textEncoding suddenly fixes everything? On Sat, Nov 10, 2018 at 5:13 AM Niggemann, Bernd via use-livecode mailto:use-livecode@lists.runrev.

Re: How to find offsets in Unicode Text fast

2018-11-10 Thread Niggemann, Bernd via use-livecode
ces, much faster! Any idea why textEncoding suddenly fixes everything? On Sat, Nov 10, 2018 at 5:13 AM Niggemann, Bernd via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: This is a little late but there was a discussion about the slowness of simple offset() when dealing w

How to find offsets in Unicode Text fast

2018-11-10 Thread Niggemann, Bernd via use-livecode
This is a little late but there was a discussion about the slowness of simple offset() when dealing with text that contains Unicode characters. Geoff Canyon and Brian Milby found a faster solution by setting the itemDelimiter to the search string. They even provided a way to find the position

Re: Where is the declarative border color setting in the property

2018-11-09 Thread Niggemann, Bernd via use-livecode
Keith, I see "Border fill" when the preference setting is "Description of option" for a field. For an image I see "Border/grid Color" with the same setting. Since I always have "Name of Livecode Property" set in Preferences I never noticed the difference. Anyhow the tooltip shows the

Re: Where is the declarative border color setting in the property

2018-11-09 Thread Niggemann, Bernd via use-livecode
Keith, depending on your settings in Preferences -> General -> "Description of option" or "Name of Livecode Property" border color will show up in Properties Inspector in tab "Colors" as "Border/grid Color" or "borderColor" Kind regards Bernd > Date: Fri, 09 Nov 2018 09:02:18 + > From:

Re: How to find the offset of the last instance of a repeating character in a string? (Geoff Canyon)

2018-11-01 Thread Niggemann, Bernd via use-livecode
Hi Geoff, thank you for this beautiful script. I modified it a bit to accept multi-character search string and also for case sensitivity. It definitely is a lot faster for unicode text than anything I have seen. - function offsetList D,S, pCase -- returns a

Re: starting the Project Browser

2018-10-24 Thread Niggemann, Bernd via use-livecode
Hi, does this help? revIDETogglePalette "Project Browser" you can test if the Project Browser is visible put revIDEPaletteIsVisible("project browser") Kind regards Bernd ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this

Re: Sorting search results - solution needed

2018-10-24 Thread Niggemann, Bernd via use-livecode
here is my take, clumsy and not respecting all formatting requirements Instead of 187.1 187.1.1 187.1.2 187.3 187.22 187.33 187.234 it sorts 187.1 187.1.1 187.1.2 187.22 187.234 187.3 187.33 Kind regards Bernd --- on mouseUp put field

Re: Best way to store videos

2018-08-27 Thread Niggemann, Bernd via use-livecode
J. Landman Gay via use-livecode Fri, 24 Aug 2018 14:11:29 -0700 On 8/24/18 3:42 PM, Monte

Re: valueDiff for arrays?

2018-08-06 Thread Niggemann, Bernd via use-livecode
How embarrassing, again an error. I should go to sleep now. repeat pn mod 1 put tYes after tIsItPrime <-- corrected line end repeat Here is the hopfully truly truly last correction. --- function get_primes pN -- bn modified brian local tMroot, tPrimes,

Re: valueDiff for arrays?

2018-08-06 Thread Niggemann, Bernd via use-livecode
There was an error in the code I posted. It should read "if pN >= 1 then" instead of "if pN > 1" this is the corrected version - function get_primes pN local tMroot, tPrimes, tIsItPrime, tYes, tNo put numtobyte(66) into tYes put numtobyte(65) into tNo if pN < 2

Re: valueDiff for arrays?

2018-08-06 Thread Niggemann, Bernd via use-livecode
This also helps a bit. Where is Hermann? - function get_primes pN local tMroot, tPrimes, tIsItPrime, tYes, tNo put numtobyte(66) into tYes put numtobyte(65) into tNo if pN < 2 then return empty if pN = 2 then return 2 put 2 into tPrimes put trunc(sqrt(pN))

Re: Datagrids and Nested Behaviors

2018-07-23 Thread Niggemann, Bernd via use-livecode
only be checking that the script local wasn’t empty and > returning the value. > > Another option would be to just initialize the variable in _Initialize and > use it for the 10 places the function is currently used. That would be even > faster since it would eliminate the function ca

Re: Datagrids and Nested Behaviors

2018-07-23 Thread Niggemann, Bernd via use-livecode
The problem Bob Sneidar ran into by changing the order of the behaviors of a dataGrid is due to the initialization process of the dataGrid at start-up. The behavior looks for a resourceStack by means of this handler. private function _ResourceStack local theStack, theCharNo put the

Re: Datagrids and Nested Behaviors

2018-07-21 Thread Niggemann, Bernd via use-livecode
Bob, I also found that changing the behavior of group "dataGrid x" does not stick and after restart you have to set it again. However if you want to use the convenience of a behavior you could set in your case as far as user interaction via doubleMouseUp is concerned you could set the

Re: Datagrids and Nested Behaviors

2018-07-19 Thread Niggemann, Bernd via use-livecode
Bob, if you want to use a a behavior for the datagrids make a button with on mouseDoubleUp put the long name of the target end mouseDoubleUp and then set the behavior of your datagrids like this set the behavior of the behavior of the behavior of group "datagrid 1" to the long id of

Re: TextAlign not working in fields

2018-07-18 Thread Niggemann, Bernd via use-livecode
Hi Paul, I hope that Edinburgh will fix the problem. In the meantime you could try this workaround for your sample stack from QCC. make a button with this script and use it whenever you change textAlign or width of field "Cloud" Here I assume you are using margins of 8.

Re: Sort IP List

2018-06-30 Thread Niggemann, Bernd via use-livecode
Hermann, I did not see Alex's solution until after I posted. I agree that inline is probably always faster. And after I saw Alex's post I would not have thought that one could do it that way, thanks Alex. On top it is by far the fastest. On the other hand sort by myFunction(each) is so

Re: Sort IP List

2018-06-30 Thread Niggemann, Bernd via use-livecode
if you replace ip2dec with the same functionality as Hermann's (HH) function with private function ip2dec2 x set the itemdel to "." return (item 4 of x) + (item 3 of x * 256) + (item 2 of x * 65536) + (item 1 of x * 16777216) end ip2dec2 then the special sort via function is faster than

Re: Align baselines of 2 fields

2018-06-25 Thread Niggemann, Bernd via use-livecode
I rethought the alignment of baselines of 2 fields and did not like my previous solution to just move the fields Here is a solution that uses the margins to do the alignment. The two fields should accommodate for the expected textSizes and should be horizontally aligned. There are occasional

Re: Align baselines of 2 fields

2018-06-22 Thread Niggemann, Bernd via use-livecode
Hi Bob, how about: if pOffset is empty then put 0 into pOffset -- if pOffset is not strictly an integer then put pOffset div 1 into pOffset -- <- -- catch theError if pOffset is an integer nothing happens, if it is a floating point number

Re: unicode & umlauts

2018-06-22 Thread Niggemann, Bernd via use-livecode
Hi Eric, I retested Scott's solution and it works like a charm. I must have made a mistake when copying the code initially. It is a lot easier and more sensible than my solution. this is Scott's script that works for me -- on mouseup local

Re: unicode & umlauts

2018-06-21 Thread Niggemann, Bernd via use-livecode
Hi Eric, it seems that urlEncode does not give the expected hex values for high ASCII characters. Yandex expects UTF8 hex values. for example the german o-umlaut after urlEncode is %F6 which is ASCII 154 in the extended ASCII table yandex expects %C3%B6 that is the utf8-urlEncode form.

Re: Align baselines of 2 fields

2018-06-21 Thread Niggemann, Bernd via use-livecode
Hi Marty, depending how liberal you are in letting users choose fonts and sizes you might get "unexpected" results by aligning to field 1 try this stress test - on mouseUp lock screen set the textfont of field 1 to any line of the fontNames set the

Re: Align baselines of 2 fields

2018-06-21 Thread Niggemann, Bernd via use-livecode
Hi Mary, I suppose you want to center those fields around a common horizontal baseline. You might try this if that is what you want. Should work with different fonts and sizes. Two fields, one button. Kind regards Bernd -- on mouseUp

imagedata and alpha byte

2018-05-09 Thread Niggemann, Bernd via use-livecode
Correcting my previous post. You don't have to set the imageData explicitly. I was confused by vanishing images. Apparently if you want to set all of the imageData to numToByte(0) or numToByte(256) the image vanishes. The workaround is to set it to 1 or 255 respectively. This is in LC 9 GM

Re: imagedata and alpha byte

2018-05-09 Thread Niggemann, Bernd via use-livecode
Hi, please do not use numToChar in version 7.0 and up for image manipulation, use numToByte or byteToNum NumToChar is deprecated. It might work but is horribly slow. along the lines of Mike's example -- on mouseUp local tAlphaData, tTransparent, tHalfTransparent

Re: Has Anyone Got A Directory \\\"Walker\\\" Available

2018-05-06 Thread Niggemann, Bernd via use-livecode
>Which version of LC did you test with? >I was under the impression that since LC switched to copy-on-write for all >>arguments we should no longer need to use "@" for performance, only for for >logic. Richard, I tested using LC 9 GM, what kind of results do you get? Kind regards Bernd

Re: Has Anyone Got A Directory \"Walker\" Available

2018-05-06 Thread Niggemann, Bernd via use-livecode
Alex, a combination of "private" and referenced variables (@) improves the speed of the calls somewhat. Kind regards Bernd -- on mouseup local t1, t2 constant K = 1000 local x constant KX = 100 put the millisecs into t1 repeat K

Re: Q on Accessing multi-dimension arrays.

2018-04-26 Thread Niggemann, Bernd via use-livecode
Alex Tweedly wrote: >Is there some way or format to specify the array elements using the >"path" of the keys, rather than each one at its own level) ? If I understand correctly that you want then - put "style,hidden" into tPathToHidden split tPathToHidden by comma

Re: Contributing to the IDE

2018-04-20 Thread Niggemann, Bernd via use-livecode
>Monte Goulding via >use-livecode > Fri, 20 Apr 2018 01:49:50 >-0700 > wrote >I’m fairly sure

Re: some thoughts on version 9.0.0

2018-04-19 Thread Niggemann, Bernd via use-livecode
Mark Wieder via use-livecode Thu, 19 Apr 2018 13:46:24 -0700 > >On 04/19/2018 01:15 PM, Niggemann, Bernd via use-livecode wrote: > >the number 1 indicates that this is the first behavior. Behaviors can be >stacked and then you would have 2,3 or whatever up to ten behavior

Re: some thoughts on version 9.0.0

2018-04-19 Thread Niggemann, Bernd via use-livecode
I use the Project Browser heavily ... one change in 9.0.0 I definitely DO NOT like is the "new" way of indicating a "behavior" assignment on an object. What's with the little oval with a "1" in it??? I used the (previous) line counts to visually match to the "source" button line counts.. easy...

Re: The coming of SVG

2017-11-04 Thread Niggemann, Bernd via use-livecode
for me "Picture" is a bit confusing. We have "Image" for bitmaps, "Graphic" for vector graphics of a certain type and now we might have "Picture" for all kinds of elements. However "Picture" is easily confused with "Image" or "Graphic" for a newcomer. The forum is full of synonyms that take a

[ANN] TinyDictionary updated to work also in LC 8.2.0 DP2 and LC 9 DP10

2017-10-24 Thread Niggemann, Bernd via use-livecode
Due to changes how LC organizes dictionary data in LC 8.2 DP2 and LC 9 DP 10 tinyDictionary did not display LCB dictionary entries anymore. TinyDictionary version 0.8.3 restores that functionality and is backwards compatible. Thanks James Hale for the code for the acquisition of the dictionary

Re: SE Gutter better scroll tracking [Bugfix-20140]

2017-07-23 Thread Niggemann, Bernd via use-livecode
Bernd wrote: A very simple reproducible instance of the wandering red dot but only in LC 9 (tested in DP2, DP4 and DP8) is pasting. make a button with on mouseUp put x into y put y into v end mouseUp compile script place the red dot at "end mouseUp" now copy the body of the

Re: SE Gutter better scroll tracking [Bugfix-20140]

2017-07-23 Thread Niggemann, Bernd via use-livecode
A very simple reproducible instance of the wandering red dot but only in LC 9 (tested in DP2, DP4 and DP8) is pasting. make a button with on mouseUp put x into y put y into v end mouseUp compile script place the red dot at "end mouseUp" now copy the body of the handler (2 lines) and

Re: Find some text characters

2017-07-17 Thread Niggemann, Bernd via use-livecode
Given this htmlText that may contain Chinese characters and/or some horizontal tabs— I want to know if this data contains Chinese characters, that is an entity with 5 numbers between the “#” and the “;” according to google-translate this means "bold and strong" maybe this is a way?

Re: [ANN] a gauge widget

2017-06-10 Thread Niggemann, Bernd via use-livecode
Ali Lloyd via use-livecode Fri, 09 Jun 2017 13:40:50 -0700 Bernd, The problem with your OnSave /

Re: [ANN] a gauge widget

2017-06-09 Thread Niggemann, Bernd via use-livecode
The problem with saving has been solved and a new version of the Gauge widget has been uploaded to the edited first post. http://forums.livecode.com/viewtopic.php?f=93=29348=154750 this version also adds a SVG icon to the widget. Thanks everyone for your interest and hints. Should have tested

Re: [ANN] a gauge widget

2017-06-09 Thread Niggemann, Bernd via use-livecode
> Check that all the vars which are saved into the props array have been > assigned, and that the getRadiusAndCenterPoint() can't throw an error in > that case. thanks Mark for looking into this. The problem was that onSave did not appreciate saving a variable of type Color, I had to do string

Re: [ANN] a gauge widget

2017-06-09 Thread Niggemann, Bernd via use-livecode
On 2017-06-09 20:02, Matthias Rebbe via use-livecode wrote: Another thing i noticed is that i cannot save the stack when the widget is placed onto the stack. I get the following error message: “Can´t save stack … due to an error: Error writing stack (disk full?)" That means that the OnSave

Re: [ANN] a gauge widget

2017-06-09 Thread Niggemann, Bernd via use-livecode
Thanks everybody for their kind words. Livecode Builder takes a while to get into but then it is actually fun. And you can do things that are not possible in Livecode Script Matthias Rebbe wrote: What i noticed is that the widget has a general icon showing the text widget. Is there a way to