1. EuGrid Not Returning Row
- Posted by "C. K. Lester" <cklester at yahoo.com> Apr 07, 2003
- 354 views
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"))
2. Re: EuGrid Not Returning Row
- Posted by mrogers at mail.ccs.bia.edu Apr 07, 2003
- 337 views
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!
3. Re: EuGrid Not Returning Row
- Posted by "C. K. Lester" <cklester at yahoo.com> Apr 07, 2003
- 336 views
> C.K. > > You need to do: [snippage occurred] Oh, that's funny! I'm trying to get the ROW number and... ah, nevermind. > NB: What does "NB" mean? I see that all over... Thanks for the help, Phil!!!
4. Re: EuGrid Not Returning Row
- Posted by Robert Elia <bobelia200 at netzero.net> Apr 07, 2003
- 354 views
--=======17B3E7D======= --=====================_61012629==_.ALT At 12:25 PM 4/7/03 -0500, you wrote: >============ The Euphoria Mailing List ============ > > > C.K. > > > > You need to do: > >[snippage occurred] > >Oh, that's funny! I'm trying to get the ROW number and... ah, nevermind. > > > NB: > >What does "NB" mean? I see that all over... > N.B. : Nota Bene. Latin for "note well". Here's a list of common abbreviations: http://www.les.aston.ac.uk/latin.html Bob --=====================_61012629==_.ALT Content-Type: text/html; x-avg-checked=avg-ok-7F1C3B98; charset=us-ascii Content-Transfer-Encoding: 8bit <html> <font size=3>At 12:25 PM 4/7/03 -0500, you wrote:<br><br> <blockquote type=cite class=cite cite>============ The Euphoria Mailing List ============ <br><br> > C.K.<br> > <br> > You need to do:<br><br> [snippage occurred]<br><br> Oh, that's funny! I'm trying to get the ROW number and... ah, nevermind.<br><br> > NB:<br><br> What does "NB" mean? I see that all over...<br><br> </font></blockquote><br> N.B. : Nota Bene.<br><br> Latin for "note well".<br><br> Here's a list of common abbreviations:<br><br> <a href="http://www.les.aston.ac.uk/latin.html" eudora="autourl">http://www.les.aston.ac.uk/latin.html</a><br><br> <font size=3><x-tab> </x-tab><x-tab> </x-tab>Bob<br> --=====================_61012629==_.ALT-- --=======17B3E7D======= Content-Type: text/plain; charset=us-ascii; x-avg=cert; x-avg-checked=avg-ok-7F1C3B98 Content-Disposition: inline --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.461 / Virus Database: 260 - Release Date: 3/10/03 --=======17B3E7D=======--