Xbrowse button size
- Silvio.Falconi
- Posts: 4956
- Joined: Thu Oct 18, 2012 7:17 pm
Xbrowse button size
I use FW_BmpPlus(), FW_BmpMinus()
Can we correct this problem ?
the size of plus button see to smaller than minus button
I tried with other file (png)
As you can see the border ( on yellow) is too big of plus button
thanks
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: Xbrowse button size
Can you try making this change in XBrowse.prg?
Please locate the method
METHOD PaintCellBtn( hDC, oRect, aColors ) CLASS TXBrwColumn
The method looks like this:
Please change it like this:
Please locate the method
METHOD PaintCellBtn( hDC, oRect, aColors ) CLASS TXBrwColumn
The method looks like this:
Code: Select all
METHOD PaintCellBtn( hDC, oRect, aColors ) CLASS TXBrwColumn
local oBtn, oBrush
if !::lBtnTransparent
WndBoxRaised(hDC, oRect:nTop - 1, oRect:nLeft - 1,;
oRect:nBottom, oRect:nRight + 1 ) // ButtonGet
endif
if ::nEditType == EDIT_LISTBOX .or. ::nEditType == EDIT_GET_LISTBOX
::oBtnElip:Hide()
oBtn := ::oBtnList
else
::oBtnList:Hide()
oBtn := ::oBtnElip
endif
oBtn:Move( oRect:nTop, oRect:nLeft, oRect:nWidth, oRect:nHeight, .f.) // ButtonGet
oBtn:Show()
oBtn:GetDC()
if .not. ::lBtnTransparent
oRect:nRight += 1
FillRect( hDC, oRect:aRect, oBtn:oBrush:hBrush )
else
FillRectEx( hDC, oRect:aRect, aColors[ 2 ] )
endif
oBtn:lTransparent := ::lBtnTransparent
if ! Empty( oBtn:hBitmap1 )
oBtn:PaintBitmap()
elseif ! Empty( oBtn:cCaption )
oBtn:PaintCaption()
endif
oBtn:ReleaseDC()
/*
if ::lBtnTransparent
oBtn:lTransparent := .f.
oBtn:bClrGrad := { || { { 1, aColors[ 2 ], aColors[ 2 ] } } }
endif
oBtn:Refresh()
*/
return nil
Code: Select all
METHOD PaintCellBtn( hDC, oRect, aColors ) CLASS TXBrwColumn
local oBtn, oBrush
if !::lBtnTransparent
WndBoxRaised(hDC, oRect:nTop - 1, oRect:nLeft - 1,;
oRect:nBottom, oRect:nRight + 1 ) // ButtonGet
endif
if ::nEditType == EDIT_LISTBOX .or. ::nEditType == EDIT_GET_LISTBOX
::oBtnElip:Hide()
oBtn := ::oBtnList
else
::oBtnList:Hide()
oBtn := ::oBtnElip
endif
oBtn:Move( oRect:nTop, oRect:nLeft, oRect:nWidth, oRect:nHeight, .f.) // ButtonGet
oBtn:Show()
/*
oBtn:GetDC()
if .not. ::lBtnTransparent
oRect:nRight += 1
FillRect( hDC, oRect:aRect, oBtn:oBrush:hBrush )
else
FillRectEx( hDC, oRect:aRect, aColors[ 2 ] )
endif
oBtn:lTransparent := ::lBtnTransparent
if ! Empty( oBtn:hBitmap1 )
oBtn:PaintBitmap()
elseif ! Empty( oBtn:cCaption )
oBtn:PaintCaption()
endif
oBtn:ReleaseDC()
*/
if ::lBtnTransparent
oBtn:lTransparent := .f.
oBtn:bClrGrad := { || { { 1, aColors[ 2 ], aColors[ 2 ] } } }
endif
oBtn:Refresh()
return nil
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- Silvio.Falconi
- Posts: 4956
- Joined: Thu Oct 18, 2012 7:17 pm
Re: Xbrowse button size
Now Seem ok thanks
the green button not is the same of red because the border is different, on red button not have that box, I see the box when I put the mouse over
the green button not is the same of red because the border is different, on red button not have that box, I see the box when I put the mouse over
Last edited by Silvio.Falconi on Mon Feb 10, 2020 2:01 pm, edited 1 time in total.
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
- Silvio.Falconi
- Posts: 4956
- Joined: Thu Oct 18, 2012 7:17 pm
Re: Xbrowse button size
Nages,
can we insert oCursor Hand when the user press these buttons?
can we insert oCursor Hand when the user press these buttons?
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC