Still no Unicode in LC 5

2012-02-10 Thread Slava Paperno
Hello, Curt, Last summer I tinked with LiveCode 4 and wrote a version of my Rusian Dictionary Tree in it, but programming it was a pain because of limited support for Unicode, and I ran into some situations where it seemed hopeless. As you know, Unicode support had been promised, but now LC 5

RE: Startup message

2011-08-02 Thread Slava Paperno
On a related note: I have often wished that preOpenStack and openStack were not called when I open the stack in the IDE. When the programming is not finished, some calls that are already written into those handlers cannot yet be successful because other parts are missing. The result is that the

lack of Mac OS X intuition: system menu

2011-07-31 Thread Slava Paperno
programmers. On 31 jul 2011, at 04:54, Slava Paperno wrote: I've been learning LC in Windows, and have now switched to Mac OS X, where everything is just so intuitive and easy... can someone please tell me how to remove my application menu from the system menu bar and restore the LC menu

lack of Mac OS X intuition: system menu

2011-07-31 Thread Slava Paperno
Cool, thanks, Jacque! Since you know everything, do you also know why revBrowser won't display double-byte (Unicode Cyrillic) characters when my stack runs/is developed in Mac OS X (Tiger and Snow Leopard)? It displays two single-byte characters for each Cyrillic letter, which makes the text

revBrowser, Mac OS X, and Unicode

2011-07-31 Thread Slava Paperno
Jacqueline said: But you were right that revBrowser uses the built-in Safari webkit. How does your page look if you open it directly in Safari? It looks fine--just as I expect it to look, and just the way it looks in my Windows stack. Unicode Cyrillic is displayed as it is displayed in all

lack of Mac OS X intuition: system menu

2011-07-31 Thread Slava Paperno
Earlier today Jacque said: The IDE will replace the system menu with yours when your stack is frontmost. If you click on any IDE component (message box, tool palette, etc) the IDE menus will come back. It's dynamic. I have not been able to achieve this no matter what value of editmenus of

RE: lack of Mac OS X intuition: system menu

2011-07-31 Thread Slava Paperno
: system menu On 7/31/11 9:32 PM, Slava Paperno wrote: Earlier today Jacque said: The IDE will replace the system menu with yours when your stack is frontmost. If you click on any IDE component (message box, tool palette, etc) the IDE menus will come back. It's dynamic. I have not been

RE: carrying a global variable from stack to sub stack

2011-07-30 Thread Slava Paperno
How do you carry a global variable from one stack to a substack? If you set a global variable in the main stack: on preOpenStack global gMyName put Mike into gMyName end preOpenStack then in any card in any substack you can retrieve the value like so: on openCard global gMyName

lack of Mac OS X intuition: system menu

2011-07-30 Thread Slava Paperno
I've been learning LC in Windows, and have now switched to Mac OS X, where everything is just so intuitive and easy... can someone please tell me how to remove my application menu from the system menu bar and restore the LC menu so I can do some work? My intuition fails on this point. I know I've

revBrowser and Unicode on Mac OS X

2011-07-30 Thread Slava Paperno
Short version: revBrowser does not display Unicode characters in Mac OS X (PPC/Tiger and Intel/Snow Leopard). LC 4.6.2 and 4.6.3. Long version: I finished writing and testing my Russian dictionary application in Windows and started testing it in Mac OS X. My first surprise is that revBrowser

revBrowserCallScript() not working in Mac OS X

2011-07-30 Thread Slava Paperno
My application (LC 4.6.3) does this: revBrowserSet(sBrowserID, htmltext, tMyHTML) tMyHTML is a fully-formed Web page that includes this function: function SetFontSize(FSizeStr) { document.body.style.fontSize = FSizeStr; } A button on the same card as the revBrowser instance does this:

RE: lack of Mac OS X intuition: system menu

2011-07-30 Thread Slava Paperno
are in the LC menu. On Jul 30, 2011, at 10:54 PM, Slava Paperno wrote: can someone please tell me how to remove my application menu from the system menu bar and restore the LC menu so I can do some work? ___ use-livecode mailing list use

horizontal scrollbar in revBrowser

2011-07-27 Thread Slava Paperno
Rather like any Web browser window, my revBrowser windows sometimes has a horizontal scroll bar and sometimes not. Because the display in my revBrowser window is wrappable text, this horizontal scroll bar is never useful. Even when it appears, it only scrolls for about five or six pixels.

RE: horizontal scrollbar in revBrowser

2011-07-27 Thread Slava Paperno
in revBrowser html {overflow-x:hidden;} On Wed, Jul 27, 2011 at 8:54 PM, Slava Paperno sl...@lexiconbridge.comwrote: Rather like any Web browser window, my revBrowser windows sometimes has a horizontal scroll bar and sometimes not. Because the display in my revBrowser window

LC equivalent of the JS eval() function

2011-07-24 Thread Slava Paperno
I'm looking for the LC equivalent to the JavaScript eval() function. For example, if I have a variable called tAddress and I want an LC statement to assign a value to it, I'd like to say something like put 202 Main Street into eval(tAddress). That may sound silly because if I, the programmer,

RE: LC equivalent of the JS eval() function

2011-07-24 Thread Slava Paperno
Ah, do! Great. It's a much better word than eval. JS should have called it do as well because the eval() function does more than return a value--it executes commands, just like the LC do. Thanks, everyone, Slava On Jul 24, 2011, at 11:20 AM, Mark Schonewille wrote: Hi Slava, The do

Preferences folder/files on mobile

2011-07-24 Thread Slava Paperno
Does the special folder preferences point to some location on mobile devices? If not, where is one supposed to place a preferences file for an application on a mobile? Is the Windows tradition of naming the preferences file with the ini extension upheld on mobiles? A related question: does

RE: Preferences folder/files on mobile

2011-07-24 Thread Slava Paperno
/files on mobile On 7/24/11 1:35 PM, Slava Paperno wrote: Does the special folder preferences point to some location on mobile devices? No. The release notes on each mobile OS have a list of available folders you can access. If not, where is one supposed to place a preferences file

are all controls loaded?

2011-07-24 Thread Slava Paperno
The openCard handler in the first card of my stack sends messages to various controls on the card, and I think some of these messages are sent before the control is fully loaded: I see error no such object. If I use send XXX to YYY in 800 milliseconds, then all is well. How do I solve this

are all controls loaded?

2011-07-24 Thread Slava Paperno
. On 25 jul 2011, at 00:32, Slava Paperno wrote: The openCard handler in the first card of my stack sends messages to various controls on the card, and I think some of these messages are sent before the control is fully loaded: I see error no such object. If I use send XXX to YYY

RE: Adding cookies to RevBrowser

2011-07-18 Thread Slava Paperno
You can manipulate the HTML of the Web page that is about to load in your revBrowser instance, and thus add a JS function to that Web page. The function can set the cookie that you need. You can call the function either from the onload trigger in the body tag, or by calling it from LC. Slava

RE: Unicode again, this time comboboxes

2011-07-14 Thread Slava Paperno
I tried to use Unicode in comboboxes and gave up because it is a hybrid between a button and a field. Perhaps someone else knows how to get around the problems, but I ended up simulating a combobox by using a one-line, no-wrap text input field and below it a list field that becomes visible when

RE: Unicode again, this time comboboxes

2011-07-14 Thread Slava Paperno
Mark--where can that List Search Field be seen? Slava -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- boun...@lists.runrev.com] On Behalf Of Mark Schonewille Sent: Thursday, July 14, 2011 5:25 PM To: How to use LiveCode Subject: Re: Unicode

global variable change in substack not available to main stack

2011-07-10 Thread Slava Paperno
In openCard script of the main stack: global gBgColor put 0, 0, 0 into gBgColor In a button script in a substack: on mouseUp global gBgColor answer color with gBgColor --white is selected put it into gBgColor put gBgColor cr after msg --255, 255, 255

RE: global variable change in substack not available to main stack

2011-07-10 Thread Slava Paperno
that it works the way you have it but when using colour info like 0,0,0 I would recommend putting it into quotes 0,0,0 HTH On 10 July 2011 07:02, Slava Paperno sl...@lexiconbridge.com wrote: In openCard script of the main stack: global gBgColor put 0, 0, 0 into gBgColor

RE: Anyone A Guru With RevBrowser ?

2011-07-10 Thread Slava Paperno
Scott Issue number 1 is the loading of pages: is there anyway to freeze or lock the RevBrowser display until downloading of new page content has completed? The site can be slow to respond, so my thought was to pop up a spinning progress indicator over a snapshot of the current page so the

RE: global variable change in substack not available to main stack

2011-07-10 Thread Slava Paperno
I'm curious about globals and the message box. I've been doing both (omitting the global declaration and including it) and I haven't seen any difference, but I've seen conflicting opinions in the posts here as well as some forums. What's the skinny on this? Slava In the Message box: put

RE: global variable change in substack not available to main stack

2011-07-10 Thread Slava Paperno
, Slava Paperno sl...@lexiconbridge.com wrote: Thanks Stephen and Ian. It is true that I declare each global variables inside every handler where it is used. I have a sizable application now where this strategy is employed everywhere. In doing so I followed this statement in the User Guide

RE: a color picker widget?

2011-07-07 Thread Slava Paperno
Subject: Re: a color picker widget? --- On Wed, 7/6/11, Slava Paperno sl...@lexiconbridge.com wrote: Is there a color-picker widget that I could insert into my stack? I want the user to be able to choose a color. I know I can simply display a graphic with a color wheel and tell

how to ungroup a group of one

2011-07-07 Thread Slava Paperno
I have somehow created a group that contains one object, a button. I think I grouped two objects and then deleted one of them or something. Anyway, this group that contains one button is indestructible. Clicking the Ungroup button when it is selected, or using the ungroup group id X command

defining and using globals in an application

2011-07-07 Thread Slava Paperno
(I never did like having those single lines of code (aka global TestVar) living outside of any handler in my scripts. They were - if I may use the past tense - an ugly feature of the language too...) We're all different (well, most of us). I like having a list of all variables right there, at

autoHilite and focus (following Jacque's solution)

2011-07-06 Thread Slava Paperno
My user types a search target and presses Enter or clicks the Find button, and his target is found. At that point I want the focus to return to the input field so the user can type another target. I find this surprisingly difficult to achieve. At the bottom of the mouseUp handler on the Find

autoHilite and focus (following Jacque's solution)

2011-07-06 Thread Slava Paperno
Thanks, Ken--but I do want traversalOn to be true: that's the natural behavior of a search field and the Find button: type your target, then --click Find or --press Enter or --press Tab to focus on the Find button, then press Enter That's why I have, at the bottom of the Find button's mouseUp

autoHilite and focus (following Jacque's solution) SOLVED, THANKS

2011-07-06 Thread Slava Paperno
To: How to use LiveCode Subject: Re: autoHilite and focus (following Jacque's solution) On 7/6/11 2:06 AM, Slava Paperno wrote: But then I added other buttons to the same card, and found that if any of them has AutoHilite set to true, my focus command is undone, and the focus moves

RE: defining and using globals in an application

2011-07-06 Thread Slava Paperno
Mark, When I define a global in the main stack, it is available to all its substacks. Are you sure this is not the case in your application? You may have already seen this in User Guide: 2.2.4 Main Stacks and Substacks The first stack created in a stack file is called the mainstack. Any other

RE: defining and using globals in an application

2011-07-06 Thread Slava Paperno
if you don't define the required global again, the desired value is not there. You have to declare the global in the script where you want to use its value, but you don't have to define the value again. from the Main Stack script: global gMyName put Slava into gMyName from a substack, any

RE: OpenField and keeping the focus on the field

2011-07-06 Thread Slava Paperno
Tom, I attach a stack that does what I think you were trying to do. Slava -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- boun...@lists.runrev.com] On Behalf Of Tom Johnson Sent: Wednesday, July 06, 2011 8:42 PM To: LC Questions Subject:

RE: defining and using globals in an application

2011-07-06 Thread Slava Paperno
I don't know many programming languages, but in those I do know, I notice a distinction between defining a variable and declaring a variable. You define a variable when you put a value in it. You may still need to declare it before you use it elsewhere. LiveCode keeps you from terrible debugging

RE: defining and using globals in an application

2011-07-06 Thread Slava Paperno
It is okay (technically, anyway) to have identically-named global, script local, and handler local variables. You can't have identically named local variable within the scope of the variable, but you can have identically named script variables in different scripts and identically named local

a color picker widget?

2011-07-06 Thread Slava Paperno
Is there a color-picker widget that I could insert into my stack? I want the user to be able to choose a color. I know I can simply display a graphic with a color wheel and tell the user to click (and test the color under the mouse), but a conventional interface for choosing a color would be

RE: chasing the focus

2011-07-05 Thread Slava Paperno
Subject: Re: chasing the focus On 7/4/11 10:49 PM, Slava Paperno wrote: I'm trying to figure out why a field is losing focus and I don't know which tools to use for the hunt. At the very end of a mouseUp handler of a button I have this: on mouseUp . focus on field

RE: Adventures in Unicode

2011-07-04 Thread Slava Paperno
Richmond, Why don't you switch to using revBrowser to do all your text display, font resizing, and font-family changes? Works like a clock... and you don't have to hold your breath. (But there's no revBrowser for mobiles.) Slava -Original Message- From:

RE: record sound problem on windows

2011-07-04 Thread Slava Paperno
Alex, Your Windows test wave file sounds like some recordings I've seen where the sample rate or sample size is not stated correctly in the file's header. I've seen this happen with some audio drivers that are not capable of recording at a particular combination of sample rate and depth. I

RE: Adventures in Unicode

2011-07-04 Thread Slava Paperno
Ah, thanks, John. I must look into this. S. -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- boun...@lists.runrev.com] On Behalf Of John Dixon Sent: Monday, July 04, 2011 3:52 PM To: use-livecode@lists.runrev.com Subject: RE: Adventures in Unicode

RE: record sound problem on windows

2011-07-04 Thread Slava Paperno
PS: After I set the codec to be ima4 the file recorded in Windows XP was playable by Windows Media Player and other players. S. Alex, Your Windows test wave file sounds like some recordings I've seen where the sample rate or sample size is not stated correctly in the file's header. I've seen

chasing the focus

2011-07-04 Thread Slava Paperno
I'm trying to figure out why a field is losing focus and I don't know which tools to use for the hunt. At the very end of a mouseUp handler of a button I have this: on mouseUp . focus on field SearchTarget put the name of the focusedObject cf after msg end mouseUp And I do see [field

delete array element

2011-07-03 Thread Slava Paperno
Could someone help me translate this entry in the 4.6.2 Dictionary, please? === delete variable Type: command Syntax: delete {local | global | variable} {variableName | arrayIndex} === What is the arrayIndex here? The index of what array? It seems to be an alternative to variableName, but

RE: Combobox

2011-06-30 Thread Slava Paperno
Pete, I gave up on comboboxes for a different reason--they don't have the unicodeText property, being half-buttons, half fields. I ended up emulating a combobox by putting two fields on the card--a one-line text input field, and below it, a list field. The list field is locked and initially

Copy Files in the Standalone Settings

2011-06-29 Thread Slava Paperno
I am happy to report that this has been fixed in 4.6.2. Good job, RunRev! Slava === When I use the Add Folder button in the Copy Files tab of the Standalone Settings dialog, I see the path to the folder listed with an asterisk, like this: Fonts/* I thought that when the standalone is built,

two images with the same ID

2011-06-28 Thread Slava Paperno
When I imported an image into a substack, it was given the same ID as another image in another substack. When I tried to assign one of these images as an icon to a button, the wrong image was assigned, and the button didn't look like what I wanted it to look. The two images have different short

two images with the same ID

2011-06-28 Thread Slava Paperno
-boun...@lists.runrev.com [mailto:use-livecode- boun...@lists.runrev.com] On Behalf Of stephen barncard Sent: Tuesday, June 28, 2011 3:52 AM To: How to use LiveCode Subject: Re: two images with the same ID if there is an image id 1003 then ... tested in 4.6.2 On 28 June 2011 00:04, Slava

can't get rid of menu bar in Windows

2011-06-28 Thread Slava Paperno
I used the Tools Menu Builder to create a menu bar. This automatically moved all my controls down 22 pixels to make room for the group. But I want the menu only in Mac OS, so I put this in the openStack handler: if the platform is MacOS then set the menubar of this stack to MainMenu else

can't get rid of menu bar in Windows

2011-06-28 Thread Slava Paperno
I know what I did wrong. The syntax is: set the defaultMenubar to MainMenu (NOT set the defaultMenubar to group MainMenu of card MainCard) Thanks again, S. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Copy Files in the Standalone Settings

2011-06-27 Thread Slava Paperno
When I use the Add Folder button in the Copy Files tab of the Standalone Settings dialog, I see the path to the folder listed with an asterisk, like this: Fonts/* I thought that when the standalone is built, all files in folder Fonts would be copied to folder Fonts in the subtree that contains

RE: Copy Files in the Standalone Settings

2011-06-27 Thread Slava Paperno
Thanks, Mark. Yes, I'll be using your Installer Maker, which I bought last week, but since you said a new version was coming, I'm waiting for that. No rush. I'll check the QCC database to see if this file copying has been reported as a bug. Gratefully, Slava -Original Message- From:

putting a checkmark in a pop-up menu

2011-06-27 Thread Slava Paperno
I can't find any info on how to put a checkmark to a specific menuItem in a pop-up menu button... I thought set menuHistory of me to 3 would checkmark item 3, but no, that apparently works only with options and combo boxes... any tips? Thanks, Slava

RE: putting a checkmark in a pop-up menu

2011-06-27 Thread Slava Paperno
Ah, yes, the !c prefix does it. Thank you, Mark. I don't know how I would have ever found that in the docs... Even now that I know it, I can't find any mention of !c. Gratefully, S. -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-

RE: putting a checkmark in a pop-up menu

2011-06-27 Thread Slava Paperno
Found it! Section 7.13.4 Ticks, Dashes, and Checks... Not checkmarks, but checks. All is well in the world again. Thx. S. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

RE: the object Type of me?

2011-06-26 Thread Slava Paperno
Right! Thanks, man, S. getProp controlType return word 1 of the name of the target end controlType ... ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

one way to crash the IDE

2011-06-26 Thread Slava Paperno
In case anyone is interested, here is one way to crash the 4.6.1 IDE in Windows 7 so bad that you can't even switch to the running instance of Task Manager: add to your resizeStack handler a reference to a non-existing control, then in the Run mode try to resize the stack. Works every time. Which

RE: [[ SPAM ]] RE: one way to crash the IDE

2011-06-26 Thread Slava Paperno
-livecode- boun...@lists.runrev.com] On Behalf Of Slava Paperno Sent: Sunday, June 26, 2011 3:33 PM To: 'How to use LiveCode' Subject: [[ SPAM ]] RE: one way to crash the IDE Thanks, Colin. Ctrl+period doesn't do that on Windows. Nor Ctrl+Q, Ctrl+C, or Esc... maybe someone else can help us

RE: the object Type of me?

2011-06-26 Thread Slava Paperno
Thanks, Pete! Very helpful. S. Finding out that a control is a button is often just the starting point - I needed to know what type of button it was - push button, default button, option menu button, combobox button, a popup menu button, checkbox, radio button, tab control, etc. If you

RE: the object Type of me?

2011-06-26 Thread Slava Paperno
Tres cool! Just like Adobe Director... S. getprop objectType return word 1 of the name of target end objectType you can use put the objectType of control 1 get the objectType of me -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering

the objectType of me?

2011-06-25 Thread Slava Paperno
I'm looking for the name of the property that states the object's control type, e.g. if the controlType of me is button then set cursor to hand The term controlType exists only in my imagination... what is that property called, please? Slava ___

the objectType of me?

2011-06-25 Thread Slava Paperno
I've discovered that I can use this: if word 1 of the long name of target is button then... Is that the way to do it? Seems a bit childish :) There's got to be a controlType property, no? Slava ___ use-livecode mailing list

the mouseText and Unicode: a 3-char puzzle

2011-06-21 Thread Slava Paperno
Following Tariel's report, here is a puzzle: Make a text entry field and set its font to Arial,Unicode. Put these three characters in the field and lock it: - The first one is decimal 171, the last one is decimal 187; they are called Double Angle Quotation Marks. The one in the middle is

the mouseText and Unicode: a 3-char puzzle

2011-06-21 Thread Slava Paperno
Bernd, Thanks for the good news, but it doesn't work for me. I must be doing something wrong. I am using the Russian text from Gogol that Tariel found. It is in the attached txt file, with the three problem chars. And I'm using the handler you posted on 6/16. It is in the other attached file.

RE: the mouseText and Unicode: a 3-char puzzle

2011-06-21 Thread Slava Paperno
I like your definition... a poor man's Unicode. Cute. Thanks for everything, Slava -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- boun...@lists.runrev.com] On Behalf Of BNig Sent: Tuesday, June 21, 2011 5:39 PM To:

RE: Unicode text in custom properties

2011-06-21 Thread Slava Paperno
. Thanks, Slava -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- boun...@lists.runrev.com] On Behalf Of Slava Paperno Sent: Sunday, June 19, 2011 9:22 PM To: 'How to use LiveCode' Subject: Unicode text in custom properties I was advised to store

the mouseText and Unicode: CONCLUSION

2011-06-19 Thread Slava Paperno
Доброе утро, Бернд! An article from Pravda? I like your sense of humor. The ultimate tolerance test for a LiveCode script. Thanks for the lock-screen idea. Nice touch. Yes, I think I will file this with the Quality Control Center--as you say, just a reminder: давай работай! I've already posted

Unicode text in custom properties

2011-06-19 Thread Slava Paperno
I was advised to store my Cyrillic constants in custom properties of stack objects. I forget if it was a personal recommendation or something I read in a forum. But when I type a Russian word in a custom property box of Property Inspector, then close and reopen Inspector, my text becomes

offset() functions and Unicode: SOLUTIONS

2011-06-19 Thread Slava Paperno
I thought I would broadcast some good news for a change. Good News 1) I was prepared to see that the offset() function is useless with bilingual text (i.e. a mix of Roman and non-Roman, double-byte characters) for the same reason as mouseCharChunk(), but no, it works fine. I guess the

LC error messages

2011-06-19 Thread Slava Paperno
Where are the LC error messages listed, please? S. Error 263 is import: can't read file, mask file or display. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

RE: LC error messages

2011-06-19 Thread Slava Paperno
:21 PM, Slava Paperno wrote: Where are the LC error messages listed, please? See errordialog in the dictionary, where it says: *** Comments: Standard error descriptions are stored in the cErrorsList of the first card of stack revErrorDisplay. The error-code refers to the line number

RE: the mouseText and Unicode

2011-06-18 Thread Slava Paperno
regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 18 jun 2011, at 08:07, Slava

RE: the mouseText and Unicode

2011-06-18 Thread Slava Paperno
Thanks, Bernd! Using the html is something I didn't try, but otherwise your results are exactly the same as mine: The Russian Robert (Роберт) is the fourth word, yet clicking its first letter reports it as word 3. Yes, Robert's Chinese ancestor are the culprit here, of course :) The Chinese

RE: the mouse Text and Unicode

2011-06-18 Thread Slava Paperno
When I use word 4 of the mouseCharChunk (instead of word 2), following Bernd's procedure, then your first method the number of words in char 1 to (word 4 of the mouseCharChunk) of me works for all words in my sample, and I think so does this terrifying hack. I'm still testing with longer and more

the mouseText and Unicode: the Russian letter R

2011-06-18 Thread Slava Paperno
Something is different about the Russian upper case R (Р, decimal 1056, hex 0420, you can copy it from Character Map in Windows). That's why Robert misbehaves, and so do Ruanda, Rodesia, and even USSR. Seriously, when the word СССР is clicked on any of the first three letters, and I use one of

RE: the mouseText and Unicode: the Russian letter R

2011-06-18 Thread Slava Paperno
Amen! S. -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- boun...@lists.runrev.com] On Behalf Of Malte Brill Sent: Saturday, June 18, 2011 5:22 PM To: use-livecode@lists.runrev.com Subject: Re: the mouseText and Unicode: the Russian letter R

the mouseText and Unicode: the Russian letter R

2011-06-18 Thread Slava Paperno
Hi Bernd! I hope you are having fun :) This is very entertaining... So the htmlText of char i may CONTAIN p ??? Incredible... I'll be playing with this all night. My Robert is a little different from yours: set useUnicode to true --field Robert contains one Russian letter, the upper case Р,

the mouseText and Unicode: CONCLUSION

2011-06-18 Thread Slava Paperno
Thanks to everyone who posted all the fun stuff in this thread today. The workaround below combines ideas from all of you. I learned two essential things from you guys: 1) mouseChunk, mouseText, mouseCharChunk, and a couple of related functions return the positions of bytes, not characters. In

the selectedText of a Unicode field

2011-06-17 Thread Slava Paperno
Briefly, here is the problem: put the selectedText of field BilingualText of this card into tCurrSelection --the field may hold, for example, the two words Боб Bob, which is the string assigned to the unicodeText prop. of the field set the unicodeText of field YourSelection of this card to

RE: the selectedText of a Unicode field

2011-06-17 Thread Slava Paperno
/ce On 17 jun 2011, at 09:31, Slava Paperno wrote: Briefly, here is the problem: put the selectedText of field BilingualText of this card into tCurrSelection --the field may hold, for example, the two words Боб Bob, which is the string assigned to the unicodeText prop. of the field

the mouseText and Unicode

2011-06-17 Thread Slava Paperno
Hi, List! It's me again with my Unicode problems in bilingual fields. I just spent four hours on this problem and gave up. I'm trying to retrieve the text of the word the user clicked on in a locked field. As far as I can tell, the MouseChunk and the mouseText are useless with Unicode, and

RE: nuther new newbie nuisance

2011-06-15 Thread Slava Paperno
Tim, I may be misreading your plan, or some of its details, but if I were to design what I think you are designing, I would not want to put a lot of images on scrolling backgrounds. I would use a database, like SQLite, and create a record for each item in your collection of data. If one item of

RE: nuther new newbie nuisance

2011-06-15 Thread Slava Paperno
This is a brilliant idea (using a character as a placeholder for an image), but what's the advantage of having a bunch of images in a scrollable field vs. a series of images with the Next and Previous (and maybe Any) buttons? And maybe an option for placing up to four reduced images on the card

RE: double byte chars

2011-06-13 Thread Slava Paperno
Have you used set caseSensitive to true? If it doesn't do what you want, you can always compare the decimal character code points, 1072 for the lower case a, 1040 for the upper case A etc. I do use select after in my fields with Russian/English text to set the insertion point and have not

RE: doublebyte chars

2011-06-12 Thread Slava Paperno
In my first response I suggested you use word N of the unicodeText of field MyFiled. I still recommend that. Instead of manipulating the fields, as you would with single-byte text, I suggest you put their unicodeText into variables, use the uniDecode(MyVar, UTF8) function to convert the variables

RE: double byte chars?

2011-06-11 Thread Slava Paperno
The set useUnicode to true command is necessary only if you use the charToNum() or numToChar() functions. Otherwise they’re not useful. The text in your fields is in UTF-16, and you should access it as unicodeText of field MyField. Word chunks of unicodeText can be correctly retrieved if you

RE: Cyrillic input

2011-06-06 Thread Slava Paperno
Yes, please. S. On Behalf Of Malte Brill Sent: Monday, June 06, 2011 10:32 AM To: use-livecode@lists.runrev.com Subject: Re: Cyrillic input ... Short recap: The only keyboard message that appears to fire with cyrillic keyboards is rawKeyUp. I am currently working on a little field library

RE: Option Menus

2011-06-06 Thread Slava Paperno
I use a custom property for this purpose. For example, when I use it as a navigation menu to go to a card that the user selects from an Options control, my cards have their real names and also each card has a custom property called DisplayName. Then I use this in the Options control (where

RE: the hilitedLine of list field isn't highlighted

2011-06-06 Thread Slava Paperno
: the hilitedLine of list field isn't highlighted On 6/5/11 12:19 AM, Slava Paperno wrote: I have a list field (MyListField) with a rawKeyDown handler that tells me which line is the hilitedLine after every key press. on rawKeyDown parKey put return the hilitedLine of me after msg

RE: the hilitedLine of list field isn't highlighted

2011-06-06 Thread Slava Paperno
: the hilitedLine of list field isn't highlighted On 6/6/11 12:23 PM, Slava Paperno wrote: Jacqueline, You're responding to email script with obvious goofs, sorry--but a little later I posted a link to a working demo that shows the problem: http://russian.cornell.edu

the hilitedLine of list field isn't highlighted

2011-06-04 Thread Slava Paperno
I have a list field (MyListField) with a rawKeyDown handler that tells me which line is the hilitedLine after every key press. on rawKeyDown parKey put return the hilitedLine of me after msg pass rawKeyDown parKey end of rawKeyDown When I press the Up Arrow and Down Arrow keys, I see in the

RE: revBrowser's htmltext property for Unicode text

2011-06-03 Thread Slava Paperno
: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 3 jun 2011, at 07:11, Slava Paperno wrote: When my revBrowser instance displays a UTF-8 Web page, and I look at the value returned by revBrowserGet(instanceID htmltext), I think all double-byte characters

resumeStack and revBrowser

2011-06-02 Thread Slava Paperno
As far as I can tell, when you have a revBrowser window on the screen, and you click in the revBrowser window, then click anywhere outside revBrowser, the stack receives the resumeStack message. Can someone confirm? I was using an on resumeStack handler to initialize things as I switch from

revBrowser's htmltext property for Unicode text

2011-06-02 Thread Slava Paperno
When my revBrowser instance displays a UTF-8 Web page, and I look at the value returned by revBrowserGet(instanceID htmltext), I think all double-byte characters are replaced with question marks. I think the same is true of the revBrowser selected property. Could someone please confirm? I don't

Cyrillic input

2011-06-01 Thread Slava Paperno
Malte, As I said, I'm discovering these things as I go--I hadn't even heard of LC until last month. I'm finding that work with Unicode in LC involves a lot of jumping through hoops, but so far I have been able to do everything I needed. So don't give up :) I am not sure why your stack doesn't

Unicode and revDatabase Library, SQLite: SOLVED

2011-06-01 Thread Slava Paperno
You're absolutely right, Dave, and that was my whole problem. You made my day. Now the Cyrillic text is findable, and I know that Russian--and probably other double-byte languages--can be used with LC and SQLite. Thank you! Slava From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-

Cyrillic input: working with chunks of Russian

2011-06-01 Thread Slava Paperno
Malte, You said, I do not appear to be able to say set the UnicodeText of fld test to line 2 to -1 of UTF16String. This does work for me. I don't know what the etiquette is on this list regarding attachments, so I uploaded my screen shot to http://russian.cornell.edu/CyrillicChunks.png. It

  1   2   >