Re: The results are in.

2018-06-21 Thread Tom Glod via use-livecode
Great testimonial & results thank you for sharing. Indeed LC is a great choice for so many use cases. Thank you On Thu, Jun 21, 2018 at 8:14 AM, Tore Nilsen via use-livecode < use-livecode@lists.runrev.com> wrote: > The academic year has come to an end in Norway, and the results from >

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

Re: unicode & umlauts

2018-06-21 Thread Richmond via use-livecode
Dunno: I just pasted THIS from NotePad into a textField in LiveCode 9 on Xubuntu: Eine Überraschung stellen dagegen Wörter, wie „doppelgaenger“, „schadenfreude“ oder „poltergeist, dar, die sich, laut dem #Oxford #Dictionary, längst im englischen Wortschatz eingenistet haben. Anscheinend ist die

WordOut : Where to put the license key?

2018-06-21 Thread Ludovic THEBAULT via use-livecode
Hello, I’ve bought WordOut with a bundle. I’ve a licence key, but I don't know where to put it. Thanks for your help ! ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: WordOut : Where to put the license key?

2018-06-21 Thread Matthias Rebbe via use-livecode
Hi Ludovic, the serial number is used in your script. First load wordout library, then useregisterWordout “x” to register wordout in your script. Replace x with your license key. HTH Matthias > Am 21.06.2018 um 13:31 schrieb Ludovic THEBAULT via use-livecode > : > > Hello, > >

The results are in.

2018-06-21 Thread Tore Nilsen via use-livecode
The academic year has come to an end in Norway, and the results from various exams have just been released. I am happy to say that my Computer Science students have ended this year on a high note, with 55% of them scoring an A or A+ for their final exams. All students participating in the

Re: WordOut : Where to put the license key?

2018-06-21 Thread Ludovic via use-livecode
Thanks ! > Le 21 juin 2018 à 13:58, Matthias Rebbe via use-livecode > a écrit : > > > Hi Ludovic, > > the serial number is used in your script. > First load wordout library, then useregisterWordout “x” > to register wordout in your script. > Replace x with your license key. > >

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 Bob Sneidar via use-livecode
I changed the font of one of the fields to something with a different descent, and it doesn't seem to work. Bob S > On Jun 21, 2018, at 10:28 , Knapp Martin via use-livecode > wrote: > > This works for me, assuming you want to leave field 1 where it is and align > field 2: > > on

Re: unicode & umlauts

2018-06-21 Thread Klaus major-k via use-livecode
Hi Bob, > Am 21.06.2018 um 18:23 schrieb Bob Sneidar via use-livecode > : > > If only. ;-) Monsieur? Isn't it? It IS! > Bob S >> On Jun 21, 2018, at 08:59 , Klaus major-k via use-livecode >> wrote: >> Hi Eric, >>> Am 21.06.2018 um 17:42 schrieb Eric A. Engle via use-livecode >>> : >>> ..

Re: 8.1.10 Reporting the ScreenSize of a iPhone7: 0,0,375,667

2018-06-21 Thread Sannyasin Brahmanathaswami via use-livecode
1) have had the 1242 X 2208 loaded in the Phone 6 Plus "slot" from the beginning of this tread! 2) In now suspect Xcode mis-configuration (I keep going on 9.2. to 9.3 and set the Xcode select from terminal_ 3) With Elanor help just needed to add mobileSetAllowedOrientations "portrait,portrait

Re: Align baselines of 2 fields

2018-06-21 Thread Bob Sneidar via use-livecode
I modified as follows, but pField2 is one pixel high. Not sure why. Bob S on alignFieldBaselines pField1, pField2 local tDescent1, tDescent2, tBot1, tBot2, tDiff1, tDiff2, tRef local fFormattedBottom1, fFormattedBottom2 -- put 120 into tRef put item 4 of the formattedRect of

Re: unicode & umlauts

2018-06-21 Thread Klaus major-k via use-livecode
Hi Eric, > Am 21.06.2018 um 17:42 schrieb Eric A. Engle via use-livecode > : > > ... > Another question: in hypercard cmd + . = stop executing script. Is there any > similar command in livecode? even better, the command is identical in Livecode. :-) Best Klaus -- Klaus Major

Re: unicode & umlauts

2018-06-21 Thread Bob Sneidar via use-livecode
If only. ;-) Bob S > On Jun 21, 2018, at 08:59 , Klaus major-k via use-livecode > wrote: > > Hi Eric, > >> Am 21.06.2018 um 17:42 schrieb Eric A. Engle via use-livecode >> : >> >> ... >> Another question: in hypercard cmd + . = stop executing script. Is there any >> similar command in

Re: Align baselines of 2 fields

2018-06-21 Thread Knapp Martin via use-livecode
Thanks Craig and Bernd, I’ll tinker with this and see how it goes. Marty > On Jun 21, 2018, at 4:37 AM, Niggemann, Bernd via use-livecode > wrote: > > 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.

Re: Align baselines of 2 fields

2018-06-21 Thread Knapp Martin via use-livecode
This works for me, assuming you want to leave field 1 where it is and align field 2: on alignFieldBaselines pField1, pField2 local tDescent1, tDescent2, tBot1, tBot2, tDiff1, tDiff2, tRef local fFormattedBottom1, fFormattedBottom2 put item 4 of the formattedRect of line 1 of fld pField1

Re: 8.1.10 Reporting the ScreenSize of a iPhone7: 0,0,375,667

2018-06-21 Thread J. Landman Gay via use-livecode
The setupUI handler was my own, I wrote a whole new script for testing. That's how I found that resizestack wasn't being sent. I'd already added the orientation handling and rotation was working, but the setup handler never triggered. -- Jacqueline Landman Gay | jac...@hyperactivesw.com

Re: Align baselines of 2 fields

2018-06-21 Thread Bob Sneidar via use-livecode
Or better yet: (should probably be submitted to the Master Library). Trouble with this is that it relocates both fields. It should probably only move pField2. on alignFieldBaselines pField1, pField2 local tDescent1, tDescent2, tBot1, tBot2, tDiff1, tDiff2, tRef local fFormattedBottom1,

Re: unicode & umlauts

2018-06-21 Thread Eric A. Engle via use-livecode
Yes, I think my problem with Chinese was I had only simplified and not traditional fonts installed. Anyway I installed some libraries now my paste clipboard ctrl v works. What doesn't work is calling the Yandex api to translate and then send the translation to a livecode field. Even though I

Re: Align baselines of 2 fields

2018-06-21 Thread Bob Sneidar via use-livecode
Okay new version. This adds an offset parameter for those cases where the baselines do not exactly align due to font weirdnesses. I also added the ability to pass a short name of a field, or else the long ID. Enjoy! Bob S on alignFieldBaselines pField1, pField2, pOffset local tDescent1,

Re: unicode & umlauts

2018-06-21 Thread scott--- via use-livecode
Hello Eric, Just an idea but for working with yandex, what if you textEncode and textDecode for the round trip. Like so: on mouseup repeat with i = 1 to the number of lines in card field "source" put URLEncode(textEncode(line i of cd fld "source","UTF8")) into theText put

Re: Align baselines of 2 fields

2018-06-21 Thread Bob Sneidar via use-livecode
Okay a newer NEWER version. If no parameters are passed for the fields, it will use the first two hilited objects. Also, I check that pOffset is a number by adding 0 to it in a try/catch statement. on alignFieldBaselines pField1, pField2, pOffset local tDescent1, tDescent2, tBot1, tBot2,

Re: Align baselines of 2 fields

2018-06-21 Thread J. Landman Gay via use-livecode
On 6/21/18 2:58 PM, Bob Sneidar via use-livecode wrote: Also, I check that pOffset is a number by adding 0 to it in a try/catch statement. Or alternately, "if pOffset is a number..." -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software |

Re: Align baselines of 2 fields

2018-06-21 Thread Bob Sneidar via use-livecode
Sorry my bad. I modified your script to expect the long id of a field, but your second edition still expected short names. I can work around that later. So your new script works, except the second field may be one pixel too high, depending on the font. Not sure there is a workaround for this,

Data in Custom properties

2018-06-21 Thread Malte Pfaff-Brill via use-livecode
Hi all, I am a little bit puzzled. a stack I started way back in engine 4.x always had a custom property set with multiple UTF8 encoded strings. Those were transferred just fine from Mc to PC and the UTF8 strings remained intact. Somewhere down the road something seems to have changed.

Re: Align baselines of 2 fields

2018-06-21 Thread Knapp Martin via use-livecode
Bernd, I ran this at least 50 times and in the vast majority of cases the baselines align. In a few cases, as Bob noted, it was off by 1 pixel. But that will be OK for my use. I let users pick any font but sizes are limited from 8 to 20. Thanks you guys. A very resourceful group, as usual!

Re: Align baselines of 2 fields

2018-06-21 Thread Bob Sneidar via use-livecode
But that won't throw an error in my try catch statement. :-) Bob S > On Jun 21, 2018, at 13:23 , J. Landman Gay via use-livecode > wrote: > > On 6/21/18 2:58 PM, Bob Sneidar via use-livecode wrote: >> Also, I check that pOffset is a number by adding 0 to it in a try/catch >> statement. > >

RE: Align baselines of 2 fields

2018-06-21 Thread Ralph DiMola via use-livecode
Option B. I find it easier to see what's going on: If pOffset is a number then put round(pOffset) into pOffset Else return "Invalid parameter passed." End if Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode

Re: Align baselines of 2 fields

2018-06-21 Thread Bob Sneidar via use-livecode
Agreed, it's definitely easier to read, but I had already decided to use a try catch statement with the field names, and then do something with the field names that would only work if they were valid. If either parameter was anything other than the short name of a field or else the long id of a

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.