[tk] Image and Text in TkButton?

F

Forrest Chang

How do you put both an image an text into a button. It seems
Compound Image that shows up in google isn't supported either as a
class or option in ruby tk. Using 1 click installer of latest stable
1.8 release.


Thanks

Forrest
 
H

Hidetoshi NAGAI

From: Forrest Chang <[email protected]>
Subject: [tk] Image and Text in TkButton?
Date: Sat, 3 Dec 2005 07:52:31 +0900
Message-ID: said:
How do you put both an image an text into a button. It seems
Compound Image that shows up in google isn't supported either as a
class or option in ruby tk. Using 1 click installer of latest stable
1.8 release.

'compound' option is supported by Tcl/Tk8.4 or later.
The version of Tcl/Tk libraries on one-click installer is 8.3.
So, you have to install Tcl/Tk8.4 or 8.5 and replace tcltklib.dll
which uses the libraries of Tcl/Tk8.4 or 8.5.
Or, pack an image label and a text label on the button,
and define event callbacks for both of the labels (e.g. change
option values of the labels and send the event to the button).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top