Re: Variable transfers Between Stacks and Sub-Stacks.

2007-04-02 Thread Simon HARPER
Hi there Dave, Thanks for this - and I wonder if it is possible to get more details on your inter stack manager. Cheers Si. Simon Harper 2.44 Kilburn Building University of Manchester (UK) Pri: [EMAIL PROTECTED] Alt: [EMAIL PROTECTED] On 29 Mar 2007, at 13:33, Dave wrote: Hi, I've

Re: Variable transfers Between Stacks and Sub-Stacks.

2007-03-30 Thread Simon HARPER
Can I thank everyone who responded to this. Thanks for that! Cheers Si. Simon Harper 2.44 Kilburn Building University of Manchester (UK) Pri: [EMAIL PROTECTED] Alt: [EMAIL PROTECTED] On 29 Mar 2007, at 17:18, Trevor DeVore wrote: On Mar 29, 2007, at 8:42 AM, Richmond Mathewson wrote:

Re: Variable transfers Between Stacks and Sub-Stacks.

2007-03-29 Thread Trevor DeVore
On Mar 29, 2007, at 12:36 PM, Richmond Mathewson wrote: "While there is nothing difficult about the example you provide above, I see a broadcasting system (like the one Dave has talked about) as making your code cleaner and easier to read." Yes, you are completely right: however, I bet you didn

Variable transfers Between Stacks and Sub-Stacks.

2007-03-29 Thread Richmond Mathewson
"While there is nothing difficult about the example you provide above, I see a broadcasting system (like the one Dave has talked about) as making your code cleaner and easier to read." Yes, you are completely right: however, I bet you didn't think up your elegant and efficient version in the 2

Re: Variable transfers Between Stacks and Sub-Stacks.

2007-03-29 Thread Trevor DeVore
On Mar 29, 2007, at 8:42 AM, Richmond Mathewson wrote: 1. So let's have a merry drop-down button on the Main Stack to change units. 2. on mouseUp the mouseLine if it is "inches" then do FANCY CONVERSION ROUTINE NUMBER 999 end if end mouseUp where FANCY CONVERSION

Variable transfers Between Stacks and Sub-Stacks.

2007-03-29 Thread Richmond Mathewson
"But how do you notify a "BOSS" that something has changed?" Oh, Dearie Me! here I am between a group of 7 year-olds ('before, after") and a group of adults (first-conditional) and I see this . . . being the fool I am, I rise to the bate:- 1. So let's have a merry drop-down button on the Main St

Re: Variable transfers Between Stacks and Sub-Stacks.

2007-03-29 Thread Dave
Hi, But how do you notify a "BOSS" that something has changed? As an example: I have a preference stack that hold the default way to display measurements (Inches, MM, CM or Pixels). Other stacks that display Measurement data use the setting to show how to display it. If I have a stack o

Variable transfers Between Stacks and Sub-Stacks.

2007-03-29 Thread Richmond Mathewson
Well . . . the way I do it ( is probably goofy and inefficient, but it works ): is pop all the variables into a list field on the mainstack and then do something rather like this: put fld "MAINSTACKVARHOLDER" of stack "BIGBOSS" into fld "SUBSTACKVARHOLDER" of stack "SMALLBOSS" where the names

Re: Variable transfers Between Stacks and Sub-Stacks.

2007-03-29 Thread Dave
Hi, I've written my own Message/Event Handling system which solves this problem plus a whole lot more. Basically it works like this: You have one stack that is the repository for all "Inter/Intra-Stack" data - Call it "DataManager". The other stacks (Call then "StackA" and "StackB" gain

Re: Variable transfers Between Stacks and Sub-Stacks.

2007-03-29 Thread Eric Chatonet
Hello Simon, There are many ways to handle user preferences and I assume that you'll get many different ideas from the list. Here is one where used stacks are assumed read-only and current prefs stored out of any stack: Default standard prefs are stored in a custom property set. This is han

Re: Variable transfers Between Stacks and Sub-Stacks.

2007-03-29 Thread Sarah Reichelt
So I've a main stack and sub-stack for preferences. I save and load the variables as a stack (not text of xml - just yet) when I open and close the substack. However, is there best practice for how to load the variables on startup of the mainstack and then use them in the mainstack - refereshing i

Variable transfers Between Stacks and Sub-Stacks.

2007-03-29 Thread Simon HARPER
Hi there, So I've a main stack and sub-stack for preferences. I save and load the variables as a stack (not text of xml - just yet) when I open and close the substack. However, is there best practice for how to load the variables on startup of the mainstack and then use them in the mainst