Search found 14 matches: oclone

Return to advanced search

Re: Problem with font

Marcelo,

OK, now I see the issue.

As I mentioned in a previous post, you should clone the global font before assigning it to a dialog.

Local oFont:= oClone( AppFont() )

This way when the dialog ends the font, it doesn't have any effect on the global font or the global font counter.

James
by James Bott
Mon Jun 13, 2016 10:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with font
Replies: 13
Views: 3025

Re: Problem with font

... then you are ending it. Then next time you are trying to use the same font that you just ended. Try creating a clone of the app font oFont:= oClone( oApp():oFont ) Then ending the clone when you are done with it. James
by James Bott
Thu Jun 09, 2016 2:20 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with font
Replies: 13
Views: 3025

Re: Strange Font Problem in fwh 1412

... actually returns the same object with its internal counter :nCount incremented. Actually, the internal method :Modify() achieves the same effect. oClone := Clone_Font( oArial ) // your method is exactly same as oClone := oArial:Modify() // inbuilt method without parameters. Example: DEFINE FONT ...
by nageswaragunupudi
Wed Jan 28, 2015 1:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Strange Font Problem in fwh 1412
Replies: 18
Views: 3935

Re: Iconos en dialogos

Has probado a realizar un oClone del objeto en lugar de una asignacion directa?
Es una idea, por si lo elimina por referencia al destruir el dialogo
by cnavarro
Fri Jan 17, 2014 11:54 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Iconos en dialogos
Replies: 2
Views: 379

error 667

Hi! I start getting err 667 in Clipper 5.2 application (there is no FW only objects library), Causeway linker.

OCLONE (0) Unrecoverable error 667: Eval stack fault

please help
by mosh1
Wed Sep 18, 2013 2:37 am
 
Forum: FiveWin for CA-Clipper
Topic: error 667
Replies: 5
Views: 3012

Re: Como se Clona un Objeto

oNew := oClone( oObject )

Salu2
by karinha
Thu Apr 11, 2013 5:06 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Como se Clona un Objeto
Replies: 9
Views: 1157

problema con database 2

... function clientes(olbx,lnuevo,oMae,oMemos,oDomcli,oClitrans,oHasedro) LOCAL oBrw oData:=oClone(oMae) oHasedro:setfilter() oHasedro:setfilter({ || (oHasedro:cAlias)->ncli == oMae:ncli }) oHasedro:gotop() IF lNuevo iif(!empty(oLbx), orden(2,olbx,oMae),oMae:setorder(1)) ...
by surGom
Fri Mar 26, 2010 12:59 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: problema con database 2
Replies: 2
Views: 1161

Re: Se necesita ayuda en el wiki !

... Algo pasa con los tags <code clipper> y <code> . No está formateando cuando hay código en los ejemplos. Cambiaron estos tags ? Oclone() OemToAnsi() OpenClipboard() OpenComm() ORead() OSend() OutportByte() OutportWord() OutputDebugString() oWndFromhWnd() PageBegin() PalBmpDraw() ...
by Cgallegoa
Tue Feb 23, 2010 3:32 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Se necesita ayuda en el wiki !
Replies: 12
Views: 5510

Re: Is it still required to destroy Font object ?

James, Otto,

Please be aware that oClone() should not be used with Windows handles as those can't be "cloned" :-)
by Antonio Linares
Tue Jan 05, 2010 7:20 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Is it still required to destroy Font object ?
Replies: 10
Views: 1886

Re: Is it still required to destroy Font object ?

Otto,

No, you are just creating an alias for the same font object.

To create a copy of an object:

oNew := oClone( oObject )

James
by James Bott
Tue Jan 05, 2010 12:07 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Is it still required to destroy Font object ?
Replies: 10
Views: 1886

... 500, 510 pixel oBrw1:CreateFromCode() activate dialog oDlg1 on init InitBrowse( oBrw1, oBrw ... Static Function InitBrowse( oBrw1, oBrw ) oBrw1 := oClone( oBrw ) oBrw1:delcol(2) oBrw1:nTop := 0 oBrw1:nLeft := 0 oBrw1:nRight := 10 oBrw1:nBottom := 50 Return Nil Isto não funcionou. vc va a utilizar ...
by Rossine
Fri Feb 08, 2008 6:29 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Copiar um browse
Replies: 7
Views: 1478

Re: Copiar um browse

... Rossine. Hola Rossine, Seja mais especifico: Em @say... ou Editor de Recursos? Se a Browse inicial esta no mesmo modulo, podes usar o comando oClone(). Para Clonar o o Objeto da Browse inicial para a Proxima Browse . oDbLbx:= oClone( oDbfClientes ) Tens a mesma LISTBOX em qualquer ...
by karinha
Fri Feb 08, 2008 2:23 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Copiar um browse
Replies: 7
Views: 1478

TDBF

... ) // 2 línias sustituyen 2 anteriores. CG oClon:aTField := aclone( oDb:aTField ) oClon:aTIndex := aclone( oDb:aTIndex ) #else //oClon:aTField := oClone( oDb:aTField ) //oClon:aTIndex := oClone( oDb:aTIndex ) // 2 línias sustituyen 2 anteriores. CG oClon:aTField := aclone( oDb:aTField ) oClon:aTIndex ...
by FiveWiDi
Tue Apr 03, 2007 4:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ADSISSHARED,ADSISREADONLY,ISSHARED,ISREADONLY EN TDBFH
Replies: 22
Views: 6608

... me explico. Este método realiza: oClon:aTField := __objClone( oDb:aTField ) oClon:aTIndex := __objClone( oDb:aTIndex ) #else oClon:aTField := oClone( oDb:aTField ) oClon:aTIndex := oClone( oDb:aTIndex ) clonando en realidad unas ARRAYs de objetos. Por tanto debería realizarse un Aclone() y ...
by FiveWiDi
Tue Apr 03, 2007 7:19 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: ADSISSHARED,ADSISREADONLY,ISSHARED,ISREADONLY EN TDBFH
Replies: 22
Views: 6608

Return to advanced search