1. sendmessage codes

Does anyone know the code to get the index of the highted line in a list?
"create (List,..................) "

i.e like below.... i have some of them but not the above one.
and where do I find them for future reference.

   jk = sendMessage(idList,#197,i-1,0)
   jk = sendMessage(idList,#186,i-1,0)

george

new topic     » topic index » view message » categorize

2. sendmessage codes

Now that i've found the codes, the returned index for the selected item
seems to be off by one

 selected = sendMessage(idList,#188,0,0)
 item = getItem(idList,selected)

In the above code 'item' contains the info from the item in the list that is
1 (one) before the highlighted item. What is it that I don't understand or
have done wrong??

thanks for any help

george

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

3. Re: sendmessage codes

>Does anyone know the code to get the index of the highted line in a list?
>"create (List,..................) "
>
>i.e like below.... i have some of them but not the above one.
>and where do I find them for future reference.
>
>    jk = sendMessage(idList,#197,i-1,0)
>    jk = sendMessage(idList,#186,i-1,0)
>
>george

Sure its:
sendMessage( idList, #188, 0, 0 )

And I usually look it up in an assembly file (I know little help to you 
right?)  If you like I can point you to the place where you can get it and 
how...

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

4. Re: sendmessage codes

>Now that i've found the codes, the returned index for the selected item
>seems to be off by one
>
>  selected = sendMessage(idList,#188,0,0)
>  item = getItem(idList,selected)
>
>In the above code 'item' contains the info from the item in the list that 
>is
>1 (one) before the highlighted item. What is it that I don't understand or
>have done wrong??
>
>thanks for any help

Nothings wrong with the code, the Windows message returns the index zero 
based where Euphoria used one based.  Just add one to the return value.

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

5. Re: sendmessage codes

yes, point me to it..... thanks

george
----- Original Message -----
From: "Don Phillips" <Graebel at hotmail.com>
To: "EUforum" <EUforum at topica.com>
Subject: Re: sendmessage codes


>
> >Does anyone know the code to get the index of the highted line in a list?
> >"create (List,..................) "
> >
> >i.e like below.... i have some of them but not the above one.
> >and where do I find them for future reference.
> >
> >    jk = sendMessage(idList,#197,i-1,0)
> >    jk = sendMessage(idList,#186,i-1,0)
> >
> >george
>
> Sure its:
> sendMessage( idList, #188, 0, 0 )
>
> And I usually look it up in an assembly file (I know little help to you
> right?)  If you like I can point you to the place where you can get it and
> how...
>
>
>
>

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

6. Re: sendmessage codes

>yes, point me to it..... thanks
>
>george

No problem.  Its a really great reference.  Just about everything is there.  
Just convert assembly notation to euphoria.  Its almost dummy proof.

00035h assembly = #35
=)

Main web site is:
http://spiff.tripnet.se/~iczelion/download.html

The link you want is "Windows Include File for MASM version 1.25"
(Its about 190k)

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

Search



Quick Links

User menu

Not signed in.

Misc Menu