* [NTG-context] tooltips @ 2002-10-20 21:59 Hans Hagen 2002-10-21 12:26 ` Jens-Uwe Morawski 0 siblings, 1 reply; 8+ messages in thread From: Hans Hagen @ 2002-10-20 21:59 UTC (permalink / raw) Hi, i come back to the tooltips later, first i have to catch a few deadlines Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf ------------------------------------------------------------------------- _______________________________________________ ntg-context mailing list ntg-context@ref.ntg.nl http://ref.ntg.nl/mailman/listinfo/ntg-context ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [NTG-context] tooltips 2002-10-20 21:59 [NTG-context] tooltips Hans Hagen @ 2002-10-21 12:26 ` Jens-Uwe Morawski 2002-10-21 13:45 ` Re[2]: " Giuseppe Bilotta 2002-10-21 15:56 ` Giuseppe Bilotta 0 siblings, 2 replies; 8+ messages in thread From: Jens-Uwe Morawski @ 2002-10-21 12:26 UTC (permalink / raw) On Sun, 20 Oct 2002 23:59:31 +0200 Hans Hagen <pragma@wxs.nl> wrote: > i come back to the tooltips later before i forget it, i would like to give here an additional idea about this topic: IMO, the whole thing should be more general, maybe by calling it 'balloons' or 'balloonwidget'. The usage in \footnote, \tooltip or \cite is only an instance of the more general balloon-object. For example, i would like to use such a ballon-widget as a dropdown-menu in an interactive document that contains a list of chapters, ...: \balloon[placement={below,centered}, frameclass=DropMenu, opendirection=down, openaction=OnClick] {Chapters} {\placelist [chapter] [criterium=all, alternative=a, pagenumber=no, interaction=all]} and tooltips are then: \defineballoon[tooltip][...] Could this be done? Have a nice day, Jens _______________________________________________ ntg-context mailing list ntg-context@ref.ntg.nl http://ref.ntg.nl/mailman/listinfo/ntg-context ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re[2]: [NTG-context] tooltips 2002-10-21 12:26 ` Jens-Uwe Morawski @ 2002-10-21 13:45 ` Giuseppe Bilotta 2002-10-21 15:56 ` Giuseppe Bilotta 1 sibling, 0 replies; 8+ messages in thread From: Giuseppe Bilotta @ 2002-10-21 13:45 UTC (permalink / raw) Cc: ntg-context Monday, October 21, 2002 Jens-Uwe Morawski wrote: JUM> For example, i would like to use such a ballon-widget as a JUM> dropdown-menu in an interactive document that contains JUM> a list of chapters, ...: JUM> \balloon[placement={below,centered}, JUM> frameclass=DropMenu, JUM> opendirection=down, JUM> openaction=OnClick] JUM> {Chapters} JUM> {\placelist JUM> [chapter] JUM> [criterium=all, JUM> alternative=a, JUM> pagenumber=no, JUM> interaction=all]} JUM> and tooltips are then: JUM> \defineballoon[tooltip][...] Sounds definitely what we are all looking for :) -- Giuseppe "Oblomov" Bilotta _______________________________________________ ntg-context mailing list ntg-context@ref.ntg.nl http://ref.ntg.nl/mailman/listinfo/ntg-context ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re[2]: [NTG-context] tooltips 2002-10-21 12:26 ` Jens-Uwe Morawski 2002-10-21 13:45 ` Re[2]: " Giuseppe Bilotta @ 2002-10-21 15:56 ` Giuseppe Bilotta 2002-10-21 20:45 ` Jens-Uwe Morawski 1 sibling, 1 reply; 8+ messages in thread From: Giuseppe Bilotta @ 2002-10-21 15:56 UTC (permalink / raw) Cc: ntg-context Monday, October 21, 2002 Jens-Uwe Morawski wrote: JUM> On Sun, 20 Oct 2002 23:59:31 +0200 JUM> Hans Hagen <pragma@wxs.nl> wrote: >> i come back to the tooltips later JUM> before i forget it, i would like to give here an additional idea JUM> about this topic: JUM> IMO, the whole thing should be more general, maybe by calling it JUM> 'balloons' or 'balloonwidget'. The usage in \footnote, \tooltip or JUM> \cite is only an instance of the more general balloon-object. JUM> For example, i would like to use such a ballon-widget as a JUM> dropdown-menu in an interactive document that contains JUM> a list of chapters, ...: JUM> \balloon[placement={below,centered}, JUM> frameclass=DropMenu, JUM> opendirection=down, JUM> openaction=OnClick] JUM> {Chapters} JUM> {\placelist JUM> [chapter] JUM> [criterium=all, JUM> alternative=a, JUM> pagenumber=no, JUM> interaction=all]} JUM> and tooltips are then: JUM> \defineballoon[tooltip][...] I have a draft implementation for this. By now, the only thing that can be configured is the framecommand. I decided to use this instead of a frameclass because it's even more flexible (with frameclass, you need to define a different frame class for each different ballon type, even if changes are small; this way, small changes can be applied more easily when defining new tooltips.) Put the following code in your cont-new.tex file or in your cont-loc.tex file (whichever you use for customizations), until Hnas decides to pass it to the core. I hope to come out myself with more customization options, but I would have to study fields and co. Maybe I'll leave that to Hans though. BTW, your stuff seems to more oriented towards what Hans called "helps" rather than tooltips, but I don't know much about this feature. Anyway, here's the code for custom balloons. Hope I didn't reinvent the wheel ... ===== BEGIN CODE ===== % Redefine tooltips as a subclass of the more generic balloon % class \startconstants all framecommand: framecommand \stopconstants \def\defineballoon[#1][#2]{% \@EA\def\csname#1\endcsname {\dodoubleempty\doballoon[#1]}% \@EA\def\csname\e!stel#1\e!in\endcsname {\dodoubleempty\setupballon[#1]}% \setupballoon[#1][#2]} % Currently only supports framecommand \def\setupballoon[#1][#2]{% \getparameters[balloon:#1:][#2] } \def\doballoon[#1][#2]#3#4% {\bgroup \setupfields[\v!reset]% \useJSscripts[fld]% \setbox0\hbox {\mindermeldingen \nextsystemfield \trialtypesettingtrue \setbox0=\hbox{#3}% \trialtypesettingfalse \definesymbol [\currentsystemfield:txt] [{\getvalue{balloon:#1:\c!framecommand}{#4}}]% \trialtypesettingtrue \setbox2=\hbox{\symbol[\currentsystemfield:txt]}% \trialtypesettingfalse \definefield [\currentsystemfield:txt][check] [dummy][\currentsystemfield:txt][\currentsystemfield:txt]% \setupfield [dummy] [\c!kader=\v!uit, \c!gebieduit=JS(Hide_Field{\currentsystemfield:txt}), \c!optie=\v!verborgen]% \hbox to \zeropoint {\dimen0\wd2\advance\dimen0 -\wd0 \doifelse{#2}\v!links {\hskip-\dimen0} {\doif{#2}\v!midden {\hskip-.5\dimen0}}% \lower\openlineheight % this needs to be configurable \hbox to \zeropoint {\fitfield[\currentsystemfield:txt]}}% \dimen0=\ifdim\wd0=\zeropoint 3em\else\wd0\fi % Should the following be configurable too? \definesymbol [\currentsystemfield:but] [{\framed[\c!hoogte=2ex,\c!breedte=\dimen0,\c!kader=\v!uit]{}}]% \definefield [\currentsystemfield:but][push] [dummy][\currentsystemfield:but][\currentsystemfield:but]% \setupfield [dummy] [\c!kader=\v!uit, \c!optie=, \c!gebiedin=JS(Vide_Field{\currentsystemfield:txt}), \c!gebieduit=JS(Hide_Field{\currentsystemfield:txt})]% \lower2ex % this should be configurable \hbox to \zeropoint {\fitfield[\currentsystemfield:but]}% #3}% \ht0=\ht\strutbox\dp0=\dp\strutbox\box0 \egroup} % Redefines the old tooltip with the new command ... \defineballoon[tooltip][\c!framecommand={\inframed[\c!kader=\v!uit,\c!achtergrond=\v!raster]}] ===== END CODE ===== -- Giuseppe "Oblomov" Bilotta _______________________________________________ ntg-context mailing list ntg-context@ref.ntg.nl http://ref.ntg.nl/mailman/listinfo/ntg-context ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re[2]: [NTG-context] tooltips 2002-10-21 15:56 ` Giuseppe Bilotta @ 2002-10-21 20:45 ` Jens-Uwe Morawski 0 siblings, 0 replies; 8+ messages in thread From: Jens-Uwe Morawski @ 2002-10-21 20:45 UTC (permalink / raw) On Mon, 21 Oct 2002 17:56:01 +0200 Giuseppe Bilotta <gip.bilotta@iol.it> wrote: > > Monday, October 21, 2002 Jens-Uwe Morawski wrote: > > JUM> On Sun, 20 Oct 2002 23:59:31 +0200 > JUM> Hans Hagen <pragma@wxs.nl> wrote: > > >> i come back to the tooltips later > JUM> \balloon[placement={below,centered}, > JUM> frameclass=DropMenu, > JUM> opendirection=down, > JUM> openaction=OnClick] > JUM> {Chapters} > JUM> {\placelist > JUM> [chapter] > JUM> [criterium=all, > JUM> alternative=a, > JUM> pagenumber=no, > JUM> interaction=all]} > > JUM> and tooltips are then: > JUM> \defineballoon[tooltip][...] > > I have a draft implementation for this. will test it later > By now, the only thing > that can be configured is the framecommand. I decided to use this > instead of a frameclass because it's even more flexible > (with frameclass, you need to define a different frame class for each > different ballon type, even if changes are small; this way, small > changes can be applied more easily when defining new tooltips.) i was thinking that the framedclass= option could mean that the object inherits the configuration of the framed-class. So \defineframed[MyFramed][frame=off,leftframe=on,topframe=on,framecolor=red] can be used as \MyFramed, but even in \balloon[framedclass=MyFramed,framecolor=green]{...}{...} This balloon would have the top-frame and the left-frame visible, but the frame is drawn in green instead of red. Thus you _can_ specify a framedclass= to inherit a configuration but you have also all other framed-parameters (see \setupframed) available. For consistency this should be possible in all objects that support framed-settings, not only in balloons. Jens _______________________________________________ ntg-context mailing list ntg-context@ref.ntg.nl http://ref.ntg.nl/mailman/listinfo/ntg-context ^ permalink raw reply [flat|nested] 8+ messages in thread
* [NTG-context] Tooltips @ 2002-10-17 17:01 Giuseppe Bilotta 2002-10-17 23:41 ` Jens-Uwe Morawski 2002-10-18 7:59 ` Hans Hagen 0 siblings, 2 replies; 8+ messages in thread From: Giuseppe Bilotta @ 2002-10-17 17:01 UTC (permalink / raw) Hello, I notice that the "active area" that triggers tooltips is a little misplaced to the bottom right. Is this a "wanted" effect? -- Giuseppe "Oblomov" Bilotta _______________________________________________ ntg-context mailing list ntg-context@ref.ntg.nl http://ref.ntg.nl/mailman/listinfo/ntg-context ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [NTG-context] Tooltips 2002-10-17 17:01 [NTG-context] Tooltips Giuseppe Bilotta @ 2002-10-17 23:41 ` Jens-Uwe Morawski 2002-10-18 7:59 ` Hans Hagen 1 sibling, 0 replies; 8+ messages in thread From: Jens-Uwe Morawski @ 2002-10-17 23:41 UTC (permalink / raw) On Thu, 17 Oct 2002 19:01:01 +0200 Giuseppe Bilotta <gip.bilotta@iol.it> wrote: > I notice that the "active area" that triggers tooltips is a little > misplaced to the bottom right. Is this a "wanted" effect? Sorry, i can not answer this, but your question reminded me that i have also an question about tooltips: Is it possible to make the whole word an active area for the tooltip instead of the currently used small area below? Thanks, Jens _______________________________________________ ntg-context mailing list ntg-context@ref.ntg.nl http://ref.ntg.nl/mailman/listinfo/ntg-context ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [NTG-context] Tooltips 2002-10-17 17:01 [NTG-context] Tooltips Giuseppe Bilotta 2002-10-17 23:41 ` Jens-Uwe Morawski @ 2002-10-18 7:59 ` Hans Hagen 1 sibling, 0 replies; 8+ messages in thread From: Hans Hagen @ 2002-10-18 7:59 UTC (permalink / raw) Cc: ntg-context At 07:01 PM 10/17/2002 +0200, Giuseppe Bilotta wrote: >.I notice that the "active area" that triggers tooltips is a little >misplaced to the bottom right. Is this a "wanted" effect? yes, has to do with convenient pointing area -) Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf ------------------------------------------------------------------------- _______________________________________________ ntg-context mailing list ntg-context@ref.ntg.nl http://ref.ntg.nl/mailman/listinfo/ntg-context ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2002-10-21 20:45 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2002-10-20 21:59 [NTG-context] tooltips Hans Hagen 2002-10-21 12:26 ` Jens-Uwe Morawski 2002-10-21 13:45 ` Re[2]: " Giuseppe Bilotta 2002-10-21 15:56 ` Giuseppe Bilotta 2002-10-21 20:45 ` Jens-Uwe Morawski -- strict thread matches above, loose matches on Subject: below -- 2002-10-17 17:01 [NTG-context] Tooltips Giuseppe Bilotta 2002-10-17 23:41 ` Jens-Uwe Morawski 2002-10-18 7:59 ` Hans Hagen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).