Tags:
create new tag
view all tags

Question

Hi.

I searched support for "border drawing", resulting in one hit, not on-point.

I want to change the drawing border color, in most cases to "none". I don't see any way to do that.

Suggestions? ... cheers, drl

Environment

TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin, TWikiDrawPlugin, others
Server OS: Red Hat 9
Web server: Apache 2
Perl version: 5.6.1
Client OS: MS WXP, SP 1
Web Browser: IE 6

-- DennisLienke - 20 Jul 2004

Answer

I do not understand, border color of what?

-- PeterThoeny - 21 Jul 2004

Hi. Sorry for not being clear enough.

When the topic is processed and displayed in normal view, the %DRAWING% variable is replaced by a rectangle that encloses the drawing objects -- text, ellipses, etc. It is that rectangle of which I am speaking. It appears to adopt the colors of a link (not visited, visited), but I wish to change the colors of that bounding rectangle in specific instances to be invisible (color none) ... cheers, drl

-- DennisLienke - 21 Jul 2004

In file twiki/lib/TWiki/Plugins/TWikiDrawPlugin.pm, add a border="0" parameter to the image tag in sub handleDrawing:

    "<img src=\"%ATTACHURLPATH%/$nameVal.gif\" border=\"0\" ".
      "alt=\"Edit drawing '$nameVal' ".
        "(requires a Java enabled browser)\"></a>\n";

Alternatively you could leave the Plugin alone, but specify an image tag pointing to a drawing. Assuming you have the drawing called example in topic TopicA, you can show the drawing in any topic by writing %ATTACHURL%/%WEB%/TopicA/example.gif

-- PeterThoeny - 22 Jul 2004

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2004-07-22 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.