widget attachments - interesting

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

8 posts / 0 new
Last post
widget attachments - interesting

Submitted by Anonymous on Tue, 05/06/2003 - 15:34.

this is a interesting thing !.

two wrong occasions

First Occasion

XmNrightAttachment, XmATTACH_WIDGET,
XmNrightPosition, vsep1,
// where vsep1 is a widget and check XmNrightPosition is written

Second Occasion

XmNrightAttachment, XmATTACH_WIDGET,
XmNrightWidget, 78,
// 78 is a positional placement.

on the first occasion , no problem during execution, but the widget looked wiered.
on the second occasion , run time error at XmNrightWidget, 78

why the first occasion did not produce any errors.
have anybody come across like this and if so any explanation.

Tue, 05/06/2003 - 16:40#1

Tue, 05/06/2003 - 16:40#1

Anonymous

Try this...

First Occasion

XmNrightAttachment, XmATTACH_WIDGET,
XmNrightWidget, vsep1,
//Where vsep1 is a widget

You can also specify an offset between the attached widgets.
XmNrightOffset, 5,

Second Occasion

XmNrightAttachment, XmATTACH_WIDGET,
XmNrightWidget, 78,
// 78 is a positional placement.

This will probably work; however, I would think that the following might be better.

XmNrightPosition, 78,

Wed, 05/07/2003 - 13:41#2

Wed, 05/07/2003 - 13:41#2

Anonymous

Try this...

thanks for ur suggestion. but my question was not on how to attach widgets, but why there were no errors on the first occasion as u could see i have given a widget as XmNrightPosition
instead of a position itself. and i did the opp. in the second occasion , it gave run time errors.

i saw ur reply , u have changed the first occasion with XmNrightWidget, but i have written it as XmNrightPosition.

XmNrightAttachment, XmATTACH_WIDGET,
XmNrightPosition, vsep1,

so what i am wondering is , how does motif process XmNrightPosition ...

hope you understand my question ...

 

 

Wed, 05/07/2003 - 13:45#3

Anonymous

widget attachments - interesting - can ICS -make me understa

can ICS_Support team explain my query and make me understand what it is, or is it a open BUG ...

  •  

 

Thu, 05/08/2003 - 10:44#4

Thu, 05/08/2003 - 10:44#4

ICS_support

Try this...

Don`t you mean rightOffset anyway?

 

Thu, 05/08/2003 - 10:46#5

Thu, 05/08/2003 - 10:46#5

ICS_support

widget attachments - interesting

Actually, I`m surprised by the error in the second case, although you don`t say what it is. I`d think that the XmForm code pays attention only to the attachment type, which you don`t specify above.

 

Thu, 05/08/2003 - 15:28#6

Thu, 05/08/2003 - 15:28#6

Anonymous

widget attachments - interesting

yes the widgets are form widgets,

XmForm code pays attention only to the attachment type, which you don`t specify above.

what do you mean by this, in both the cases i say what is the attachment type, ie XmATTACH_WIDGET

i am not clear why this is happening.

thanks in advance
ragu

 

 

Mon, 07/28/2003 - 22:36#7

Anonymous

widget attachments - interesting

I think this is simple

(int)vsep1

is a valid position.

(Widget)78

is almost certainly going to point to something that is not
a Widget structure.