Re: EuGrid Not Returning Row

new topic     » goto parent     » topic index » view thread      » older message » newer message

I know that this is a simple question, that I should be able to find without
having to ask.  ANND..I KNOW that I've seen an example somewhere...but I can't
find where I saw it.

Could someone tell me "off the top of your head"...how I make a window that
doesn't allow the user to close it, except by clicking the button (or
whatever) that I want them to click?

Thanks,
Michelle Rogers

Phil Russell wrote:

>
> C.K.
>
> You need to do:
>
> <snip>
> -- sequence to hold current cell info
> sequence cell
> -- get current cell in {row, column_id} format
> cell = EGW_GetCurrentCell( grid )
> </snip>
>
> cell[1] now contains the current row
> cell[2] now contains the current column id
>
> NB:
> The EGW_GetCellProperty function is only valid when you are processing
> an EGW_CellFormat message, at which point you can use it
> to get/set individual cell drawing properties (see the documentation).
> If you use it outside of this context it will have no effect and witll
> always return False...
>
> HTH
>
> Phil
>
> C. K. Lester wrote:
> > How do I get EuGrid to return the row number of the currently selected
> > cell?
> > Here's what I try but it always returns zero:
> >
> > procedure bttn_RemoveAttr_onClick (integer self, integer event, sequence
> > params)--params is ()
> >  junk = EGW_GetCurrentCell ( grid1 )
> >  junk = EGW_GetCellProperty (grid1, junk[1] , EGW_CELL_ROW) -- get index
> >  of
> > selected attribute item
> >  removeAttr( junk )
> > end procedure
> > setHandler( bttn_RemoveAttr, w32HClick,
> > routine_id("bttn_RemoveAttr_onClick"))
> >
> >
>
>
> TOPICA - Start your own email discussion group. FREE!

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu