1. EuGrid Not Returning Row

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"))

new topic     » topic index » view message » categorize

2. Re: EuGrid Not Returning Row

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 message » categorize

3. Re: EuGrid Not Returning Row

> 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!!!

new topic     » goto parent     » topic index » view message » categorize

4. Re: EuGrid Not Returning Row

--=======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>
&gt; C.K.<br>
&gt; <br>
&gt; 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>
&gt; NB:<br><br>
What does &quot;NB&quot; mean? I see that all over...<br><br>
</font></blockquote><br>
N.B. : Nota Bene.<br><br>
Latin for &quot;note well&quot;.<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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=======--

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu