Search found 45 matches: getselected

Return to advanced search

Re: Converte oTree into Xbrowse Tree

... How I can to converte these commands : oTree:ExpandAll() oTree:CollapseAll() oTree:ExpandBranch() oTree:CollapseBranch() oTree:GetSelected() I need it for edit/modify
by Silvio.Falconi
Fri Jan 20, 2023 8:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Converte oTree into Xbrowse Tree
Replies: 2
Views: 233

Re: Negrita en in ITEM del tree?

Antonio Linares wrote:if oTree:GetSelected() != nil
oTree:GetSelected():Bold( .T. )
endif


Intente eso antonio, pero no me funcionó, es el codigo del pim.prg
by goosfancito
Wed Apr 27, 2022 3:22 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Negrita en in ITEM del tree?
Replies: 20
Views: 1618

Re: Negrita en in ITEM del tree?

if oTree:GetSelected() != nil
oTree:GetSelected():Bold( .T. )
endif
by Antonio Linares
Wed Apr 27, 2022 2:11 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Negrita en in ITEM del tree?
Replies: 20
Views: 1618

Re: Negrita en in ITEM del tree?

El mensaje GetSelected tiene que enviarse al árbol, no a un item

oTree:GetSelected()
by Antonio Linares
Wed Apr 27, 2022 11:56 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Negrita en in ITEM del tree?
Replies: 20
Views: 1618

Re: Negrita en in ITEM del tree?

... error         oSubItem := oItem:ADD( oQry:FieldGet( "c7" ) + "     " + ::cCargo )         IF ( oSubItem:GetSelected() != NIL )            oSubItem:GetSelected():Bold()         ENDIF  Error description: Error BASE/1004 Message ...
by goosfancito
Wed Apr 27, 2022 11:08 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Negrita en in ITEM del tree?
Replies: 20
Views: 1618

Re: cantidad de items en un TREE

Ese error te aparece porque no hay ningún item del tree seleccionado, por eso devuelve nil

Hazlo asi:

if oTree:getselected() != nil
? oTree:getselected():count()
endif
by Antonio Linares
Fri Apr 22, 2022 11:34 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: cantidad de items en un TREE
Replies: 14
Views: 1085

Re: cantidad de items en un TREE

... y obtener lo que necesitas: MENUITEM "Tree items" ACTION MsgInfo( oTree:Count() ) MENUITEM "Count items" ACTION If( oTree:GetSelected() != nil, MsgInfo( oTree:GetSelected():Count() ), ) Ahora puedes pulsar el botón derecho en cualquier item y saber cual es su longitud ó ...
by Antonio Linares
Mon Sep 13, 2021 6:17 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: cantidad de items en un TREE
Replies: 14
Views: 1085

Eliminar un Tree completo?

hola.

::oTre:add("....")

como hago para eliminar todo el arbol? con ::oTree:getselected():end() elimino la rama seleccionada, pero si quiero eliminar el arbol para reconstruirlo?

gracias.
by goosfancito
Thu Dec 10, 2020 9:35 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Eliminar un Tree completo?
Replies: 2
Views: 345

Re: BOM production

... odb2:=::odb2 ::oTree:bChanged := {|oTree,oItem|eng0303(self) } // ... return FUNCTION eng0303(obl1) local itemid1,version1 oitem:=obl1:oTree:GetSelected() itemid1:=LEFT(oitem:cprompt,nitemidlen) version1:=SUBSTR(oitem:cprompt,nitemidlen+3,10) obl1:odb1:cquery:="select * from "+obl1:odb1:ctable+" ...
by ShumingWang
Fri Apr 27, 2018 2:03 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: BOM production
Replies: 3
Views: 1128

Re: tree level

oTree:GetSelected() --> oItem

oItem:Cargo // place here what you may need

Please review FWH\samples\classtre.prg, fiveres.prg
by Antonio Linares
Fri Feb 23, 2018 4:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: tree level
Replies: 7
Views: 1018

oTree para video FUNCIONANDO

...  @ 0.5, 1 TREEVIEW oTree OF oDlg SIZE 100, 150     @ 1, 27 BUTTON "&Ver" OF oDlg SIZE 40, 12 ;     ACTION (msginfo(oTree:GetSelected():cPrompt) , oDlg:End()) DEFAULT         //(WinExec("CMD /C START /separate " + x_file,0)     @ 3, 27 BUTTON "&Añadir ...
by Andrés González
Fri Dec 15, 2017 10:58 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: oTree para video FUNCIONANDO
Replies: 3
Views: 980

Re: Fivewin en version antigua (FW24)

... TESTDTP.PRG on samples directory. * Improved: Classes TTreView and TTVItem have been tremendously improved: New methods on class TTreeView: - GetSelected() -> oItem - Select( oItem ) - DeleteAll() - HitTest( nRow, nCol ) New datas on class TTVItem: - cPrompt - nImage New method on class ...
by cnavarro
Wed Jun 22, 2016 9:12 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Fivewin en version antigua (FW24 xHarbour)
Replies: 28
Views: 5091

Re: Fivewin en version antigua (FW24)

... the control as: 'SysDateTimePick32' * Improved: Classes TTreView and TTVItem have been tremendously improved: New methods on class TTreeView: - GetSelected() -> oItem - Select( oItem ) - DeleteAll() - HitTest( nRow, nCol ) New datas on class TTVItem: - cPrompt - nImage New method on class ...
by cnavarro
Wed Jun 22, 2016 9:06 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Fivewin en version antigua (FW24 xHarbour)
Replies: 28
Views: 5091

del an Item on treview

... category is tree first level (GEMATERIA) subcategory is tree second level ( GEPCLAVE) I made : first del the record from dbf local oLink := oTree:GetSelected() local cPrompt := oLink:cPrompt local cCargo := oLink:Cargo local nRecno := GE->(Recno()) local lMateria := ( Len(cCargo) <= 40 ) ...
by Silvio.Falconi
Mon Dec 21, 2015 9:11 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: del an Item on treview
Replies: 6
Views: 907

del an tree Item

How I can del an Item of a Tree ?

I try with :
local oLink := oTree:GetSelected()
local cPrompt := oLink:cPrompt
local cCargo := oLink:Cargo


oLink:end() ----> make error
oLink:DeleteBranches()----> make error


someone Know the tree class ?
by Silvio.Falconi
Wed Nov 25, 2015 5:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: del an tree Item
Replies: 1
Views: 247
Next

Return to advanced search