Hello,
In a listbox, is it possible to show a logical
field using a checkbox, like it does in a grid?
If it is, how is it done?
Thank you.

--
jw

Re: checkbox in listbox? by Olaf

Olaf
Wed Feb 09 09:32:56 CST 2005

> In a listbox, is it possible to show a logical
> field using a checkbox, like it does in a grid?
No, but you may display one of two images
and use the mousedown event as click/inter-
activechange and exchange the image from
checked to unchecked.

But why not simply make it a multiselect listbox?

Bye, Olaf.



Re: checkbox in listbox? by jw

jw
Wed Feb 09 10:07:31 CST 2005

Thanks for replying.

What I want is to display a customer list
for user to select and have all the selected
records printed as labels. I thought using
a listbox was an easy way out. I could have
used a grid but I just thought a listbox would
look nicer.

Thanks anyway.

--
jw


Olaf Doschke wrote:
>>In a listbox, is it possible to show a logical
>>field using a checkbox, like it does in a grid?
>
> No, but you may display one of two images
> and use the mousedown event as click/inter-
> activechange and exchange the image from
> checked to unchecked.
>
> But why not simply make it a multiselect listbox?
>
> Bye, Olaf.
>
>


Re: checkbox in listbox? by Olaf

Olaf
Wed Feb 09 10:07:44 CST 2005

> used a grid but I just thought a listbox would
> look nicer.
nothing against it, but a setting the listbox to
multiselect would be sufficient to select several
customers, wouldn't it?

list1.multiselect = 1 && or .t.

Bye, Olaf.



Re: checkbox in listbox? by Craig

Craig
Wed Feb 09 10:15:29 CST 2005

See
http://support.microsoft.com/default.aspx?scid=kb;en-us;157048

The bitmaps referred to no longer ship in that location, but you can find
checkbox bitmaps in the Graphics directory.
--
Craig Berntson
MCSD, Visual FoxPro MVP
www.craigberntson.com
Salt Lake City Fox User Group
www.slcfox.org
www.foxcentral.net


"jw" <jw@nospam.com> wrote in message
news:%23jIjqurDFHA.464@TK2MSFTNGP15.phx.gbl...
> Hello,
> In a listbox, is it possible to show a logical
> field using a checkbox, like it does in a grid?
> If it is, how is it done?
> Thank you.
>
> --
> jw
>



Re: checkbox in listbox? by Craig

Craig
Wed Feb 09 10:45:44 CST 2005

Hmm. I just checked. The bitmaps are still there.

--
Craig Berntson
MCSD, Visual FoxPro MVP
www.craigberntson.com
Salt Lake City Fox User Group
www.slcfox.org
www.foxcentral.net


"Craig Berntson" <iamcraig@iamcraigberntson.com> wrote in message
news:uuyAUKsDFHA.3972@TK2MSFTNGP15.phx.gbl...
> See
> http://support.microsoft.com/default.aspx?scid=kb;en-us;157048
>
> The bitmaps referred to no longer ship in that location, but you can find
> checkbox bitmaps in the Graphics directory.
> --
> Craig Berntson
> MCSD, Visual FoxPro MVP
> www.craigberntson.com
> Salt Lake City Fox User Group
> www.slcfox.org
> www.foxcentral.net
>
>
> "jw" <jw@nospam.com> wrote in message
> news:%23jIjqurDFHA.464@TK2MSFTNGP15.phx.gbl...
>> Hello,
>> In a listbox, is it possible to show a logical
>> field using a checkbox, like it does in a grid?
>> If it is, how is it done?
>> Thank you.
>>
>> --
>> jw
>>
>
>



Re: checkbox in listbox? by Wolfgang

Wolfgang
Wed Feb 09 15:04:36 CST 2005

HI,
why don't you use a grid filled by a view or a SQL-Query

Select *,.f. as lSelected from customer
Put a grid on the form and add a checkbox in the lSelect column. and set it
as currentcontrol

--


------------------------------

Mit freundlichen Güßen aus der Zigarrenstadt

Wolfgang Schmale

------------------------------------------------
"jw" <jw@nospam.com> schrieb im Newsbeitrag
news:%23jIjqurDFHA.464@TK2MSFTNGP15.phx.gbl...
> Hello,
> In a listbox, is it possible to show a logical
> field using a checkbox, like it does in a grid?
> If it is, how is it done?
> Thank you.
>
> --
> jw
>



Re: checkbox in listbox? by jw

jw
Wed Feb 09 16:34:32 CST 2005

Having been told it's not possible to add the checkbox
to a listbox, and also decided not to go the bitmap way,
a grid is exactly what I'm using now, and setting the
grid-lines value to "none" to make it look more
like a listbox. ;)

--
jw


Wolfgang Schmale wrote:
> HI,
> why don't you use a grid filled by a view or a SQL-Query
>
> Select *,.f. as lSelected from customer
> Put a grid on the form and add a checkbox in the lSelect column. and set it
> as currentcontrol
>


RE: checkbox in listbox? by darrengosnell

darrengosnell
Wed Feb 09 21:37:01 CST 2005

Hi JW,

I had this problem a little while ago. I ended up using a TREE control. The
MS one.
I can have chkboxes, images and text on one row if I like.
HTH
Darren.

"jw" wrote:

> Hello,
> In a listbox, is it possible to show a logical
> field using a checkbox, like it does in a grid?
> If it is, how is it done?
> Thank you.
>
> --
> jw
>
>

Re: checkbox in listbox? by Paul

Paul
Thu Feb 10 10:51:46 CST 2005

Hey, pretty nifty!

"Craig Berntson" <iamcraig@iamcraigberntson.com> wrote in message
news:uuyAUKsDFHA.3972@TK2MSFTNGP15.phx.gbl...
> See
> http://support.microsoft.com/default.aspx?scid=kb;en-us;157048
>
> The bitmaps referred to no longer ship in that location, but you can find
> checkbox bitmaps in the Graphics directory.
> --
> Craig Berntson
> MCSD, Visual FoxPro MVP
> www.craigberntson.com
> Salt Lake City Fox User Group
> www.slcfox.org
> www.foxcentral.net
>
>
> "jw" <jw@nospam.com> wrote in message
> news:%23jIjqurDFHA.464@TK2MSFTNGP15.phx.gbl...
>> Hello,
>> In a listbox, is it possible to show a logical
>> field using a checkbox, like it does in a grid?
>> If it is, how is it done?
>> Thank you.
>>
>> --
>> jw
>>
>
>



Re: checkbox in listbox? by David

David
Thu Feb 10 22:04:58 CST 2005

jw,

You can pretty much make a grid look exactly like a listbox by tweaking a
few properties.

DeleteMark = .f.
GridLines = 0
HeaderHeight = 0
RecordMark = .f.
ScrollBars = 2

--
df - Microsoft MVP FoxPro http://www.geocities.com/df_foxpro

"jw" <jw@nospam.com> wrote in message
news:O1xLIevDFHA.3324@TK2MSFTNGP15.phx.gbl...
> Having been told it's not possible to add the checkbox
> to a listbox, and also decided not to go the bitmap way,
> a grid is exactly what I'm using now, and setting the
> grid-lines value to "none" to make it look more
> like a listbox. ;)



Re: checkbox in listbox? by jw

jw
Fri Feb 11 07:53:10 CST 2005

Thanks David.

--
jw

David Frankenbach wrote:
> jw,
>
> You can pretty much make a grid look exactly like a listbox by tweaking a
> few properties.
>
> DeleteMark = .f.
> GridLines = 0
> HeaderHeight = 0
> RecordMark = .f.
> ScrollBars = 2
>


Re: checkbox in listbox? by jw

jw
Fri Feb 11 07:54:08 CST 2005

Darren,

Tree control doesn't exactly fit my case,
but thanks for the suggestion anyway.

--
jw

Darren Gosnell wrote:

> Hi JW,
>
> I had this problem a little while ago. I ended up using a TREE control. The
> MS one.
> I can have chkboxes, images and text on one row if I like.
> HTH
> Darren.
>
> "jw" wrote:
>
>
>>Hello,
>>In a listbox, is it possible to show a logical
>>field using a checkbox, like it does in a grid?
>>If it is, how is it done?
>>Thank you.
>>
>>--
>>jw
>>
>>