From: | Charlie |
Date: | 17 Jul 2000 at 02:51:50 |
Subject: | Re: More mui questions. |
----- Original Message -----
From: Tim Hanson <msinister@connectfree.co.uk>
To: <amiga-c@egroups.com>
Sent: Sunday, July 16, 2000 8:09 AM
Subject: ga-c] More mui quest
Hi All, Especially Allan,
I`ve compiled Allan`s example source and after rereading the mui developers
guide I`m fairly happy with it all except this line:
DoMethod(button, MUIM_Notify, MUIA_Selected, FALSE, texteditor, 3,
MUIM_Set, MUIA_TextEditor_Contents, "");
Now I understand that it is instructing the object button to tell the object
texteditor to set it`s contents to "" whenever button is clicked but I don`t
get the syntax at all.
In my attempts to understand I tried to add an HTMLtext object and link it
to
texteditor as Allan sugested but although adding the object was no problem
link the two was.
Using notification on an abject allows a method to be called when a certain
attribute is equal to a value.
In this case. The contents of the editor is set to "" when the MUIA_Selected
attribute is equal to FALSE.
A basic notify statement can be split up into to parts, the object and
attribute
you want to keep track on, and the destination object you want to do
something to
when the first part becomes TRUE.
the number 3 in the statemnt says to the compiler how many arguments come
after.
In this case it is MUIM_Set, MUIA_TextEditor_Contents, "" (i.e 3 arguments)
Cheers
Charlie
:
------------------------------------------------------------------------
The Most Expensive Thing You Can Haul Is An Empty Trailer.
http://click.egroups.com/1/5776/1/_/451227/_/963769588/
------------------------------------------------------------------------