Re: Extra space around widget windows.... [message #16041] |
Wed, 30 June 1999 00:00 |
Pavel Romashkin
Messages: 166 Registered: April 1999
|
Senior Member |
|
|
I found that extra space around a table widget sometimes appears just to
leave room for possible inclusion of scroll bars. Try to turn on scroll
bars (/SCROLL keyword to widget_table). Same with text widgets. (My IDL
is run on X-Win, MAc and PC, versions 5.1-5.2)
Ronald Hatcher wrote:
> I'm having trouble controlling the amount of excess space IDL seems to
> want to put
> at the left and at the bottom of a table widget window. I see no way of
> eliminating this
> extra space or of at least making it appear on all four sides. Any help
> would be greatly
> appreciated.
>
> For example here is a piece of code that realizes a small widget table
> that has this problem.
>
> varNams = ['NCB','KPB','DIMAX [kA]']
> numNams = size(info.br_names,/n_elements)
> numVars = size(varNams,/n_elements)
> sc4 = $
> [info.rtc_ncb, info.rtc_kpb, info.rtc_dimax]
> sc4 = transpose(reform(sc4,numNams,numVars))
> base4 = widget_base(MBar=menuid, group_leader=gl, $
> TITLE='SCREEN 4')
> ; define a action menu with a dismiss entry
> actionID = Widget_Button(menuid, Value='Action', Menu=1, $
> XSIZE=10,YSIZE=20)
> quitID = Widget_Button(actionID, Value='DISMISS', $
> Event_Pro='Wid_Destroy')
> sc4_wid = widget_table(base4, $
> units=2, xsize = numVars, ysize = numNams, $
> column_labels=varNams, row_labels=info.br_names, $
> column_widths=[1.4,1.4,1.6], /editable, $
> value=sc4 $
> )
> widget_control, base4, /realize
> widget_control, base4, Set_Uvalue=info.tlb
> XManager, 'Screen 4', base4, /No_Block, $
> Event_Handler='XCD_Screen4'
>
> Note that I am somewhat of a beginner so please forgive me if this is
> something obvious. It certainly isn't from the documentation.
>
> R
|
|
|
Re: Extra space around widget windows.... [message #16052 is a reply to message #16041] |
Wed, 30 June 1999 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Ronald Hatcher (rhatcher@pppl.gov) writes:
> I'm having trouble controlling the amount of excess
> space IDL seems to want to put at the left and at the
> bottom of a table widget window. I see no way of
> eliminating this extra space or of at least making it
> appear on all four sides.
I'm not great fan of the table widget, so you shouldn't
consider me an expert on the subject by any means. But
when I ran your little example on my Windows NT machine
I find no excess space around the widget at all.
What machine are you running this on?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|