Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

scrolltorow does not fire

52 views
Skip to first unread message

Melvyn Polatchek

unread,
Jul 5, 2003, 3:31:36 PM7/5/03
to
I am Using PFC in PB9 under Windows XP pro. Pentium III 512 mg memory

Every object used is inherited from a pfc object

I have a primitive window - w_dw_base.
It contains 2 datawindows and is meant to be window which will be inherited
so to allow different datawindows.
I am creating a buttonbar. uo_buttons_dwmaster. I have only scripted the
addrow button, thus far.

These are my instance vars:
userobject iuo_this
w_dw_base iw_parent

This is the buttonbar constructor code:
iw_parent = this.getparent()

This is the code of the addrow button
long ll_row
ll_row = iw_parent.dw_master.inv_rowmanager.EVENT pfc_addrow()
iw_parent.dw_master.scrolltorow(ll_row)

The buttonbar has been bound to the window w_dw_base and I have associated a
datawindo object with the
datawindow control dw_master.

When I run the app and click the 'Add' button a row is indeed added, but I
cannot get the scrolltorow to fire.

I have tried the scrolltorow function in various places, including
pfc_postinsertrow which is called in pfc_addrow.

It does not fire. Any thoughts?

Thanks,

Melvyn Polatchek


Russ Colburn

unread,
Jul 7, 2003, 7:42:37 AM7/7/03
to
I believe you need to change
ll_row = iw_parent.dw_master.inv_rowmanager.EVENT pfc_addrow()

to
ll_row = iw_parent.dw_master.EVENT pfc_addrow()

to get this to work correctly. If row manager is turned on then the event
will be passed to the rowmanager service as well. ScrollToRow(n) will not
scroll the DW unless the row defined by n is not currently visible. Also
ScrollToRow will not highlight the row in question.

HTH

Russ

"Melvyn Polatchek" <m...@melsnotebook.com> wrote in message
news:%23pYg10yQDHA.168@forums-2-dub...

0 new messages