Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #4526

Re: Most efficient way to re-arrange bBrowser columns?

From "Er!k \\/!$$Er" <nospam@nospam.url>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Most efficient way to re-arrange bBrowser columns?
Date 2012-12-28 20:01 +0100
Message-ID <ak68knF19lmU1@mid.individual.net> (permalink)
References <f60rd8dcb4r6ts9mp2eiaj394v5ohpr88b@4ax.com>

Show all headers | View raw


Hi Dick,

I think I would pass the column names in the bBrowser:Use() .
That would solve the time consuming moving.

Erik

"D.J.W. van Kooten"  schreef in bericht 
news:f60rd8dcb4r6ts9mp2eiaj394v5ohpr88b@4ax.com...

We store user settings of bBrowser column positions and width. After
initializing the bBrowser with the programmed defaults, the code below
re-arranges the bBrowser by resizing to the size stored in aCols (read
from the setting file) and then move the columns in the order as
stored in this array. I found that especially the Move is quite time
consuming; it can take 3 seconds.

Can anyone recommend a quicker way to re-arrange the columns in a
different order?


FOR dwIndex := 1 UPTO ALen (aCols)
cField := aCols [dwIndex, 1]
dwSize := aCols [dwIndex, 3]
dwColpos := oBrowser:GetOpenColumnNo (cField)
oBrowser:ResizeColumn (dwColpos, dwSize)
oBrowser:MoveColumn (dwColpos, 0) // move column behind last
column
NEXT


Dick 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Most efficient way to re-arrange bBrowser columns? D.J.W. van Kooten <public@ic2remove.this.com> - 2012-12-28 12:26 +0100
  Re: Most efficient way to re-arrange bBrowser columns? wd <WD@delius-consult.de> - 2012-12-28 03:38 -0800
  Re: Most efficient way to re-arrange bBrowser columns? "Er!k \\/!$$Er" <nospam@nospam.url> - 2012-12-28 20:01 +0100
  Re: Most efficient way to re-arrange bBrowser columns? "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2012-12-28 22:02 +0100
  Re: Most efficient way to re-arrange bBrowser columns? D.J.W. van Kooten <public@ic2remove.this.com> - 2012-12-31 15:28 +0100
    Re: Most efficient way to re-arrange bBrowser columns? Mathias <mathias.hakansson@consultec.se> - 2013-01-07 22:38 -0800
      Re: Most efficient way to re-arrange bBrowser columns? Mathias <mathias.hakansson@consultec.se> - 2013-01-07 22:55 -0800
      Re: Most efficient way to re-arrange bBrowser columns? D.J.W. van Kooten <public@ic2remove.this.com> - 2013-01-08 09:05 +0100

csiph-web