Search found 41 matches: getparent

Return to advanced search

... & ODS_SELECTED ) { SetTextColor( lp->hDC, rgbFore ); SetBkColor( lp->hDC, rgbBack ); } break; case ODA_FOCUS: GetClassName( GetParent( lp->hwndItem ), szName, 30 ); if( lp->CtlType == ODT_COMBOBOX || szName[ 5 ] != '0' ) DrawFocusRect( lp->hDC, &lp->rcItem ...
by alex_cyr
Sat Jul 26, 2008 5:51 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: error al compilar TREEDRAW.C
Replies: 6
Views: 1501

listo

... algo sencillo aqui se los dejo... static function ArmaCadena(oTreeView) local cTexto1,cTexto2,cTexto3,cTexto4 cTexto1:=oTreeView:GetSelected():GetParent():GetParent:GetParent:cPrompt cTexto2:=oTreeView:GetSelected():GetParent():GetParent:cPrompt cTexto3:=oTreeView:GetSelected():GetParent():cPrompt ...
by Miguel Salas
Tue Jun 24, 2008 12:50 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: armar una cadena con los items padres en treeview
Replies: 2
Views: 643

You can check the Windows classname of the hWnd using GetClassName( hWnd ) so you will know what control or window has the focus and use GetParent() if needed Antonio, Is the question exactly how exactly?? Because as I described, I already tried, but I didn't do in the correct way. The way ...
by ericmagaldi
Mon Apr 21, 2008 7:53 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Read Handle of any type Window ACTIVE
Replies: 15
Views: 3872

Eric,

You can check the Windows classname of the hWnd using GetClassName( hWnd ) so you will know what control or window has the focus and use GetParent() if needed
by Antonio Linares
Mon Apr 21, 2008 7:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Read Handle of any type Window ACTIVE
Replies: 15
Views: 3872

? GetParent( GetFocus() ) Antonio, almost :) when opening a MDICHILD, same being active, the button didn't receive the focus and WinInfo () Handle of MDIClient returned , after the button received the focus, it worked. 1º-This ...
by ericmagaldi
Mon Apr 21, 2008 5:36 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Read Handle of any type Window ACTIVE
Replies: 15
Views: 3872

Eric,

? GetParent( GetFocus() )
by Antonio Linares
Mon Apr 21, 2008 5:09 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Read Handle of any type Window ACTIVE
Replies: 15
Views: 3872

problem oWnd

in a method there is a command

if GetClassName( GetParent( Self:hWnd ) ) != "TBAR"
oWnd = oWndFromhWnd( GetParent( Self:hWnd ) )
else
endif

How I can write to say that I must use this control into a dialog ?
by Silvio
Wed Mar 19, 2008 6:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: problem oWnd
Replies: 2
Views: 431

Coger el texto del item seleccionado en un TTreeView

Muy buenas foro, tengo un pequeño problema a la hora de coger el texto del item seleccionado de un TTreeView, mira yo utilizo oTree:GetSelected():GetParent():cPrompt (estoy cogiendo el texto del padre del hijo seleccionado), el problema es que me introduce códigos raros despues del texto adquirido. ...
by softruz
Fri Jan 25, 2008 12:20 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Coger el texto del item seleccionado en un TTreeView
Replies: 0
Views: 411

Gilberto,

Please review samples\TestTree.prg:

oTree:bChanged = { || oWnd:SetText( If( oTree:GetSelected():GetParent() != nil,;
oTree:GetSelected():GetParent():cPrompt + " + ", "" ) + ;
oTree:GetSelText() ) }
by Antonio Linares
Sat Sep 23, 2006 5:55 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Action em Tree
Replies: 4
Views: 1288

... * Correción: En FW++, en la clase TGet, pequeña correción en VK_RETURN y en el comportamiento de los "PushButtons" por defecto. * Nuevo: El método GetParent() de la clase TVItem (TreeViewItem), devuelve el padre de un elemento si este existe o nó. Revise samples\TreeView.prg para un ejemplo funcional. ...
by Antonio Linares
Mon Jan 09, 2006 9:48 pm
 
Forum: WhatsNew / Novedades
Topic: FTDN new January 2006 build / nuevo build de Enero 2006
Replies: 1
Views: 3639

FTDN new January 2006 build / nuevo build de Enero 2006

... for a working sample. * Fix: FW++ Class TGet minor fix on VK_RETURN and default pushbuttons behavior. * New: Class TVItem (TreeViewItem) Method GetParent(), returns the parent of a given treeview item if it exists or nil. Please review samples\TreeView.prg working sample. * Fix: Class TFolder ...
by Antonio Linares
Mon Jan 09, 2006 7:32 pm
 
Forum: WhatsNew / Novedades
Topic: FTDN new January 2006 build / nuevo build de Enero 2006
Replies: 1
Views: 3639
Previous

Return to advanced search