Page 1 of 1

Are there checked uncheck box bitmap functions ?

PostPosted: Tue Aug 12, 2008 2:38 am
by ShumingWang
Hi,
Like hBmpRecSel := FwRArrow()
hBmpBtnList := FwDArrow()
hBmpSortAsc := FwBmpAsc()
hBmpSortDes := FwBmpDes()
Are there checked, uncheck box bitmap functions ?
Regards!
Shuming Wang

PostPosted: Tue Aug 12, 2008 3:31 am
by nageswaragunupudi
None as of now ( to my knowledge). I wish fivewin provides them too

PostPosted: Wed Aug 13, 2008 8:05 am
by Colin Wisbey
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

PostPosted: Wed Aug 13, 2008 9:26 am
by Antonio Linares
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 ?)

Re: Are there checked uncheck box bitmap functions ?

PostPosted: Tue Oct 23, 2018 2:44 am
by Colin Wisbey
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).

Re: Are there checked uncheck box bitmap functions ?

PostPosted: Tue Oct 23, 2018 2:56 am
by nageswaragunupudi
FWBmpOn() and FWBmpOff()

Re: Are there checked uncheck box bitmap functions ?

PostPosted: Tue Oct 23, 2018 4:44 am
by Colin Wisbey
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

Re: Are there checked uncheck box bitmap functions ?

PostPosted: Tue Oct 23, 2018 8:24 am
by Enrico Maria Giordano
Hi Colin, it's a pleasure to see you hanging around here again. :-)

EMG

Re: Are there checked uncheck box bitmap functions ?

PostPosted: Tue Oct 23, 2018 10:42 pm
by Colin Wisbey
Thanks, Enrico. Cheers, mate.
Col