Well the message states that :
"Warning: XmForm form : attachment to contract_text which is not a child,
         replaced with contract_textSW"

So where you are trying to attach the wContractText widget to the form
widget, instead of using wContractText directly use XtParent(wContractText).

The reason is that XmCreateScrolledText actual creates a scrolled window
widget and then uses that scrolled window as the parent to create a text
widget. Therefore XmForm complains that you are not using the scrolled
window.

The reason that you do not see this warning on Motif is that Motif
handles these problems silently.

At least this is what I remember from previous mails to this list :-)

CP


"Sharad Kumar Gupta (EHPT)" wrote:
> 
>  Hi,
> 
>    Thanx a lot  CP.. You caught the problem and its working fine..
> It was because of the pending events..
> 
> Now another problem i am facing is about this warning :
> "Warning: XmForm form : attachment to contract_text which is not a
> child,
>         replaced with contract_textSW"
> 
> I am calling it like this :
> 
>       wContractText =
>         XmCreateScrolledText(wForm, "contract_text", args, n);
> #endif
> 
>   XtAddCallback(wContractText, XmNactivateCallback,is_finished ,
> NULL); */
> 
> What mistake am i making.. I want to get rid of this warning.

Reply via email to