FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Are there checked uncheck box bitmap functions ?
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
Are there checked uncheck box bitmap functions ?
Posted: Tue Aug 12, 2008 02:38 AM

Hi,
Like hBmpRecSel := FwRArrow()
hBmpBtnList := FwDArrow()
hBmpSortAsc := FwBmpAsc()
hBmpSortDes := FwBmpDes()
Are there checked, uncheck box bitmap functions ?
Regards!
Shuming Wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Are there checked uncheck box bitmap functions ?
Posted: Tue Aug 12, 2008 03:31 AM

None as of now ( to my knowledge). I wish fivewin provides them too

Regards



G. N. Rao.

Hyderabad, India
Posts: 56
Joined: Mon Jul 03, 2006 02:34 AM
Are there checked uncheck box bitmap functions ?
Posted: Wed Aug 13, 2008 08:05 AM

I'm keen for same facility.

For many years I have used the following for a Tick / Empty pair:


// Use OEM system resources <- Black tick
LOCAL _hOn := LoadBitMap(0, OBM_CHECK)

// Next equates to an empty cell and is treated as if it were bitmap
LOCAL _hOff := Chr(160)


//When finished with these, do this

DeleteObject(_hOn)


The above approach works fine - it's just not as visually pretty as I would like.

Colin Wisbey

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Are there checked uncheck box bitmap functions ?
Posted: Wed Aug 13, 2008 09:26 AM

Checked and UnChecked images are based on the used Windows theme and on the used Windows version, so we can not provide generic functions, unless we decide what images we want for them (XP, Vista, themed or classic? what theme ?)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 56
Joined: Mon Jul 03, 2006 02:34 AM
Re: Are there checked uncheck box bitmap functions ?
Posted: Tue Oct 23, 2018 02:44 AM

Apologies for resurrecting such an old post but hoping it's been solved by now. I've been out of the FWH community loop for long time but need to revisit some legacy apps of mine and, in my browses based on TCBrowse, it seems that the next bit still works to display a check (tick) in a cell but no longer works (under Win 10 32 bit) to display a "blank" to represent unchecked. Now using CHR(160) results in an oversized red cross instead of a blank as it had done under Win XP, Vista and Win 7 32bit.

_hOn := LoadBitMap(0, OBM_CHECK) // Use OEM system resources <- Black tick <- this still works fine
// Next equates to an empty cell and is treated as if it were bitmap
LOCAL _hOff := Chr(160) // <- this no longer works.

Anyone have a suggestion? Many thanks in advance.

Colin Wisbey
(BTW, regards to all my old FW/FWH friends, many of whom I'm pleased to notice are still active on here).

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Are there checked uncheck box bitmap functions ?
Posted: Tue Oct 23, 2018 02:56 AM

FWBmpOn() and FWBmpOff()

Regards



G. N. Rao.

Hyderabad, India
Posts: 56
Joined: Mon Jul 03, 2006 02:34 AM
Re: Are there checked uncheck box bitmap functions ?
Posted: Tue Oct 23, 2018 04:44 AM

Thank you as always, my friend, and especially for such a prompt response but I've been out of the Fivewin loop and my FWH version is about 2008 so does not have those functions.
Regards,
Colin

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Are there checked uncheck box bitmap functions ?
Posted: Tue Oct 23, 2018 08:24 AM

Hi Colin, it's a pleasure to see you hanging around here again. :-)

EMG

Posts: 56
Joined: Mon Jul 03, 2006 02:34 AM
Re: Are there checked uncheck box bitmap functions ?
Posted: Tue Oct 23, 2018 10:42 PM

Thanks, Enrico. Cheers, mate.
Col

Continue the discussion