Removing scroll bars from table widgets [message #56847] |
Mon, 19 November 2007 09:30  |
2d
Messages: 24 Registered: July 2007
|
Junior Member |
|
|
Every time I make a widget table, scroll bars appear to be added where
they are not necessary. Would anyone have an idea as to how i remove
the scroll bars, so the widget looks more compact and respectable.
Thank you for any help you can give.
|
|
|
Re: Removing scroll bars from table widgets [message #56952 is a reply to message #56847] |
Tue, 27 November 2007 10:33   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
2d@onetel.com writes:
> Well, i suppose this means there are two bugs affecting widget table
> scroll bars and not one. Yes i am familiar with the strange behaviour
> you are referring to with the shifting table. These are most
> unattractive features if you are trying to develop decent GUIs. Might
> others have advice on scroll bars and the like?
When I complained at a recent IDL user's group meeting
about what an abomination the Table Widget is, I was
greeted with much sympathy. Apparently, the entire
widget suite, especially on Motif, is a millstone around
the neck of IDL. I was assured that if I kept my maintenance
dollars flowing I would be rewarded, eventually, with a
set of widgets that worked in a cross-platform manner
and in a way I would be happy with. I'm not necessarily
holding my breath, but I do see a ray of hope. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
|
Re: Removing scroll bars from table widgets [message #56956 is a reply to message #56847] |
Mon, 26 November 2007 12:11   |
Jean H.
Messages: 472 Registered: July 2006
|
Senior Member |
|
|
2d@onetel.com wrote:
> According to the IDL help, addition of scroll bars to widgets is not
> the default. However, every time I create a widget, these annoying
> scroll bars appear and take up valuable and unnecessary space on the
> monitor. It also says that for a widget table, if the table is bigger
> than the default 6 rows/columns then scroll bars are added, which is
> clearly not that case, as scroll bars appear with even small tables of
> 2 rows/columns. IDL help also claims scroll bars are not added if the
> table size is declared explicitly through the XSIZE/YSIZE keywords.
> However, regardless of any declaration of size I still can't get rid
> of these scroll bars. Admittedly, scroll bars are a nice idea when you
> need them. However, when unnecessary, they only add to clutter in a
> GUI. Anyone any ideas how I can de-clutter my widgets by removing the
> scroll bars.
>
> Many thanks, D.
I thought as you do that they were annoying... until I saw that unwanted
feature: I have a 2 columns wide table, explicit size etc. They are
displayed properly, but if I start editing the value on the 2nd column,
the view is shifted to the right, so this 2nd column goes to the left,
and I have a blank column appearing (I should say "a white area of the
size of a column")... the easy way to get back to my original view is to
use the scroll bar...
Jean
|
|
|
Re: Removing scroll bars from table widgets [message #56957 is a reply to message #56847] |
Mon, 26 November 2007 11:51   |
2d
Messages: 24 Registered: July 2007
|
Junior Member |
|
|
According to the IDL help, addition of scroll bars to widgets is not
the default. However, every time I create a widget, these annoying
scroll bars appear and take up valuable and unnecessary space on the
monitor. It also says that for a widget table, if the table is bigger
than the default 6 rows/columns then scroll bars are added, which is
clearly not that case, as scroll bars appear with even small tables of
2 rows/columns. IDL help also claims scroll bars are not added if the
table size is declared explicitly through the XSIZE/YSIZE keywords.
However, regardless of any declaration of size I still can't get rid
of these scroll bars. Admittedly, scroll bars are a nice idea when you
need them. However, when unnecessary, they only add to clutter in a
GUI. Anyone any ideas how I can de-clutter my widgets by removing the
scroll bars.
Many thanks, D.
|
|
|
|
|
Re: Removing scroll bars from table widgets [message #57102 is a reply to message #56847] |
Mon, 03 December 2007 10:48  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
2d@onetel.com writes:
> Hmmm, i put scroll = 0 in the main body of the program and as a
> widget_table call argument but to no avail. Is there just no way to
> get rid of these annoying scroll bars?
I've heard that the .300 Remington Ultra Mag or a .30-378 Weatherby
is effective. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: Removing scroll bars from table widgets [message #57103 is a reply to message #57056] |
Mon, 03 December 2007 10:34  |
2d
Messages: 24 Registered: July 2007
|
Junior Member |
|
|
> it should be scroll = 0, since /keyword is the same as keyword=1 ...
>
> Jean
Hmmm, i put scroll = 0 in the main body of the program and as a
widget_table call argument but to no avail. Is there just no way to
get rid of these annoying scroll bars?
Regards, D
|
|
|