Search found 47 matches: oself

Return to advanced search

Re: datas en clases..

... evaluado en la clase TBTNBMP, ese codeblock recibe como primer parametro Self, pero no es el Self de tu clase sino del la Clase TBTNBMP usando oSelf:=SELF forzamos a usar nuestro objeto y no el de clase TBTNBMP
by Daniel Garcia-Gil
Fri Dec 09, 2011 5:32 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: datas en clases..
Replies: 3
Views: 652

Re: Problema con botones y metodos

... el self (el botton mismo) como parametro intentara buscar el methodo SincroSorteos dentro de la btnbmp, para solventarlo, crea una variable local oSelf y le asignas el self de tu clase local oSelf := Self y cuando llames en la accion lo haces de esta manera ACTION oSelf:SincroSorteos(cCodLot,oBrw4,oBtn3)
by Daniel Garcia-Gil
Fri Jun 25, 2010 3:16 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Problema con botones y metodos
Replies: 2
Views: 468

Re: oSefl vs. ::

... into: [{|Self|<uAction>}] But that "Self" will be provided to the codeblock as a parameter and it is not :: So when we do local oSelf := Self and then we use oSelf from the codeblock, we are using oSelf and not the provided parameter self Little confusing but its simple :-)
by Antonio Linares
Mon Apr 19, 2010 10:24 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: oSefl vs. ::
Replies: 1
Views: 324

oSefl vs. ::

What is the difference between oSefl and :: ? Can someone please explain why oSelf is working and :: fails?  local oSelf             := SELF@ 10,10 BTNBMP oBtn OF ::oPanArt_WG;           SIZE 160, 80 ;               FONT oFnt ;             ACTION ( oSelf:oPanArt_WG:hide() ...
by Otto
Mon Apr 19, 2010 10:18 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: oSefl vs. ::
Replies: 1
Views: 324

Re: Get valid

... As I didn’t found a solution how to disable valid navigating upwards I thought of forcing the system to navigate upwards with Setfocus(). iif(oSelf:verfuegbarkeiten(oDlg), ( oGetAnreise:refresh(), oGetAbreise:refresh(), oGetZiNr:refresh(),.t. ), (oGetAbreise:setfocus(),.t.) ) ) It seems that ...
by Otto
Sat Mar 13, 2010 6:25 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Get valid
Replies: 20
Views: 4813

Re: Consulta sobre Get

Hola Juan.

con esto deberia funcionar

oGet:bGotFocus = {| oSelf | oSelf:SelectAll() }
by Daniel Garcia-Gil
Sun Feb 21, 2010 11:54 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta sobre Get
Replies: 4
Views: 641

Re: Foco en una ventana con Splitter

Gracias por responder. Aunque parece que por ahí no va la cosa. Quizás sea por el engendro; el Listbox esta hecho con código, y está definido antes porque uso las coordenadas oSelf:oBrw2:nHeight+oSelf:oDlg:nHeight, oSelf:oBrw2:nleft, para ubicarlo
Seguiremos buscando...
by MarioG
Tue Nov 17, 2009 9:49 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Foco en una ventana con Splitter
Replies: 6
Views: 792

Re: BTNGET vs GET..ACTION..BITMAP

... dData   DATA lTest INIT .T.   METHOD New() CONSTRUCTOR   ENDCLASSMETHOD New() CLASS MyClass   LOCAL oGet4, lWhen := .T., oDlg, oSelf := Self, cTxt := Space( 10 ), oGet5   ::dData := Date()   DEFINE DIALOG oDlg   @ 1, 1 GET oGet4 VAR ::dData OF oDlg PICTURE "@D"; ...
by Ugo
Wed Mar 04, 2009 8:32 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: BTNGET vs GET..ACTION..BITMAP
Replies: 8
Views: 1112

Re: Error al compilar source de FiveWin 2.6

... DATA aDb, aField, aIndex AS ARRAY METHOD New( cName ) CONSTRUCTOR METHOD Redefine( cFile ) INLINE ::New( cFile ), ::Read(), Self METHOD Update( oSelf ) METHOD AddField( cName, cTipo, nLen, nDec ) METHOD AddIndex( cName, cKey, bKey, cFor, bFor, lUnique ) METHOD AddDb( oDbm ) METHOD ReadFields() ...
by JOHAN DONADO
Sun Nov 25, 2007 3:33 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error al compilar source de FiveWin 2.6
Replies: 7
Views: 1365

Mario,

Desde la claúsula ON INIT tienes que devolver .f. para que Windows acepte dar el foco a otro control:

... ON INIT ;
if( !Empty( oSelf:cUser ), ( aO[_Cmb]:oJump:= aO[_Get1], aO[_Get1]:SetFocus(), .f. ), )
by Antonio Linares
Fri Aug 25, 2006 4:47 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Forzar Foco en Get
Replies: 5
Views: 1058

asi lo haría yo

Mario,

if( Empty( oSelf:cUser ), aO[_Get1]:SetFocus() , .T. )


Si lo anterior no funciona, usamos la fuerza bruta.
Deshabilito el combo al entrar, asi el foco no tiene más opción que irse al siguiente control.

if( !Empty( oSelf:cUser ), ( aO[_Cmb]:disable(), aO[_Get1]:SetFocus() ), )
by fleal
Fri Aug 25, 2006 4:10 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Forzar Foco en Get
Replies: 5
Views: 1058

Forzar Foco en Get

... El foco inicilal lo tiene el Como. Bajo cierta condición quiero que lo tenga el Get. Para ello hago desde el ON INIT del Dialog hago: if( !Empty( oSelf:cUser ), ( aO[_Cmb]:oJump:= aO[_Get1], aO[_Get1]:SetFocus() ), ) Pero el foco sigue apareciendo en el Combo. que está mal? gracias
by MarioG
Fri Aug 25, 2006 2:20 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Forzar Foco en Get
Replies: 5
Views: 1058

James; Thank you for answering. Good question on the oself. I have discovered that: ACTIVATE DIALOG ::oKeyPadDlg NOWAIT ON INIT ::oDlg:SetFocus() Will cause an error at run time. ::oDlg is presumed to belong to the tdialog ...
by reinaldocrespo
Thu Mar 16, 2006 11:27 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Input on one dialog to display on different dialog
Replies: 7
Views: 2217

Reinaldo, I think we are going to need a small self-contained example. Also I do not understand why you are using a local oSelf: local oSelf := Self DEFINE DIALOG oSelf:oKeyPadDlg RESOURCE "NUM_KEYPAD" OF oSelf:oDlg BRUSH oBrush oSelf:oKeyPadDlg is the same as ::oKeyPadDlg. You don't ...
by James Bott
Thu Mar 16, 2006 9:59 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Input on one dialog to display on different dialog
Replies: 7
Views: 2217

... * ********************************************************* METHOD Activate( ) CLASS tNewRol Local oSelf := Self LOCAL oFont LOCAL oIcon Local oBmp DEFINE Font ::oFont Name 'Arial' Bold SIZE 0,-11 Define Window oSelf:oWnd Title oSelf:cTitle Menu oSelf:MakeMenu() ...
by wilsongamboa
Mon Jan 23, 2006 1:09 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Problemas con Menu en tiempo de ejecucion
Replies: 8
Views: 2307
PreviousNext

Return to advanced search