See changelog 2001-12-08 08:40 GMT -3

This commit is contained in:
Luiz Rafael Culik
2001-12-08 10:33:48 +00:00
parent aab90a31b8
commit 3cee3c9fab
2 changed files with 10 additions and 17 deletions

View File

@@ -183,21 +183,9 @@ STATIC Function Display()
function __GUICOLOR( cPair, nPos )
local ccolor := cPair, nPosition, nCommaPos
for nPosition := 2 to nPos
nCommaPos := At(",", ccolor)
if ( nCommaPos == 0 )
ccolor := ""
exit
endif
ccolor := SubStr(ccolor, nCommaPos + 1)
next
nCommaPos := At(",", ccolor)
if ( nCommaPos > 0 )
ccolor := SubStr(ccolor, 1, nCommaPos - 1)
endif
return ccolor
local ccolor := cPair, nPosition:=0, nCommaPos:=0
ccolor:=hb_colorindex(cpair,npos-1)
return ccolor
function _CHECKBOX_( Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7)
LOCAL oCheck

View File

@@ -97,7 +97,7 @@ DAta fBlock init Nil
DATA Hotbox init ""
Data ColorSpec init ""
DATA ColdBox
Data ISOPEN
Data ISOPEN init .f.
Data aItems init {}
Data vScrolls
@@ -248,7 +248,7 @@ METHOD SetBottom(xData) CLASS HBListBox
METHOD ADDITEM( cText, xValue ) CLASS HBListBox
if ( !( ISCHARACTER( cText ) ) )
elseif ( ValType(xValue) $ "CU" )
elseif ( ValType(xValue) $ "CUN" )
AAdd(::aItems, {cText, xValue})
::iTemCount++
if ( ::iTemCount == 1 .and. ISOBJECT(( ::Topitem := 1,::nTopItem:=1,::vScroll ) ))
@@ -934,16 +934,21 @@ function _LISTBOX_( Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, ;
local oScroll, nPos, nLen, nCurPos
default arg5 to 1
default arg12 to .f.
default arg13 to .f.
oScroll := listbox(Arg1, Arg2, Arg3, Arg4, Arg12)
if ( !( ISNIL( oScroll ) ) )
if ( ISCHARACTER( Arg7 ) )
oScroll:caption:=Arg7
oScroll:capcol:=Arg2 - __caplengt(Arg7)
endif
if arg9!=nil
oScroll:colorspec:=Arg9
endif
oScroll:message:=Arg8
oScroll:fblock:=Arg10
oScroll:sblock:=Arg11
oScroll:isopen:=arg13
nLen := Len(Arg6)
for nPos := 1 to nLen
nCurPos := Arg6[ nPos ]