1. special char

This is a multi-part message in MIME format.

------=_NextPart_000_0006_01C34EFA.5813F7C0
	charset="iso-8859-1"

I would like to 'tag' an item in a list box with a special char (like a =
check mark). Where can I find a list of these that might be available?

george
------=_NextPart_000_0006_01C34EFA.5813F7C0
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1126" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I would like to 'tag' an item in a list =
box with a=20
special char (like a check mark). Where can I find a list of these that =
might be=20
available?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>

------=_NextPart_000_0006_01C34EFA.5813F7C0--

new topic     » topic index » view message » categorize

2. Re: special char

----- Original Message ----- 
>From: George Walters 
>Subject: special char
>
>
>
> I would like to 'tag' an item in a list box with a special char
> (like a check mark). Where can I find a list of these that 
> might be available?

If you literally mean a List control rather than a ListView control, then you
need to create an Owner-Drawn control. This means that you will be totally
responsible for all the rendering of the list items and the listbox in general.

Another alternative is to use a single-column ListView with the normal style
flag of 'LVS_NOCOLUMNHEADER' and the extended style of 'LVS_EX_CHECKBOXES'. You
can then use setCheck() to turn the checkmark on/off.

-- 
Derek

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

3. Re: special char

This is a multi-part message in MIME format.

------=_NextPart_000_0089_01C34F63.86417820
	charset="iso-8859-1"

That sounds perfect although I don't quite follow. Here's what I'm using =
now.

     idList =3D create(List,"",Main,4,cy*19,cx*80,cy*9,WS_SCROLLBARS)

How would I code it to use setCheck()??

thanks..

george
----- Original Message -----=20
From: Derek Parnell=20
To: EUforum=20
Sent: Monday, July 21, 2003 8:16 AM
Subject: Re: special char




----- Original Message -----=20
>From: George Walters=20
>To: EUforum=20
>Sent: Monday, July 21, 2003 10:06 AM
>Subject: special char
>
>
> I would like to 'tag' an item in a list box with a special char
> (like a check mark). Where can I find a list of these that=20
> might be available?

If you literally mean a List control rather than a ListView control, =
then you need to create an Owner-Drawn control. This means that you will =
be totally responsible for all the rendering of the list items and the =
listbox in general.

Another alternative is to use a single-column ListView with the normal =
style flag of 'LVS_NOCOLUMNHEADER' and the extended style of =
'LVS_EX_CHECKBOXES'. You can then use setCheck() to turn the checkmark =
on/off.

--=20
Derek

--^----------------------------------------------------------------
This email was sent to: gwalters at sc.rr.com


TOPICA - Start your own email discussion group. FREE!





------=_NextPart_000_0089_01C34F63.86417820
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1126" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>That sounds perfect although I don't =
quite follow.=20
Here's what I'm using now.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;&nbsp; idList =3D=20
create(List,"",Main,4,cy*19,cx*80,cy*9,WS_SCROLLBARS)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>How would I code it to use=20
setCheck()??</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>thanks..</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>george</FONT></DIV>
<DIV style=3D"FONT: 10pt arial">----- Original Message -----=20
<DIV style=3D"BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A=20
title=3Dddparnell at bigpond.com =
href=3D"mailto:ddparnell at bigpond.com">Derek=20
Parnell</A> </DIV>
<DIV><B>To:</B> <A title=3DEUforum at topica.com=20
href=3D"mailto:EUforum at topica.com">EUforum</A> </DIV>
<DIV><B>Sent:</B> Monday, July 21, 2003 8:16 AM</DIV>
<DIV><B>Subject:</B> Re: special char</DIV></DIV>
<DIV><BR></DIV>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The Euphoria Mailing =
List =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20
<BR><BR><BR>----- Original Message ----- <BR>&gt;From: George Walters=20
<BR>&gt;To: EUforum <BR>&gt;Sent: Monday, July 21, 2003 10:06 =
AM<BR>&gt;Subject:=20
special char<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; I would like to 'tag' an =
item in a=20
list box with a special char<BR>&gt; (like a check mark). Where can I =
find a=20
list of these that <BR>&gt; might be available?<BR><BR>If you literally =
mean a=20
List control rather than a ListView control, then you need to create an=20
Owner-Drawn control. This means that you will be totally responsible for =
all the=20
rendering of the list items and the listbox in general.<BR><BR>Another=20
alternative is to use a single-column ListView with the normal style =
flag of=20
'LVS_NOCOLUMNHEADER' and the extended style of 'LVS_EX_CHECKBOXES'. You =
can then=20
use setCheck() to turn the checkmark on/off.<BR><BR>--=20
<BR>Derek<BR><BR>--^-----------------------------------------------------=
-----------<BR>This=20
email was sent to: <A=20
href=3D"mailto:gwalters at sc.rr.com">gwalters at sc.rr.com</A><BR><BR>EASY =
UNSUBSCRIBE=20
click here: <A=20
href=3D"http://topica.com/u/?b1dd66.b2Shsm.Z3dhbHRl">http://topica.com/u/=
?b1dd66.b2Shsm.Z3dhbHRl</A><BR>Or=20
send an email to: <A=20
href=3D"mailto:EUforum-unsubscribe at topica.com">EUforum-unsubscribe@topica=
.com</A><BR><BR>TOPICA=20
- Start your own email discussion group. FREE!<BR><A=20
href=3D"http://www.topica.com/partner/tag02/create/index2.html">http://ww=
w.topica.com/partner/tag02/create/index2.html</A><BR>--^-----------------=

------=_NextPart_000_0089_01C34F63.86417820--

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

4. Re: special char

----- Original Message -----=20
>From: George Walters=20
>Subject: Re: special char
>
>
>That sounds perfect although I don't quite follow. Here's=20
>what I'm using now.
>
>     idList =3D create(List,"",Main,4,cy*19,cx*80,cy*9,WS_SCROLLBARS)
>
>How would I code it to use setCheck()??
>
>thanks..


-------------
George,
here is a demo program...

-- This demo simulates a listbox with a single-column listview
include win32lib.ew
without warning=20

constant=20
    Win =3D create( Window, "Single Column Listview",0,
                                1,1,550,600,0),
    LV =3D create( ListView,{""},Win,
                                10,30,410,260,
                or_all({LVS_REPORT,LVS_NOCOLUMNHEADER})),
    Btn =3D create(Button, "&Invert Checked", Win,=20
                10, 2, 120, 24, 0)                   =20

-- Allow checkboxes and show gridlines
setLVStyle(LV, or_all({LVS_EX_CHECKBOXES,LVS_EX_GRIDLINES}))
-- Load in some sample data.
loadLVInfo( LV, {
            {"Apple juice"},
            {"Orange juice"},
            {"Grape juice"},
            {"Apple"},
            {"Orange"},
            {"Grape"},
            {"Banana"},
            {"Mango"},
            {"Pineapple"},
            {"Pineapple Juice"},
            {"Peach"},
            {"Apricot"},
            {"Melon"},
            {"Plum"}
                })
                  =20
-- Force column to be same width as entire control
VOID =3D sendMessage(LV, LVM_SETCOLUMNWIDTH, 0, =
LVSCW_AUTOSIZE_USEHEADER)

-- This routine inverts the currently checked rows in the listview.
procedure onClick_Btn(integer self, integer event, sequence parms)
    sequence lCheckRows

    lCheckRows =3D getLVAllChecked(LV)
    for lRow =3D 1 to getLVCount(LV) do
        setCheck({{LV, lRow}}, not find(lRow, lCheckRows))
    end for       =20
   =20
end procedure              =20
setHandler(Btn, w32HClick, routine_id("onClick_Btn"))


WinMain(Win,Normal)

--=20
Derek

(P.S. I was wondering if you could set your email client to send plain =
text rather than HTML.)

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

5. Re: special char

Derek, thanks...

Hopefully this is plain text??


george

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

6. Re: special char

Yep.
Dan Moyer

----- Original Message ----- 
From: "George Walters" <gwalters at sc.rr.com>
To: "EUforum" <EUforum at topica.com>
Subject: Re: special char


> 
> 
> Derek, thanks...
> 
> Hopefully this is plain text??
> 
> 
> george
> 
> --^----------------------------------------------------------------
> This email was sent to: DANIELMOYER at prodigy.net
> 
> 
> TOPICA - Start your own email discussion group. FREE!
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu