Search found 94 matches: ncreationorder

Return to advanced search

Re: ¿Saber numero de columna del browse? (SOLUCIONADO)

Karinha:

Aunque ya esta resuelto el tema, te agradezco la respuesta, busque en el foro
con oBrw:aCols[oBrw:SelectedCol():nCreationOrder] pero no mostraba resultados.

Saludos
by Armando
Sat Oct 28, 2023 4:17 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ¿Saber numero de columna del browse? (SOLUCIONADO)
Replies: 5
Views: 397

Re: ¿Saber numero de columna del browse?

Puede servirte
oBrw:aCols[nCol]:nCreationorder
No se si te entendi bien igualmente....
by cmsoft
Fri Oct 27, 2023 11:25 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ¿Saber numero de columna del browse? (SOLUCIONADO)
Replies: 5
Views: 397

Re: Fivewin and ADO

... n := 1 to Len( aValues )   oBrw:oCol( n ):anydata := aValues[ n ] next  where oBrw:oCol( n ) --> Column Object whose nCreationOrder is n. More about oBrw:oCol oBrw:oCol( c ) // --> oCol whose header is "c"oBrw:oCol( "anydata", uVal ...
by nageswaragunupudi
Fri Jun 09, 2023 8:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Fivewin and ADO
Replies: 36
Views: 3838

Re: XBROWSE Column Question

... STRETCHCOL_WIDEST Further stretches the widest character column to fit the GridWidth. :nStretchCol := nCol Similarly, stretches the column whose nCreationOrder is the same as nCol. how can i SET Cursor into 5th Column (also when outside Screen) oBrw:nSelCol := 5oBrw:RefreshCurrent()[/col]or ...
by nageswaragunupudi
Thu May 04, 2023 10:08 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE Column Question
Replies: 23
Views: 891

Re: Know the Column number clicked on the TXBrowse Header

From Mr. Rao:
To know the column number when created.
oBrw:bLClickHeaders := { |r,c,f,oCol| MsgInfo( oCol:nCreationOrder ) }
To know the present position in the visible columns ( position in oBrw:aCols )
oBrw:bLClickHeaders := { |r,c,f,oCol| MsgInfo( oCol:nPos ) }
by Antonio Linares
Thu Nov 17, 2022 9:20 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Know the Column number clicked on the TXBrowse Header
Replies: 5
Views: 483

Strange result with Xbrowse and oBrw:toexcel

... (Webshop, Maveco, Brand) These groupheaders are coded in xbrowse setup : :SetGroupHeader( "Webshop", oBrw4:oCol("Shopprijs"):nCreationOrder, oBrw4:oCol("Shopmarge"):nCreationOrder ) :SetGroupHeader( "Brand", oBrw4:oCol("Bruto"):nCreationOrder, ...
by Marc Venken
Tue Jul 06, 2021 9:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Strange result with Xbrowse and oBrw:toexcel
Replies: 2
Views: 358

Re: XBrowse: currently selected column position

I spoke too fast. What I really need is to know the position of the currently selected column starting from the first column. nCreationOrder is a sort of column id. nPos is the position starting from the first visible column not from the first column. Any help? EMG Excuse me Enrico. ...
by FranciscoA
Mon Oct 19, 2020 3:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBrowse: currently selected column position
Replies: 12
Views: 1304

Re: XBrowse: currently selected column position

HI Enrico.
oCol: = oBrw: SelectedCol ()
It seem oCol: nCreationOrder () returns the correct position of a column only when the columns keep their original order of creation, but not when they are swapped or hidden.

I have checked the class and could not find the method or function you want.
Regards
by FranciscoA
Fri Oct 16, 2020 10:28 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBrowse: currently selected column position
Replies: 12
Views: 1304

Re: XBrowse: currently selected column position

I spoke too fast. What I really need is to know the position of the currently selected column starting from the first column. nCreationOrder is a sort of column id. nPos is the position starting from the first visible column not from the first column.

Any help?

EMG
by Enrico Maria Giordano
Fri Oct 16, 2020 4:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBrowse: currently selected column position
Replies: 12
Views: 1304

Re: XBrowse: currently selected column position

Jack wrote:o:nCreationOrder


Sorry, Jack, nCreationOrder seems to be what I was looking for, thank you.

EMG
by Enrico Maria Giordano
Fri Oct 16, 2020 2:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBrowse: currently selected column position
Replies: 12
Views: 1304

Re: XBrowse: currently selected column position

Jack wrote:oBrw:nColSel
o:nCreationOrder


Sorry, nColSel is the position from the first visible column and nCreationOrder is the creation order of the column not its position. I need the real physical position of the selected column counted from the first column.

EMG
by Enrico Maria Giordano
Fri Oct 16, 2020 9:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBrowse: currently selected column position
Replies: 12
Views: 1304

Re: XBrowse: currently selected column position

Look at this : oBrw:nColSel o:nCreationOrder FOR i := 2 TO LEN( oBrw:aCols) oCol := oBrw:aCols[ i ] oCol:nEditType := EDIT_GET oCol:bOnPostEdit := {|o, v, n| iif( (n != VK_ESCAPE .AND. oBrw:nColSel >2), (dbselectarea("EQUIP"),DBRLOCK(), ...
by Jack
Fri Oct 16, 2020 9:14 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBrowse: currently selected column position
Replies: 12
Views: 1304

Re: Number of column

... of the column. Can be zero if the column is hidden. oCol:nPos N Actual column position in the browse. If columns is not visible nPos == 0 oCol:nCreationOrder ReadOnly N Ordinal creation order of the columns
by cnavarro
Wed Mar 04, 2020 1:00 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Number of column
Replies: 2
Views: 466

Re: xbrowse Devolver valor de una celda

oXBrowse:SelectedCol() --> oColumn

oXBrowse:nAt --> nColumnPosition // OJO: Posición en las columnas visualizadas

Es interesante ver el código del método nAt():
METHOD nAt() INLINE ::ColPos( ::SelectedCol() )

oColumn:nCreationOrder es el índice de columna cuando se creó
by cnavarro
Wed Oct 09, 2019 11:52 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: xbrowse Devolver valor de una celda
Replies: 2
Views: 449

Re: Xbrowse colors

... static function CellColor( oCol ) local aColor := { CLR_BLACK, CLR_WHITE } local oBrw := oCol:oBrw local nRow := oBrw:nArrayAt local nCol := oCol:nCreationOrder local cVal := oCol:Value if ! Empty( cVal ) if nCol = 3 .or. ncol = 5 ; .or. nCol= 7 .or. nCol= 9 .or. nCol= 11 ; .or. nCol= 13 .or. ...
by Silvio.Falconi
Tue Sep 17, 2019 11:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse colors
Replies: 7
Views: 812
Next

Return to advanced search