Are there checked uncheck box bitmap functions ?

Are there checked uncheck box bitmap functions ?

Postby ShumingWang » Tue Aug 12, 2008 2:38 am

Hi,
Like hBmpRecSel := FwRArrow()
hBmpBtnList := FwDArrow()
hBmpSortAsc := FwBmpAsc()
hBmpSortDes := FwBmpDes()
Are there checked, uncheck box bitmap functions ?
Regards!
Shuming Wang
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Postby nageswaragunupudi » Tue Aug 12, 2008 3:31 am

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

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10690
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Postby Colin Wisbey » Wed Aug 13, 2008 8: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
Colin Wisbey
 
Posts: 56
Joined: Mon Jul 03, 2006 2:34 am

Postby Antonio Linares » Wed Aug 13, 2008 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42203
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Are there checked uncheck box bitmap functions ?

Postby Colin Wisbey » Tue Oct 23, 2018 2: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).
Colin Wisbey
 
Posts: 56
Joined: Mon Jul 03, 2006 2:34 am

Re: Are there checked uncheck box bitmap functions ?

Postby nageswaragunupudi » Tue Oct 23, 2018 2:56 am

FWBmpOn() and FWBmpOff()
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10690
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Are there checked uncheck box bitmap functions ?

Postby Colin Wisbey » Tue Oct 23, 2018 4: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
Colin Wisbey
 
Posts: 56
Joined: Mon Jul 03, 2006 2:34 am

Re: Are there checked uncheck box bitmap functions ?

Postby Enrico Maria Giordano » Tue Oct 23, 2018 8:24 am

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8725
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Are there checked uncheck box bitmap functions ?

Postby Colin Wisbey » Tue Oct 23, 2018 10:42 pm

Thanks, Enrico. Cheers, mate.
Col
Colin Wisbey
 
Posts: 56
Joined: Mon Jul 03, 2006 2:34 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 85 guests