Re: force exit of mouseDown?

2011-06-23 Thread Nicolas Cueto
> Be careful if you plan to build this into an app. You can't set a script to > more than 10 lines in a standalone. Woah, thanks Jacqueline!! My script does indeed have umpteen more lines than 10. A question then: if I clone a group containing a button object with script ABC, will the button of t

Re: Focus question

2011-06-23 Thread Jim Sims
On Jun 24, 2011, at 1:16 AM, Bill Vlahos wrote: > Is there a way to kick my app to the front? I even tried to run an > AppleScript to active the program but that doesn't work either. Does systemWindow do what you want? sims ___ use-livecode mailing

Re: Checkbox label

2011-06-23 Thread Pete
Thanks Ken, I'll take a look. Pete Molly's Revenge On Thu, Jun 23, 2011 at 8:16 PM, Ken Ray wrote: > > Unfortunately, I pretty much finished doing all the tools palette work > > months ago before Ken came out with his palette tool. The current > questions > > a

Re: force exit of mouseDown?

2011-06-23 Thread J. Landman Gay
On 6/23/11 10:39 PM, Nicolas Cueto wrote: Hold the presses! I've just learnt a new handler, mouseStillDown, and, more significantly, that behavior scripts don't handle mouse handlers as expected. So my solution has been to use "set script of X to" and not "set behavior of X to". Be careful i

Re: force exit of mouseDown?

2011-06-23 Thread Nicolas Cueto
Hold the presses! I've just learnt a new handler, mouseStillDown, and, more significantly, that behavior scripts don't handle mouse handlers as expected. So my solution has been to use "set script of X to" and not "set behavior of X to". Script and learn. -- Nicolas Cueto (iPhone) __

Re: Checkbox label

2011-06-23 Thread Ken Ray
> Unfortunately, I pretty much finished doing all the tools palette work > months ago before Ken came out with his palette tool. The current questions > are just possible options but everything is pretty much in place. I should > probably take a look at it though. One of the things it would need

Re: force exit of mouseDown?

2011-06-23 Thread Terry Judd
If I've got what you're trying to do right then I'd try the following approach 1. set two script locals on mouseDown - the first that the mouse is down (pDown) and the second the starting mouseLoc (pLoc) 2. in a mouseMove hander, check if pDown is true and if it is then show a 'selection' graphic

force exit of mouseDown?

2011-06-23 Thread Nicolas Cueto
Actually, I'm not sure working with mouseDown is what'll help with what I'm after. Say there's a grid of grouped objects thus: A. B. C. D. E. F. G. H. I. J. K. L. and underneath that grid is a graphic "gcBkgnd" which is opaque and a few pixels larger than the grid. The effect I've s

Re: Focus question

2011-06-23 Thread Terry Judd
On 24/06/2011 09:16 AM, "Bill Vlahos" wrote: > I figured out what the problem is but I can't figure out a workaround. > > I call an applescript embedded in a field on the preOpenCard Card script. >do field "blahblah" as applescript > > Is there a way to kick my app to the front? I even trie

Re: Checkbox label

2011-06-23 Thread Pete
Unfortunately, I pretty much finished doing all the tools palette work months ago before Ken came out with his palette tool. The current questions are just possible options but everything is pretty much in place. I should probably take a look at it though. One of the things it would need to be a

Re: Focus question

2011-06-23 Thread Bill Vlahos
I figured out what the problem is but I can't figure out a workaround. I call an applescript embedded in a field on the preOpenCard Card script. do field "blahblah" as applescript Is there a way to kick my app to the front? I even tried to run an AppleScript to active the program but that doe

Re: Checkbox label

2011-06-23 Thread Randy Hengst
That's how I've done it when I've used icons… but, to see it work, just add any icon from the choices that come with LiveCode…. then you can see if it really does what you want. Add an icon and hiliteticon to each button. be well, randy - On Jun 23, 2011, at 5:37 PM, Pete wrote: > Interest

Re: Checkbox label

2011-06-23 Thread Pete
Interesting. I must admit, I've not delved into using my own icons. Would this involve having two icons, one for the unchecked state and one for the checked state? Pete Molly's Revenge On Thu, Jun 23, 2011 at 3:27 PM, Randy Hengst wrote: > You can do that when

Re: Checkbox label

2011-06-23 Thread J. Landman Gay
On 6/23/11 4:27 PM, Pete wrote: In case you're wondering, I'm building a tools palette to allow drag and drop of some customised controls onto a card. Do you know about Ken Ray's amazing DropTools palette? He's got it all figured out. In fact, if you've got some nifty controls, he'd love to

Re: Checkbox label

2011-06-23 Thread Randy Hengst
You can do that when you use a icon file and not just the default radio or check box. When you add your icon, the text align property will do what you want. be well, randy hengst On Jun 23, 2011, at 2:15 PM, Pete wrote: > Is it possible to have the label of a checkbox appear to the left of

Re: Checkbox label

2011-06-23 Thread Pete
Thanks guys. I had thought of using a separate label but wanted to check there wasn't a built-in way to do it before going down that path. I am facing the same issue with group labels as well and will probably solve it the same way. In case you're wondering, I'm building a tools palette to allow

Re: filter?

2011-06-23 Thread J. Landman Gay
On 6/23/11 2:13 PM, Pete wrote: Is that UK or USA gazillion/bazillion? When dealing with figures that large, it is customary to switch over to astronomical units which bypass mere geographical boundaries. These are measured in Omni-Metric Galactic units -- OMGs. -- Jacqueline Landman Gay

Re: Checkbox label

2011-06-23 Thread Jim Ault
On Jun 23, 2011, at 1:38 PM, Bob Sneidar wrote: No, but you can create a label field and group it with the checkbox. That way you can put the label anywhere you want and still drag it around as a single entity. You will find that a lot of problems in LC are solved that way. Some call thes

Re: filter?

2011-06-23 Thread Jim Ault
It must be a typo, since it should be "a gazillion or brazillion times faster" and we know which programmer that refers to... so it is not UK or USA On Jun 23, 2011, at 12:13 PM, Pete wrote: Yes, remember seeing the thread on the speed difference between "with" and "for" but couldn't rememb

Re: Checkbox label

2011-06-23 Thread Bob Sneidar
No, but you can create a label field and group it with the checkbox. That way you can put the label anywhere you want and still drag it around as a single entity. You will find that a lot of problems in LC are solved that way. Some call these methods "kludges" or "hacks" but I prefer to think

Re: Checkbox label

2011-06-23 Thread Richmond Mathewson
On 06/23/2011 10:15 PM, Pete wrote: Is it possible to have the label of a checkbox appear to the left of the checkbox instead of the right? I guess same question for radio buttons as well. Pete Just spent 30 minutes fiddling around; sorry, no joy. _

Checkbox label

2011-06-23 Thread Pete
Is it possible to have the label of a checkbox appear to the left of the checkbox instead of the right? I guess same question for radio buttons as well. Pete Molly's Revenge ___ use-livecode mailing list use-livecode@lists.

Re: filter?

2011-06-23 Thread Pete
Yes, remember seeing the thread on the speed difference between "with" and "for" but couldn't remember which was the faster, thanks for the reminder. Is that UK or USA gazillion/bazillion? Pete Molly's Revenge On Thu, Jun 23, 2011 at 11:39 AM, J. Landman Gay wrot

Re: filter?

2011-06-23 Thread J. Landman Gay
On 6/23/11 12:23 PM, Pete wrote: Now I can add "symmetric difference" to my extremely small vocabulary of set theory terms! Yeah, I'd never heard of it either. Now I can sound smart. :) Largely academic at this point but there is a variation to the array solution that Jacque and I offered whi

Re: group name persisting

2011-06-23 Thread Pete
The "create group" command does return the id of the new group in "it" but the group command doesn't. I'm reminded of a thread I kicked off a few months ago concerning the fact that "last group" doesn't always return the group created with a group command. The dictionary recommends using "last gr

Re: group name persisting

2011-06-23 Thread Bob Sneidar
Oh hey, there you go. Well then isn't that the solution to the problem? Just set the name of the control referenced in it right after the group is recreated, or do I misunderstand the issue? It seems to me that having a group that has been ungrouped and then regrouped retain it's name is actua

Re: group name persisting

2011-06-23 Thread Richard Gaskin
J. Landman Gay wrote: On 6/23/11 11:11 AM, Bob Sneidar wrote: What would be nice is if things like creating a group returned useful information in the result, such as the ID of any object created. I should post that as a feature enhancement. You mean, besides what is returned in the "it" vari

Re: filter?

2011-06-23 Thread Pete
Now I can add "symmetric difference" to my extremely small vocabulary of set theory terms! Largely academic at this point but there is a variation to the array solution that Jacque and I offered which does it all in one repeat loop: put tlist1 & cr & tlist2 into tlist3 repeat with x=1 to the numbe

Re: group name persisting

2011-06-23 Thread J. Landman Gay
On 6/23/11 11:11 AM, Bob Sneidar wrote: What would be nice is if things like creating a group returned useful information in the result, such as the ID of any object created. I should post that as a feature enhancement. You mean, besides what is returned in the "it" variable? create group "tes

Re: filter?

2011-06-23 Thread Bob Sneidar
I read this in the dictionary: "The content of individual elements of the templateArray does not affect the final result. Only which elements exist in the templateArray, not their content, controls which elements of the array are retained and which are removed. If the array and templateArray h

Re: filter?

2011-06-23 Thread Bob Sneidar
Then intersect t2 with t1? Boolean logic? If you want unique keys in either, make copies, intersect copies one way, make copies again from the originals, intersect the other way, put the two results together? Maybe I am being simplistic. Bob On Jun 22, 2011, at 10:58 PM, Pete wrote: > I may

Re: group name persisting

2011-06-23 Thread Bob Sneidar
What would be nice is if things like creating a group returned useful information in the result, such as the ID of any object created. I should post that as a feature enhancement. Bob On Jun 23, 2011, at 12:07 AM, Pete wrote: > Thanks for the info. It's been a while since I ran into this pr

[ANN] > new version (1.4) of HUD Panel Factory on revOnline

2011-06-23 Thread René Micout
Hello, On revOnline > new version (1.4) of HUD Panel Factory (custom control). Very simple (3 instructions): 1. Choose settings of the desired panel (width, height, arrows, shadow). 2. Click on "Create" button. 3. Drag and drop the panel directly into your stack. You can also (in your stack): disp

Re: filter?

2011-06-23 Thread Michael Kann
Nicolas and others, Boy, I'm learning a lot about arrays. Thanks. If we're going to sort, we could sort the unique values to the top, then only loop down until we hit a duplicate value. Something like the following: function f v,x  if x & cr & x is in v then    return 1  else    return zero

Re: filter?

2011-06-23 Thread Dick Kriesel
On Jun 22, 2011, at 10:58 PM, Pete wrote: > I may be wrong, but I don't think intersect solves the problem. If I > understand the dictionary correctly, this will remove all the t1 keys that > do NOT match t2 keys so it does the opposite of what is needed. Thanks, Pete. I misunderstood the OP.

Re: Datagrid form: Understanding layoutControl

2011-06-23 Thread Malte Brill
Nevermind. RTFM helps... Cheers, Malte ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode

OT Re: group name persisting

2011-06-23 Thread David Glasgow
On 22 Jun 2011, at 3:48 pm, Nicolas Cueto wrote: > But all I got in return for my discomfort were stinky > fingers. BTW, wasn't that the title of a Stones album? You are close. But for LiveCoders, there was the remix "Stacky Fingers" Best Wishes, David Glasgow Carlton Glasgow Partnership

Datagrid form: Understanding layoutControl

2011-06-23 Thread Malte Brill
Hi all, i run into a slight problem with a datagrid form. Sometimes when scrolling to the last entry it does not show all of it. The form is made up of some fields. I set the height of them in layoutControl in the row behavior. Is that the correct place to do so? If so, any clue on why the last

Re: group name persisting

2011-06-23 Thread Pete
Thanks for the info. It's been a while since I ran into this problem so my memory is hazy but I'm pretty sure that there was no nesting of groups involved. I guess I should take a look at the bug that was mentioned and see if it matches what happened to me. Pete Molly's Revenge