Re: Easier menu creation
| From: | Andrei Zmievski | Date: | Mon, 05 Mar 2001 20:01:18 +0000 |
| Subject: | Re: Easier menu creation | ||
| References: | 1 2 3 4 5 6 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-317@lists.php.net to get a copy of this message | ||
On Mon, 05 Mar 2001, Jan Lehnardt wrote:
> The callback function is the function that is executet when a certain
> signal appears (clicked on buttons, activete(d) on menus), or am I
> wrong? If not, I want to have different parameters for each entry.
> E.g.
> Edit ->Search
> ->Search and Replace
>
> Imagine such menu. perhaps you have a function that pops up a search and
> replace dialog. if a parameter is transmitted it shows the s+r part, if
> not only the search part. the callback for search would be
> popup_search() and the callback for search and replace
> popup_search(true); or popup_search('replace');
>
> It's silly example, I hope it becomes clear what I want ;-).
Well, in your example you can just use callback_action to figure out
what to display. But I will add ability to specify callback parameters
for every factory item.
-Andrei
"Perl - the only language that looks the same
before and after RSA encryption." -Keith Bostic