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

Home » Public Forums » archive » widget_control,tlb_get_offset under Gnome/RH7.1
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
widget_control,tlb_get_offset under Gnome/RH7.1 [message #26845] Fri, 28 September 2001 10:19 Go to next message
Nathaniel Livesey is currently offline  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 Go to previous message
Miguel Ángel Córd is currently offline  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) |
+- - - - - - - - - - - - - - - - - - - - - - - -+
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: General info question for newbie
Next Topic: Is there a line widget

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

Current Time: Wed Oct 08 13:52:09 PDT 2025

Total time taken to generate the page: 0.00581 seconds