FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour checkbox with Bitmaps
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
checkbox with Bitmaps
Posted: Tue Mar 10, 2009 12:32 PM

can I create checkbox control with different bitmaps ?

Best Regards, Saludos



Falconi Silvio
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: checkbox with Bitmaps
Posted: Tue Mar 10, 2009 04:19 PM
Hello Silvio,

a possible way, how to do it :



Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 782
Joined: Wed Dec 19, 2007 07:50 AM
Re: checkbox with Bitmaps
Posted: Tue Mar 10, 2009 04:29 PM
Silvio wrote:can I create checkbox control with different bitmaps ?

Hi Silvio:

Could you show me a graphical approach of your request?

Regards.

Manuel Mercado
manuelmercado at prodigy dot net dot mx
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: checkbox with Bitmaps
Posted: Tue Mar 10, 2009 04:48 PM
LIKE as this :
Best Regards, Saludos



Falconi Silvio
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: checkbox with Bitmaps
Posted: Tue Mar 10, 2009 05:11 PM
Silvio,

Your choice is my solution No. 2

It is easy to do :

1. Inside Your resource create the checkbox
2. delete the text and trim the resource to the square-size
3. next to the checkbox create a Image-Resource ( right )
4. next to the Image-resource write the needed text.



Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 782
Joined: Wed Dec 19, 2007 07:50 AM
Re: checkbox with Bitmaps
Posted: Tue Mar 10, 2009 05:30 PM

Hi Silvio:

To do that, you better use a xBrowse grid you'll found some samples with checkbox and bitmaps in a xBrowse here in previous posts.

Regards.

Manuel Mercado.

manuelmercado at prodigy dot net dot mx
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: checkbox with Bitmaps
Posted: Tue Mar 10, 2009 06:42 PM

Hallo Manuel,

with a list of checkboxes, it might to be a good solution.
Many times, I have only one checkbox or checkboxes are not in line.
Of that kind, it is the only solution, showing a picture between checkbox
and belonging text, like shown in my screenshot.

Regards
Uwe :lol:

Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 782
Joined: Wed Dec 19, 2007 07:50 AM
Re: checkbox with Bitmaps
Posted: Tue Mar 10, 2009 06:57 PM
ukoenig wrote:with a list of checkboxes, it might to be a good solution.
Many times, I have only one checkbox or checkboxes are not in line.
Of that kind, it is the only solution, showing a picture between checkbox
and belonging text, like shown in my screenshot.

Hello Uwe:

I agree, now our friend Silvio will have various alternatives.

Best regards.

Manuel Mercado.
manuelmercado at prodigy dot net dot mx
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: checkbox with Bitmaps
Posted: Tue Mar 10, 2009 11:42 PM

But I remember , I saw , there was a class , it creted checkbox with bitmaps or perhaps I remember bad
TYPE
@ x,y CHECKBOX oCheck BITMAP Filename "uno.bmp" Size XX,YY

Best Regards, Saludos



Falconi Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: checkbox with Bitmaps
Posted: Wed Mar 11, 2009 12:38 AM

thanks

Best Regards, Saludos



Falconi Silvio
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: checkbox with Bitmaps
Posted: Wed Mar 11, 2009 05:42 AM

Why don't you just use two columns--put the checkbox in the first column and the bitmap in the next one. It will look the same as you example.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion