in canvas text item can background color be changed

harishd_at_kpitcummins.com
Date: 03/28/05


Date: 28 Mar 2005 01:49:06 -0800

i have a canvas in which i create certain text and i display it in red
color ,
pack [canvas .c]
.c create text 20 20 -text "hello world " -fill red

now is there a way by which i display background color of text in other
color , i tried using -background but it is not valid for text

how do i do that ,what is the option

thanks
regards
harish



Relevant Pages

  • Re: display image on canvas
    ... was able to display the image in the canvas just fine. ... public static void mainthrows Exception { ... Frame frame = new Frame; ...
    (comp.lang.java.help)
  • Re: FlowLayout and lightweight IDEs
    ... private BufferedImage image; ... get picture to display and notify ... /* Class MyCanvas: ... class MyCanvas extends Canvas { ...
    (comp.lang.java.help)
  • Re: image from C routine to be displayed in a frame
    ... > which I can now display my MIL image. ... > don't stop flashing in the canvas. ... and it's own drawing routines will then just clear it and draw ... as you would actually be converting you image to the photo type. ...
    (comp.lang.tcl)
  • midp2 - setFullScreenMode problem
    ... setFullScreenModeto make particular canvas full screen. ... However I've encountered a problem described below, when switching ... If connection fails or whatever I display Alert via with initialScreen ...
    (comp.lang.java.programmer)
  • Display text in canvas
    ... I'm trying to pull the contents of a text widget and display it in a ... canvas using the same font as the text widget. ... Specify the configuration file to use; ... This can be meaningful if the cat page was ...
    (comp.lang.tcl)