Xbrowse celltext-centered using < EDIT_GET_LISTBOX > ?

Xbrowse celltext-centered using < EDIT_GET_LISTBOX > ?

Postby ukoenig » Mon Aug 22, 2016 2:25 pm

Hello,

is it possible to use the full cellwidth using xBrowse < EDIT_GET_LISTBOX > ?
It means to display the arrow on TOP of the celltext and NOT using a
extra space.
Maybe the celltext can be adjusted ( centerd ) to the FULL cellwidth after leaving the row with no visible arrow.
The celltext needed to shown centered.

:aCols[I]:nWidth := 100
:aCols[I]:nDataStrAlign := AL_CENTER // doesn' t work
:aCols[I]:nHeadStrAlign := AL_CENTER
:aCols[I]:nEditType := EDIT_GET_LISTBOX
:aCols[I]:aEditListBound := ;
:aCols[I]:aEditListTxt := { "F", "M", "S", "F-M-S", "Frei", "Urlaub", "Krank" }


Image

regards
Uwe :?:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Xbrowse celltext-centered using < EDIT_GET_LISTBOX > ?

Postby ShumingWang » Mon Sep 05, 2016 8:44 am

method paintdata() class txcolumn
if nType > 1
if ! Empty( aBitmap := ::aBitmap( ::nBtnBmp ) )
nBtnWidth := aBitMap[ BITMAP_WIDTH ] + 1
aBitmap := nil
else
nBtnWidth := 10
endif
nButtonRow := nRow
nButtonCol := nCol + nWidth - nBtnWidth
// nWidth -= ( nBtnWidth + 5 )
// remove this line
endif

Shuming Wang
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 104 guests