Eduardo Cavazos | 20 Aug 21:01

"button" in an article

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!

(Continue reading)

Slava Pestov | 20 Aug 21:09

Re: "button" in an article

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 <wayo.cavazos-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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
Factor-talk-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
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
Factor-talk@...
https://lists.sourceforge.net/lists/listinfo/factor-talk
Eduardo Cavazos | 20 Aug 21:28

Re: "button" in an article

On Wednesday 20 August 2008 14:09:11 Slava Pestov wrote:

> : $gadget ( element -- )
>
>     first call gadget. ;
>
> Then in your help article,
>
> { $gadget [ "Hello" [ drop "xterm" run-process ] <bevel-button> ] }

Too easy... Thanks man!

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=/

Gmane