Re: Missing digits when replacing single digit item with two digit item?

2014-08-04 Thread hh
Hi John, instead of decimals use true hex (has 15 digits) OR, very effective, dadaNumbers (my youngest daughter named this) you may use e.g. n=48 or n=65 function dec2dada dc,n return numToByte(n+dc) end dec2dada function dada2dec hx,n return byteToNum(hx)-n end dada2dec

Re: OpenControl

2014-08-04 Thread J. Landman Gay
On 8/3/2014, 4:03 PM, Mats Wilstrand wrote: I assume you're using a background grp. If so I have used the focusOut message to fire some action in the self-contained grp when the card changes. The focusIn message is not received by the group on crad change. This is kind of counter intuitive imho

Re: Missing digits when replacing single digit item with two digit item?

2014-08-04 Thread Brahmanathswami
John: I've had gremlins like this in the past where certain functions run before the interior expression. Or put another way: what is inside parentheses is not always evaluated as expected when running inside a function request. I have never been able to determine a recipe, but my solution

Re: OpenControl

2014-08-04 Thread hh
From your answer I understand now what's the point. You have a (shared) backgroundGroup that should go on some or all cards and you wish to change some properties of the group or its members depending on the card you wish to go to. Right? For this situation I use the following. We have one

Re: OpenControl

2014-08-04 Thread Sri
Will this work? 1. Create an invisible button in your group named, say, Card Change. 2. On openControl, Set the script of the current card to add in the on closeCard handler the statement: send mouseUp to button Card Change of group myGroup 3. When the button received the mouseUp message on

Re: OpenControl

2014-08-04 Thread Peter Haworth
On Mon, Aug 4, 2014 at 6:11 AM, hh h...@livecode.org wrote: Do all changes in a preOpenCard handler in the group's script. I believe the original post stated that no openxxx or preopenxxx handlers could be used. Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser

Re: OpenControl

2014-08-04 Thread J. Landman Gay
On 8/4/2014, 12:37 PM, Peter Haworth wrote: On Mon, Aug 4, 2014 at 6:11 AM, hh h...@livecode.org wrote: Do all changes in a preOpenCard handler in the group's script. I believe the original post stated that no openxxx or preopenxxx handlers could be used. Right. Due to this particular

Re: OpenControl

2014-08-04 Thread J. Landman Gay
On 8/4/2014, 11:46 AM, Sri wrote: Will this work? 1. Create an invisible button in your group named, say, Card Change. 2. On openControl, Set the script of the current card to add in the on closeCard handler the statement: send mouseUp to button Card Change of group myGroup 3. When the button

Re: OpenControl

2014-08-04 Thread Paul Hibbert
Jacque stated; The group needs to be self-contained with no additional scripting anywhere else in the stack. But by putting a preOpenCard (or openCard) handler in the *Group's script* does mean that the group is still self contained. I was curious, so I tried a quick experiment and this does

Re: OpenControl

2014-08-04 Thread J. Landman Gay
On 8/4/2014, 1:22 PM, Paul Hibbert wrote: But by putting a preOpenCard (or openCard) handler in the*Group's script* does mean that the group is still self contained. I was curious, so I tried a quick experiment and this does appear to work. Not too sure if it would solve Jacque's problem, but

Re: OpenControl

2014-08-04 Thread hh
Grande Dame Jacque, Jacque wrote ...The system is already too large and the messaging too complex to tinker with at this late stage ... Just let me add the following for all who reads this later on and are now a bit frustrated because we have learned a lot in this discussion. And just now

Re: OpenControl

2014-08-04 Thread hh
Paul wrote: I'd expect this just to work for user events, system events bypass controls and groups. YES it works. You know I'm now nearly experienced (3/2 years with LC). But this was *very* soon for me one of the finest things in LC (and could even enhanced by using 'behavior'): Using the

Shift-tab

2014-08-04 Thread Peter Haworth
It seems that the shift-tab key combination doesn't tab backwards in a field control as it does in other applications, although it does in a table control. Does anyone have any code to implement shift-tab they'd be willing to share? Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser

Re: Shift-tab

2014-08-04 Thread Mark Schonewille
Hi Pete, Create a new stack. Add 4 fields. Type tab to move the text insertion point to the next field, shift-tab to go to the previous field. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter:

Re: Shift-tab

2014-08-04 Thread Mark Wieder
Mark- Monday, August 4, 2014, 3:02:22 PM, you wrote: Create a new stack. Add 4 fields. Type tab to move the text insertion point to the next field, shift-tab to go to the previous field. Sorry, I can confirm that shift-tab does nothing. -- -Mark Wieder ahsoftw...@gmail.com This

Re: Shift-tab

2014-08-04 Thread Kaveh Bazargan
On 4 August 2014 23:21, Mark Wieder mwie...@ahsoftware.net wrote: Mark- Monday, August 4, 2014, 3:02:22 PM, you wrote: Create a new stack. Add 4 fields. Type tab to move the text insertion point to the next field, shift-tab to go to the previous field. Sorry, I can confirm that

Re: Shift-tab

2014-08-04 Thread Mark Schonewille
I've tested it on both Windows and Mac and it works on both platforms. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode:

Re: Shift-tab

2014-08-04 Thread Peter Haworth
On Mon, Aug 4, 2014 at 3:28 PM, Kaveh Bazargan ka...@rivervalleytechnologies.com wrote: Works for me on Mac. Cycles backwards through flds. Yeah, but I want it to put the insertion point at the tab before its current position in the current field, not cycle through fields. I think Mark is

Re: Shift-tab

2014-08-04 Thread Mark Wieder
Kaveh- Monday, August 4, 2014, 3:28:01 PM, you wrote: Works for me on Mac. Cycles backwards through flds. Interesting. Just had a chance to test this on OSX. Yep, it does indeed cycle backwards. Must be a mac thing. -- -Mark Wieder ahsoftw...@gmail.com This communication may be unlawfully

Re: OpenControl

2014-08-04 Thread J. Landman Gay
On 8/4/2014, 2:20 PM, hh wrote: Please be cautious with your direct or indirect rating: Apologies if it sounded like I was giving a rating. Your method, and the others, will work fine for most stacks. I only meant that in this particular case, it won't. I have a suite of hundreds of stacks

Re: Shift-tab

2014-08-04 Thread Mark Wieder
Mark Schonewille m.schonewille@... writes: I've tested it on both Windows and Mac and it works on both platforms. Doesn't work on linux and that's what counts :-P I'll file a bug report. No worries. -- Mark Wieder ahsoftw...@gmail.com ___

Re: Shift-tab

2014-08-04 Thread Mark Wieder
Peter Haworth pete@... writes: Yeah, but I want it to put the insertion point at the tab before its current position in the current field, not cycle through fields. I think Mark is confirming that's what doesn't work. I was actually confirming that shift-tab doesn't do *anything* on linux,

Re: Shift-tab

2014-08-04 Thread Peter Haworth
For some reason or other Mark S's posts aren't showing up in my mail app so I don't have the full text of the quote, so I'm not sure what it works is referring to. If it refers to moving to a different field and that doesn't work on Linux, certainly seems like a bug. But if it refers to what I

Re: Shift-tab

2014-08-04 Thread hh
Hi Pete and all, I have problems not only on Mac but on all platforms because my default system shortcuts block the combination modifier+tab. This may be only changed in the engine, as Mark's naming this a bug indicates. Just because I'm curious: What's wrong with using arrow keys for

Re: Shift-tab

2014-08-04 Thread Peter Haworth
On Mon, Aug 4, 2014 at 7:29 PM, hh h...@livecode.org wrote: What's wrong with using arrow keys for switching between the table-cells? One has to press only one key and two more options (up+down) with this. Works for me on Mac+Linux+Win desktop. I'm not using a table field, it's a scrolling

on-rev borked

2014-08-04 Thread Mark Wieder
nuff said. I'm using gmane to post this because email is screwed up and the cpanel page is taking on the order of ten minutes to load. Partially. The status page, of course is (when it finally loads) all green. Oh, one more thing... the server certificate (registered through the bottom-feeder of

Re: OpenControl

2014-08-04 Thread Sri
Hi Jacque: Wilstrand's method seems to work (with a little modification). In the following, oldCardID is a custom property of the group. The first focusOut is issued on closeCard. on focusOut local tID put the ID of this card into tID if tID is not the oldCardID of me then set the

on-rev borked

2014-08-04 Thread Peter W A Wood
Mark On 5 Aug 2014, at 11:06, Mark Wieder mwie...@ahsoftware.net wrote: nuff said. I'm using gmane to post this because email is screwed up and the cpanel page is taking on the order of ten minutes to load. Partially. The status page, of course is (when it finally loads) all green. The

Re: on-rev borked

2014-08-04 Thread Mark Wieder
Peter- Monday, August 4, 2014, 8:31:01 PM, you wrote: The status page shows pancake under high load for me. Everything else is green. Yeah sigh it's up again. While I'm at it, *why* do you now have to log into the livecode store page first and *then* log in to the on-rev server? I log

Re: OpenControl

2014-08-04 Thread hh
This explains a lot and solves the situation perfectly. But I didn't want you to apologize. This was one of the first things I noticed in this community, what you say is heard and has immense weight (even if it is sometimes 4.2% incorrect). There are impressive landmarks here (or in forum), to