widget_control,tlb_get_offset under Gnome/RH7.1 [message #26845] |
Fri, 28 September 2001 10:19  |
Nathaniel Livesey
Messages: 5 Registered: April 1996
|
Junior Member |
|
|
Dear all,
I seem to be having problems with widget_control,tlb_get_offset
with IDL version 5.4.1 (linux x86) under RedHat 7.1. Whatever the
position of the window in question, it always returns [0,0]. It seems
to be a Gnome related problem, as it works fine under KDE. I tried
updating to the latest version of sawfish (window manager) and that
made no difference. Also using WindowMaker as my window manager (still
under gnome) seemed to make no difference; though I remember it used
to work before I switched to gnome (but that was Sun and SGI). IDL
v5.3 on the same platform seems to behave the same way also.
The RedHat 7.1 version of Gnome is 1.2.4 which is quite old, does
anyone have any experience of IDL under later versions of Gnome?
The program below is a quick test people could try out.
pro Test
wTestBase = widget_base(title='Test window', $
xOffset=700, yOffset=700)
wTestDraw = widget_draw(wTestBase, xSize=200, ySize=200)
widget_control, wTestBase, /realize
widget_control, wTestBase, tlb_get_size=derivedSize, $
tlb_get_offset=derivedOffset
print, 'Read back position as:', derivedOffset
print, 'Read back size as:', derivedSize
widget_control, wTestBase, /destroy
end
I get:
Read back position as: 0.00000 0.00000
Read back size as: 200.000 200.000
Whereas one would expect the position to be equal or close to 700,700
(and indeed with KDE that's what one gets).
Anyone got any ideas?
Many thanks in advance.
Nathaniel
------------------------------------------------------------ -------
Nathaniel Livesey - Microwave Atmospheric Science Team
Postal address: Mail Stop 183-701, Jet Propulsion Laboratory,
4800 Oak Grove Drive, Pasadena, California 91109.
Telephone: [+1] (818) 354 4214 (+voice mail),
fax: [+1] (818) 393 5065
Email: livesey@mls.jpl.nasa.gov
Group web page: http://mls.jpl.nasa.gov/
------------------------------------------------------------ -------
|
|
|
Re: widget_control,tlb_get_offset under Gnome/RH7.1 [message #26922 is a reply to message #26845] |
Tue, 02 October 2001 03:12  |
Miguel Ángel Córd
Messages: 11 Registered: March 2000
|
Junior Member |
|
|
Nathaniel Livesey wrote:
> Dear all,
>
> I seem to be having problems with widget_control,tlb_get_offset
> with IDL version 5.4.1 (linux x86) under RedHat 7.1. Whatever the
> position of the window in question, it always returns [0,0]. It seems
> to be a Gnome related problem, as it works fine under KDE. I tried
> updating to the latest version of sawfish (window manager) and that
> made no difference. Also using WindowMaker as my window manager (still
> under gnome) seemed to make no difference; though I remember it used
> to work before I switched to gnome (but that was Sun and SGI). IDL
> v5.3 on the same platform seems to behave the same way also.
>
> The RedHat 7.1 version of Gnome is 1.2.4 which is quite old, does
> anyone have any experience of IDL under later versions of Gnome?
>
> The program below is a quick test people could try out.
>
> pro Test
> wTestBase = widget_base(title='Test window', $
> xOffset=700, yOffset=700)
> wTestDraw = widget_draw(wTestBase, xSize=200, ySize=200)
> widget_control, wTestBase, /realize
> widget_control, wTestBase, tlb_get_size=derivedSize, $
> tlb_get_offset=derivedOffset
> print, 'Read back position as:', derivedOffset
> print, 'Read back size as:', derivedSize
> widget_control, wTestBase, /destroy
> end
>
> I get:
>
> Read back position as: 0.00000 0.00000
> Read back size as: 200.000 200.000
>
> Whereas one would expect the position to be equal or close to 700,700
> (and indeed with KDE that's what one gets).
>
> Anyone got any ideas?
>
> Many thanks in advance.
>
> Nathaniel
>
> ------------------------------------------------------------ -------
> Nathaniel Livesey - Microwave Atmospheric Science Team
> Postal address: Mail Stop 183-701, Jet Propulsion Laboratory,
> 4800 Oak Grove Drive, Pasadena, California 91109.
> Telephone: [+1] (818) 354 4214 (+voice mail),
> fax: [+1] (818) 393 5065
> Email: livesey@mls.jpl.nasa.gov
> Group web page: http://mls.jpl.nasa.gov/
> ------------------------------------------------------------ -------
I have the same problem with Gnome in Solaris 8 but not
whit CDE.
--
+- - - - - - - - - - - - - - - - - - - - - - - -+
| Miguel Angel C�rdoba cordoba@ehma.upc.es |
| |
| T.934017371 http://campus.uab.es/~2034008 |
| |
| Grup de Modelitzaci� Hidrometeorol�gica (UPC) |
| (http://www.upc.es/ehma/gmh) |
+- - - - - - - - - - - - - - - - - - - - - - - -+
|
|
|