comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Extra space around widget windows....
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Extra space around widget windows.... [message #16041] Wed, 30 June 1999 00:00 Go to previous message
Pavel Romashkin is currently offline  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
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Passing zero as a Parameter/ NOT KEYWORD_SET
Next Topic: Re: How to pass the slider value?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 09:33:55 PDT 2025

Total time taken to generate the page: 0.31841 seconds