Le samedi 25 juin 2016 11:09:01 UTC+2, Bob Flandard a écrit :
>
> Hello Evolena,
>
> Thank you for the code!, it works nicely and was much easier to get 
> working than I anticipated.
>
> It's a shame the "tool tip" option of the img macro can't be overloaded or 
> modified to show an enlarged image instead of text, that would save two 
> mouse clicks and a mouse drag to locate the "close" button. Some folks... 
> never satisfied.
>
> All the best, Bob
>
>
You can also look at the Popup exemple for the RevealWidget 
<http://tiddlywiki.com/#RevealWidget>. You can put your little image as 
content of the button widget, your enlarged image in the content of the 
reveal widget, and make this a macro to avoid writing all this stuff each 
time.

Something like that:

\define image-popup(url)
<$button popup=<<qualify "$:/state/popup/$url$">>>
[img width={{!!imagewidth}} [$url$]]
</$button>

<$reveal type="popup" state=<<qualify "$:/state/popup/$url$">>>
[img[$url$]]
</$reveal>
\end
The qualify macro ensure all your image popup don't pop at the same time when 
you click on one.


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3e8f9200-22bc-433a-891b-b3830ecf2a2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to