Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TK Entry , color issue

Status
Not open for further replies.

mikeprestim

Programmer
Mar 1, 2001
21
GB
Hi I am not sure if any one can help me. I am creating a simple GUI to interface with another CAM tool. I need to make the interface have the same look and feel as the main CAM product. Everything looks fine apart from the 4 entry widgets which have a grey block around them which i cannot get rid of. I have tried the background option but it just changes the actual entry area leaving the grey block.

Note the entry is packed from Grid

my $E1 = $left->Entry(-relief => 'sunken',
-width => '10',
-borderwidth => '2',
-textvariable => \$outTrack);

Tk::grid( $E1, -row => 2, -column => 1, -sticky => 'ew');

I am i missing something? Has any one any ideas

Thanks in advance

Mike
 
I haven't used perl-tk but have used TclTk quite a bit - hence these ideas are coming from that perspective:

Try taking a look at what the entry widget is being built inside of. If $left is a frame, you may be able to change the color of the frame. Another possibility may be to examine how you are packing (or grid or place or ??) to see if holes of the cavity model are sneaking through.
 
Thanks PinkeyNBrain

You got it spot on. whilst i set the color for the main workarea i had not set it for the left and right frame. So simple just needed another pair of eyes.

All working good now
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top