Hi Judy,
Let me tell you very friendly that I do'nt agree your position. Beginners are surely as clever as you and me put together ;-) Only they don't already know... And have to learn.
I think that it 's always better for them to take the right way without waiting.
Here, using the menuPick message (1 line handler versus 12 lines: Rev is sometimes verbose, sometimes so simple...) is the right way.
Adding some good explanations about parameters would complete the job.
I'm thinking of such a tutorial: How to pass parameters (handlers) and arguments (functions) by reference or not...
If I get the time and if some of you tell me that they would be interested despite my bad english :-)
Best regards,
Le 14 avr. 05, à 09:21, Judy Perry a écrit :
Hi Sarah,
Thanks for taking a look !
I am not unaware that the code I used was both verbose and non-optimized.
Believe it or not, this was deliberate! My rationale is this:
A complete newbie, non-programmer, could probably look at a series of if-then-end ifs and understand what was going on such that s/he could modify the script for a different usage.
A real programmer could likewise take a look at it and understand it while
going off muttering about what a complete idiot I am for doing it that
way.
OTOH, while a real programmer could look at the more optimized code with
its menuPick and pParameters and the like and understand it, I really
doubt that a complete newbie, non-programmer would do likewise.
I guess I should really rename my planned series 'Transcript for Dummies'
@;-)
Eric and Klaus and the others are doing nice things for the programming
crowd; I'm trying to do likewise for the DreamCard group who wants to do
something a little bit more exciting than the PowerPoint that they've been
told is all they ever need to know...
Judy
On Thu, 14 Apr 2005, Sarah Reichelt wrote:
Hi Judy,
Good tutorial and the PDF is a neat touch and very well put together.
However I suggest you have a look at the "menuPick" message which makes
handling tabs much easier.
When using one card per tab, here is the script I use:
on menuPick pCardName go to card pCardName end menuPick
For tabs where you are hiding and showing groups, it is made easy by the fact that for tabbed buttons, the menuPick has 2 parameters: the tab just chosen and the tab previously chosen, so you cna use this:
on menuPick pNewGroup, pOldGroup hide group pOldGroup show group pNewGroup end menuPick
Cheers, Sarah
Amicalement,
Eric Chatonet. ---------------------------------------------------------------- So Smart Software
For institutions, companies and associations Built-to-order applications: management, multimedia, internet, etc. Windows, Mac OS and Linux... With the French touch ---------------------------------------------------------------- Web site http://www.sosmartsoftware.com/ Email [EMAIL PROTECTED]/ Phone 33 (0)1 43 31 77 62 Mobile 33 (0)6 20 74 50 86 ----------------------------------------------------------------
_______________________________________________ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution