Página 1 de 1

Resizing TBrowse columns

Publicado: Lun Oct 01, 2012 5:59 pm
por Timm
Hi!
I use a TBrowse control wich contains 100 columns. When I resize the columns
with AEval( ::oBrw:aCols, {|x| x:nWidth := 32 } ) it takes time.
Is there a way to make it faster?
Best regards, Timm.

Resizing TBrowse columns

Publicado: Lun Oct 01, 2012 7:38 pm
por Roberto
Timm wrote on Mon, 01 October 2012 17:59Hi!
I use a TBrowse control wich contains 100 columns. When I resize the columns
with AEval( ::oBrw:aCols, {|x| x:nWidth := 32 } ) it takes time.
Is there a way to make it faster?
Best regards, Timm.
try
with object ::oBrw
:lRedraw := .F.
aEval(:aCols, { |x| nWidth := 32 }
:lRedraw := .T.
end
the browse will be painted just one time

Resizing TBrowse columns

Publicado: Mar Oct 02, 2012 5:47 pm
por Timm
Hi Roberto,
works great, many thanks!
Best regards, Timm.
"Roberto" <roberto[at]top2[dot]com[dot]br> schrieb im Newsbeitrag
news:5069d51d$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Timm wrote on Mon, 01 October 2012 17:59
>> Hi!
>>
>> I use a TBrowse control wich contains 100 columns. When
>> I resize the columns
>> with AEval( ::oBrw:aCols, {|x| x:nWidth := 32 } ) it
>> takes time.
>> Is there a way to make it faster?
>>
>> Best regards, Timm.
>
>
> try
>
> with object ::oBrw
> :lRedraw := .F.
> aEval(:aCols, { |x| nWidth := 32 }
> :lRedraw := .T.
> end
>
> the browse will be painted just one time