Unicode and revBrowser: "selected" property and callback messages: SOLUTION

2011-05-29 Thread Slava Paperno
Jacqueline said today: > ... full support for unicode is high on the list and is coming. RR > doesn't expect you to jump through all those hoops forever, and when > they are done, you won't have to worry about unicode at all... No doubt! In the meantime, I posted the code that emerged from all th

Re: Button Labels With icons

2011-05-29 Thread Todd Geist
thanks everyone! the margins property works -- geist interactive 805-419-9382 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and

Re: Button Labels With icons

2011-05-29 Thread J. Landman Gay
On 5/29/11 6:21 PM, Todd Geist wrote: Is there any way to center the label of a button that has an Icon? Or is the label always pushed to the bottom by the icon? I would like to avoid having to create custom images for each button just to change the text of the button that shows up in the cente

Re: Unicode and revBrowser: "selected" property and callback messages

2011-05-29 Thread J. Landman Gay
On 5/29/11 2:21 PM, Slava Paperno wrote: For example, you can't type or display Unicode in the Variable Watcher, or Message Box, or script, or the answer and ask boxes (w/o resorting to a really impossible kludge of using HTML entities), and for any string processing you have to convert the UTF1

Re: Unicode and revBrowser: "selected" property and callback messages

2011-05-29 Thread Mike Bonner
Very cool! Gonna go grab revhttp, thx Andre On Sun, May 29, 2011 at 5:46 PM, Slava Paperno wrote: > Wow, what a concept. I'll play with that. > > I'll put revHTTP in the subject line if I need help or have something to > share, > > Slava > > > -Original Message- > > From: use-livecode-bou

Unicode and revBrowser: "selected" property and callback messages

2011-05-29 Thread Slava Paperno
Wow, what a concept. I'll play with that. I'll put revHTTP in the subject line if I need help or have something to share, Slava > -Original Message- > From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- > boun...@lists.runrev.com] On Behalf Of Todd Geist > Sent: Sunday, May

RE: Button Labels With icons

2011-05-29 Thread Slava Paperno
Have you tried playing with text properties of the button: margins and justification? S. > Is there any way to center the label of a button that has an Icon? Or > is > the label always pushed to the bottom by the icon? > > I would like to avoid having to create custom images for each button >

Re: Simple Game Server -- request for help

2011-05-29 Thread Björnke von Gierke
As you noticed, webservers are really bad at sending data to clients without being prompted first. If you are free to use your own computer as server, i suggest doing it like chatrev, having a server stack that is publicly available on the internet. That way is the easiest way to avoid the stat

Button Labels With icons

2011-05-29 Thread Todd Geist
Is there any way to center the label of a button that has an Icon? Or is the label always pushed to the bottom by the icon? I would like to avoid having to create custom images for each button just to change the text of the button that shows up in the center. Is this possible? Thanks Todd To

Re: Unicode and revBrowser: "selected" property and callback messages

2011-05-29 Thread Todd Geist
> > 1) can a JavaScript function in the Web page that is displayed by > revBrowser > send a message back to the stack, and pass a parameter with that message? > Something like onmouseclick="CallMotherStack(myValueStr)"? > Yes it can! This is something I have been messing with lately. I have a pr

Unicode and revBrowser: "selected" property and callback messages

2011-05-29 Thread Slava Paperno
Mike's brilliant suggestion is to use browserBeforeNavigate() for passing back a string to the stack via the URL parameter.Very smart and original, especially since that can be done on dblclick--an event that otherwise cannot be captured by revBrowser. That doesn't resolve the Unicode problem, but

Re: Importing Unicode text to a field .. How?

2011-05-29 Thread Richmond Mathewson
On 05/28/2011 11:56 PM, Web Admin Himalayan Academy wrote: Sweet Mangos! It works (smile) I was very close.. in fact I thought I had tried that before. Interesting that you cannot do the replacement in the field itself, you have to do it to the data in the variable *before* you pass it to th

Re: Simple Game Server -- request for help

2011-05-29 Thread Mark Wieder
Jim- Sunday, May 29, 2011, 9:05:09 AM, you wrote: > 2. Is there a way (using some kind of push method) that could > eliminate polling for moves? It would be nice to extend the > capability of the server to support faster games, such as between > robot players. Why would you consider client polli

Re: Unicode and revBrowser: "selected" property and callback messages

2011-05-29 Thread Mike Bonner
Just had another thought. I think in another thread, someone said that manually copying and then pasting unicode into a field works, perhaps javascript can be used to copy the clicked word to the clipboard and it can be used from there? IE, direct access to the clipboarddata["text"].. On Sun, May

Re: custom stack resize contro

2011-05-29 Thread J. Landman Gay
On 5/28/11 11:26 PM, dunb...@aol.com wrote: A direct way to do it, though with my quick workup one must move slowly, is to have this in the card or stack script: on mouseMove put the rect of this stack into tRect put the screenMouseLoc into tLoc if item 3 of tRect - item 1 of tLoc< 20

Re: Simple Game Server -- request for help

2011-05-29 Thread stephen barncard
Check out Chatrev and chatrev server. I think it uses sockets and it's own protocol. I don't think polling is used - everything is message based. http://bjoernke.com/index.irev?target=chatrev at any rate BvG is your man for this sort of project, he is quite active on this list and will be alon

Simple Game Server -- request for help

2011-05-29 Thread Jim Lyons
Goal: To create a general purpose CGI server that would allow two players to exchange moves over the internet. Game platform might be Live-Code stack or other client capable of internet communication, either desktop or mobile. Note that the scope of this is initially only for private, low-traffi

Re: Unicode and revBrowser: "selected" property and callback messages

2011-05-29 Thread J. Landman Gay
On 5/29/11 7:37 AM, Slava Paperno wrote: Thanks for thinking about this, Jacqueline. The problem persists. From all you've tried so far, it does look like the selected text isn't compatible with unicode. Please let us know if you can use Mike's workaround, I think a lot of people will want to

Unicode and revBrowser: "selected" property and callback messages

2011-05-29 Thread Slava Paperno
Cool! Your wordRet works great--for English. And there are more things there that I can learn from. Thanks, Mike--I think I'm on my way. Will post a complete solution for the list archives. Workarounds are our bread-and-butter... Gratefully, Slava > -Original Message- > From: use-liveco

[ANN] ChartMaker video tutorials

2011-05-29 Thread FlexibleLearning
ChartMaker Screencasts Five short video tutorials have been uploaded to the ChartMaker support site... http://www.flexiblelearning.com/chartmaker/cmrc/ Designed to give a short overview of the whole process, they cover Installing the stacks, The Toolbar, Creating and Saving Charts, Output to Fil

Re: Unicode and revBrowser: "selected" property and callback messages

2011-05-29 Thread Mike Bonner
Yeah, can get around it easy by using a url-less link. Just #theword instead of http://fullurl.com/mypage.html#theword I really have zero idea what to do about the unicode stuff, but if you can figure out how to make it work when grabbing the text with revbrowserget(sbrowserId,"selecterd") then I

RE: Unicode and revBrowser: "selected" property and callback messages

2011-05-29 Thread Slava Paperno
Great, I'll try that, too, Mike--thanks. I couldn't have thought of it, but of course passing parameters in the URL is the most natural thing to do... In my case there's no URL, because I load these "Web pages" locally by assigning the HTML string from the database to the revBrowser's "htmltext" pr

RE: Unicode and revBrowser: "selected" property and callback messages

2011-05-29 Thread Slava Paperno
Thanks, Mike. Briefly: when a JavaScript function returns a Russian string to revBrowserCallScript(), the Unicode characters in it are replaced with question marks, just like they are in the "selected" property of the revBrowser instance. In more detail: I know and understand what you say about t

Re: Unicode and revBrowser: "selected" property and callback messages

2011-05-29 Thread Mike Bonner
Actually, just had a different thought. May have seen this in the forums or here before, so not sure its my idea, but.. There is a callback browserBeforeNavigate. If you set your javascript to try and navigate to a jump link URL on doubleclick of a word, then it will be sent to browserBeforeNaviga

Re: Unicode and revBrowser: "selected" property and callback messages

2011-05-29 Thread Mike Bonner
Can't help with the unicode part, but if you turn on advanced messages in revbrowser, you can catch clicks. revbrowserset sBrowserId,"messages",true From the dictionary: *Note: The "advanced" callback messages are: browserClick, browserOut and browserOver. These messages are only sent when the "me

Unicode and revBrowser: "selected" property and callback messages

2011-05-29 Thread Slava Paperno
Thanks for thinking about this, Jacqueline. The problem persists. I said: > > When a user double-clicks a word in the revBrowser window, I would like a message > to be sent by revBrowser to the stack, with that word as a parameter. And you said: > Your best bet is to put in a feature > request in

Re: Challenge: Faking 3D extrusion of a polygon

2011-05-29 Thread Alejandro Tejada
Hi Michael, Michael Kristensen wrote: > > Challenge: Faking 3D extrusion of a polygon > This is a challenge of making a fake 3D extrusion of a random shaped > polygon. > [snip] > I have ported a stack created by Alexandre Thomas in HyperCard, that rotate 3D models saved in ROT format. Downloa