🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #38247

(MOTIF) Positioning PromptDialog in Main Window

#38247
From: Vijay J. Talati
Date: Thu, 09 Jul 1992 08:13
37 lines
1555 bytes
Hi,

I am developing a software using Motif 1.0 under SCO Unix 5.3.2 (ODT 1.?).

Following is the part of code i am talking about..

....
....
main_win = XmCreateMainWindow( parent, TITLE, args, argcount) ;

argcount = 0 ;
prompt_win = XmCreatePromptDialog( main_win, PROMPT, args, argcount) ;

argcount = 0 ;
XtSetArg( args[argcount], XmNx, X_POS ) ; argcount++ ;
XtSetArg( args[argcount], XmNy, Y_POS ) ; argcount++ ;
XtSetValues( XtParent(prompt_win), args, argcount) ;

XtManageChild( prompt_win) ;
XtManageChild( main_win) ;

....
...

When i execute this, the prompt window always comes at the 0,0 location.
Changing X_POS and Y_POS values also does not have any effect.

Is there any way out of this or do i have to live with it?

Thanks
Vijay. (vijay@gateway.iitb.ernet.in)
-- 
==================================================================
Vijay Talati,
Research Assistant,
ERNet lab, Computer Centre,
Technical Details
Message-ID: <1992Jul9.091347.25214@iitb.ernet.in>
Path: arc1-ca.pugleaf.net!sparky!uunet!sangam!iitb!vijay

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103734,75ccc45c8c0d19f,start
X-Google-Attributes: gid103734,public
X-Google-Thread: 134180,75ccc45c8c0d19f,start
X-Google-Attributes: gid134180,public
X-Google-ArrivalTime: 1992-07-08 21:53:14 PST
Newsgroups: comp.windows.x,biz.sco.opendesktop
Path: arc1-ca.pugleaf.net!sparky!uunet!sangam!iitb!vijay
From: vijay@iitb.ernet.in (Vijay J. Talati)
Subject: (MOTIF) Positioning PromptDialog in Main Window
Message-ID: <1992Jul9.091347.25214@iitb.ernet.in>
Organization: Indian Institute of Technology, Bombay
Date: Thu, 9 Jul 1992 09:13:47 IST
Lines: 37