Are there checked uncheck box bitmap functions ?

Post Reply
ShumingWang
Posts: 454
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Are there checked uncheck box bitmap functions ?

Post by ShumingWang »

Hi,
Like hBmpRecSel := FwRArrow()
hBmpBtnList := FwDArrow()
hBmpSortAsc := FwBmpAsc()
hBmpSortDes := FwBmpDes()
Are there checked, uncheck box bitmap functions ?
Regards!
Shuming Wang
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Post by nageswaragunupudi »

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

G. N. Rao.
Hyderabad, India
Colin Wisbey
Posts: 56
Joined: Mon Jul 03, 2006 2:34 am

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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 ?)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Colin Wisbey
Posts: 56
Joined: Mon Jul 03, 2006 2:34 am

Re: Are there checked uncheck box bitmap functions ?

Post 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).
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Are there checked uncheck box bitmap functions ?

Post by nageswaragunupudi »

FWBmpOn() and FWBmpOff()
Regards

G. N. Rao.
Hyderabad, India
Colin Wisbey
Posts: 56
Joined: Mon Jul 03, 2006 2:34 am

Re: Are there checked uncheck box bitmap functions ?

Post 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
Colin Wisbey
Posts: 56
Joined: Mon Jul 03, 2006 2:34 am

Re: Are there checked uncheck box bitmap functions ?

Post by Colin Wisbey »

Thanks, Enrico. Cheers, mate.
Col
Post Reply