Re: Window manager plugin?

2014-08-26 Thread Peter M. Brigham
Nice. Don't forget to reset the templatestack. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Aug 25, 2014, at 3:49 PM, Mark Schonewille wrote: John, Here's my complete solution: on mouseUp put item 1 of the screenLoc comma round(item 2 of the

Re: Window manager plugin?

2014-08-26 Thread JB
Thank you very much, Mark!! That is really nice! John Balgenorth On Aug 25, 2014, at 12:49 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: John, Here's my complete solution: on mouseUp put item 1 of the screenLoc comma round(item 2 of the screenLoc / 3) into

Re: Window manager plugin?

2014-08-26 Thread Mark Schonewille
Hi Peter, You're right. I thought of it, but forgot to add it. -- 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: http://qery.us/468

Re: Window manager plugin?

2014-08-26 Thread J. Landman Gay
On 8/26/2014, 7:01 AM, JB wrote: Thank you very much, Mark!! That is really nice! Unfortunately, I couldn't get Mark's answer and ask handlers to work on Mac. On Windows the default position is at the location of the default stack, which is why it works there. On Mac, it looks like you'll

Re: Window manager plugin?

2014-08-26 Thread Mark Schonewille
Jacque, It is true that it doesn't work on Mac, but I never needed something like this on Mac. I made this specifically for Windows. On Mac I use as sheet most of the time. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage:

Re: Window manager plugin?

2014-08-25 Thread Mark Schonewille
John, Here's my complete solution: on mouseUp put item 1 of the screenLoc comma round(item 2 of the screenLoc / 3) into myLoc askAt Hello,Write something,myLoc if it is not empty then answerAt You wrote: the result,myLoc,Yep,Nope end if put the result

Re: Window manager plugin?

2014-08-23 Thread Mark Schonewille
Hi John, No, but that should be easy. There are several ways to do this. For example, create an invisible stack, set its location to the location where you want the answer dialog. Set the defaultStack to this stack and execute the ask or answer command. There may be more elegant ways. set the

Re: Window manager plugin?

2014-08-23 Thread Scott Rossi
Will that let you position the ask and answer dialogs? John Balgenorth Here's one way to position ask/answer dialogs on desktop: [ in your stack script ] on suspendStack if ask dialog is among the lines of the openStacks then set the loc of stack ask dialog to the loc of

Re: Window manager plugin?

2014-08-23 Thread JB
Hi Scott, I put the script in my stack script and it continued to show the answer dialog in the center of the screen. So I replaced llc with “112,110” and nothing changed. Then I added put the openStacks into the mouseUp handler where the answer dialog is called from. If it is at the very

Re: Window manager plugin?

2014-08-23 Thread Richard Gaskin
Scott Rossi wrote: Here's one way to position ask/answer dialogs on desktop: [ in your stack script ] on suspendStack if ask dialog is among the lines of the openStacks then set the loc of stack ask dialog to the loc of me end if end suspendStack on suspendStack if answer

Re: Window manager plugin?

2014-08-23 Thread Scott Rossi
I should have clarified that I listed two scripts: one for answer, one for ask. But the script is working here for all versions of LC, Mac and Win, including v7. Not sure what to tell you. Did you try the script in a new, empty stack? Something like this would be better to be all-inclusive:

Re: Window manager plugin?

2014-08-23 Thread JB
Thanks for the info, Richard. John Balgenorth On Aug 23, 2014, at 9:59 AM, Richard Gaskin ambassa...@fourthworld.com wrote: Scott Rossi wrote: Here's one way to position ask/answer dialogs on desktop: [ in your stack script ] on suspendStack if ask dialog is among the lines of the

Re: Window manager plugin?

2014-08-23 Thread JB
Thanks Scott. I cannot believe how dumb I am somedays. The problem was I pasted the code as it was in my openStack handler and after looking at it I see they both call the same thing. Your latest version fixed it. thank again. John Balgenorth On Aug 23, 2014, at 10:07 AM, Scott Rossi

Re: Window manager plugin?

2014-08-23 Thread J. Landman Gay
On 8/23/2014, 12:07 PM, Scott Rossi wrote: I should have clarified that I listed two scripts: one for answer, one for ask. But the script is working here for all versions of LC, Mac and Win, including v7. Not sure what to tell you. Did you try the script in a new, empty stack? Something like

Re: Window manager plugin?

2014-08-23 Thread Scott Rossi
If you haven't already, try the script in an empty stack -- should work as expected. I doubt my systems have any special mojo going on (usually I get curses, plagues, and the occasional hex). Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 8/23/14 11:06 AM, J. Landman

Re: Window manager plugin?

2014-08-23 Thread JB
Thanks, Jacque. It is nice to have some more code examples. I was able to get it to work okay but if I use answer warning the warning icon does not show. Is there a way to get it to show up with this code? John Balgenorth On Aug 23, 2014, at 11:06 AM, J. Landman Gay jac...@hyperactivesw.com

Re: Window manager plugin?

2014-08-23 Thread J. Landman Gay
I believe you. I needed it for The Big Project, which already has a suspendStack handler, and I was trying to integrate your part. There's a backscript too with a few thousand lines of code that traps most system messages. I never bothered to figure out why it didn't work, I just plugged in my

Re: Window manager plugin?

2014-08-23 Thread Scott Rossi
Ooo. I smell a t-shirt to be made: Your way is clean, but I need a hack. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 8/23/14 11:50 AM, J. Landman Gay jac...@hyperactivesw.com wrote: I believe you. I needed it for The Big Project, which already has a suspendStack

Re: Window manager plugin?

2014-08-23 Thread J. Landman Gay
If I change the answer line to this it works: answer warning pString with pBtn1 and pBtn2 If you want a more flexible handler that answers with regular, warning, or info icons, then you'd need to pass that in a parameter and branch the handler depending on the type. I wasn't able to get it

Re: Window manager plugin?

2014-08-23 Thread JB
That works good! Very nice, thank you. John Balgenorth On Aug 23, 2014, at 12:39 PM, J. Landman Gay jac...@hyperactivesw.com wrote: If I change the answer line to this it works: answer warning pString with pBtn1 and pBtn2 If you want a more flexible handler that answers with regular,

Window manager plugin?

2014-08-22 Thread Charles E Buchwald
Hi List Folks, I've been thinking about making a plugin that manages window positions or window layouts. If you are familiar with Adobe applications like Illustrator, Photoshop or InDesign, then you may have an idea of what I mean. Or perhaps you have used system-level utilities like Moom,

Re: Window manager plugin?

2014-08-22 Thread Mark Schonewille
Hi Charles, I made a plug-in (donationware) which makes sure that windows open inside a visible screen rect and not off-screen. I could extend it and make it remember window positions. -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com Download Color

Re: Window manager plugin?

2014-08-22 Thread JB
Hi Mark, Will that let you position the ask and answer dialogs? John Balgenorth On Aug 22, 2014, at 5:14 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Hi Charles, I made a plug-in (donationware) which makes sure that windows open inside a visible screen rect and not