Operating System - HP-UX
1848377 Members
3445 Online
104025 Solutions
New Discussion

Re: Getting / Setting CDE Workspace Info

 
Keith Meloy_1
Occasional Advisor

Getting / Setting CDE Workspace Info

We have an application running under CDE that queries the X resources of a window for size and position information and also uses the window attributes to determine whether the window is mapped.
As a further refinement we would also like to know which workspace the window is mapped into.
Does anyone know how to do this?
Having obtained this information how can we re-apply it?

Cheers

Keith
1 REPLY 1
Alex Glennie
Honored Contributor

Re: Getting / Setting CDE Workspace Info

How about something that will do the job a slightly different way ?

see attached switch program : you can use it to start your application on a desired workspace as the user logs into CDE when you use it in conjunction with their $HOME/.dt/sessions/sessionetc script See CDE advanced Users Guide. (may need to create this)

eg more sessionetc

#!/usr/bin/sh
/usr/contrib/bin/switch
/usr/dt/bin/dtcm &
sleep 10
/usr/contrib/bin/switch
/usr/dt/bin/dtterm &
etc ......

I've posted this before so for more advanced details do a search on say switch workspace and sessionetc ?

using the above method you'd know which workspace the application was started on : relies on user not renamming workspaces or moving /closing the applications down .....
or you could use it as a start to write your own routine ...

If you still have problems ... eg compiling the program : drop me an email .... I see you are in the UK ..... or post me yours with O/S details etc ....