ScrollWindow Positioning...

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

Questions about motif? Contact us

2 posts / 0 new
Last post
ScrollWindow Positioning...

I have created a Grid class and that contains Column and Row Objects which consist of textboxes. I have added functionality to add Rows and Columns to the Grid; however, as they are created they appear out of the scope of the ScrollWindow. I would like to create a routine, similar to the Positioning routine for the List Widget, where I can position the row in user`s ScrollWindow view.

How do I achieve this?

Thanks...
C. Lamb

Anonymous

 

hi,

Hmm. Been a while.

You have a manual right? I think all you need to do is to call call the setvisible which would scroll the scroll_w to the widget in question.

But otherwise. After you put in the widget. Get its position. Scroll the window. Right?

I mean, scroll widows are easy to scroll - I assume you know that.

It depends on the widget. But you you should be able to get its position.

Hope that help,

john

void XmScrollVisible ( Widget scrollw_widget,
Widget widget,
Dimension left_right_margin,
Dimension top_bottom_margin)

This manual is free, you can find it on the internet.

Motif Reference Manual
for Motif 2.1
Open Source Edition
Antony Fountain and Paula Ferguson