Hi Ed,

: $gadget ( element -- )
    first call gadget. ;

Then in your help article,

{ $gadget [ "Hello" [ drop "xterm" run-process ] <bevel-button> ] }

Slava

On Wed, Aug 20, 2008 at 2:04 PM, Eduardo Cavazos <[EMAIL PROTECTED]>wrote:

> Slava,
>
> I'd like to have a clickable "button" in a help article. I've been hunting
> around in the examples and documentation but it's not clear to me how to
> achieve this sort of effect.
>
> There have been various times in the past when I've thought it would be
> nice
> to embed a gadget in a documentation article. While I know that this is
> technically possible since the help system is gadgets all the way down, do
> you think it's a feasible feature?
>
> I'm thinking of something along the lines of a markup element like this:
>
>        { $gadget [ "xterm" [ drop "xterm" try-process ] ] }
>
> As for my immediate needs, I don't need full gadget embeddability. Just a
> way
> to run some action associated with an object type.
>
> I figured out how to add stuff to the "right click" menu for my class of
> objects:
>
>        TUPLE: xyz ;
>
>        [ xyz? ] \ the-action H{ } define-operation
>
> I'm just unsure of how to have that "operation" be reflected in a
> presentation
> in a help article.
>
> Any hints appreciated!
>
> Ed
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Factor-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to