Widget base size [message #7410] |
Wed, 13 November 1996 00:00 |
Ye Hong
Messages: 6 Registered: October 1996
|
Junior Member |
|
|
Hi,
Does anyone knows how I can set a widget button size or the text font
size in a widget button ?
My program is as follows:
;MAIN WIDGET BASE
base = WIDGET_BASE(TITLE='Gprofview',xsize = wx, ysize = wy, /COLUMN)
pad = WIDGET_BASE(base, /FRAME, /ROW)
;The DISPLAY button:
disp = WIDGET_BUTTON(pad, VALUE = ' Display ', UVALUE = 'DISP')
;The DISPLAY NEXT button:
dispnext = WIDGET_BUTTON(pad, VALUE = ' Display Next ', UVALUE =
'DISPNEXT')
;The EXIX button:
exit = WIDGET_BUTTON(pad, VALUE = ' Exit ', UVALUE = 'EXIT')
; The HELP button:
help = WIDGET_BUTTON(pad, VALUE = ' Help ', UVALUE = 'HELP')
The four buttons (display, display next, exit, and help) are supposed
to fill in the widget base 'pad'. But they are overlayed sometimes and
filled only half xsize sometimes, depending on the terminal which I am
using. I also found that the text fonts (and its size) in the widget
window vary with terminal. Any clues?
Thanks.
-- Ye
|
|
|