Search found 47 matches

by jicorral
Fri Mar 27, 2009 9:40 am
Forum: FiveWin for Harbour/xHarbour
Topic: Reporting bugs
Replies: 1
Views: 368

Reporting bugs

Is there any web / forum / email / maillist for report bug of FW/Harbour/xHarbour?
by jicorral
Fri Mar 13, 2009 11:29 am
Forum: FiveWin para Harbour/xHarbour
Topic: COMO SE CREA UN CD AUTOEJECUTABLE
Replies: 2
Views: 444

Re: COMO SE CREA UN CD AUTOEJECUTABLE

Crea un archivo en el raiz del CD con el nombre AutoRun.inf y el contenido:

Code: Select all

[autorun]
open=[b]setup[/b]
setup es el ejecutable

Esto te funciona si no has cambiado la configuracion por defecto de windows. Tambien lo puedes usar, con algun cambio en el registro, con disquetes y memorias USB.
by jicorral
Thu Mar 12, 2009 9:52 am
Forum: FiveWin for Harbour/xHarbour
Topic: Run Another Program
Replies: 12
Views: 2982

Re: Run Another Program

You can search the default pdf reader in registry: ...    cAplicacion := DiValorClave(HKEY_CLASSES_ROOT, DiValorClave(HKEY_CLASSES_ROOT, ".pdf") + "\Shell\Open\Command")    cAplicacion := strtran(cAplicacion, '"')    cAplicacion := cFileNoPar(cAplicacion) ... function DiValo...
by jicorral
Wed Mar 11, 2009 3:09 pm
Forum: FiveWin for Harbour/xHarbour
Topic: TTxtFile and missing method AppLine
Replies: 3
Views: 680

Re: TTxtFile and missing method AppLine

Uwe, Thx but that doesn't work. SetValue seek the section (OPTIONS) and add the pair label=value. Anyway, know do it:     oFich := TTxtFile():Create(cDir + cNom + FUEPROYEXT, FC_NORMAL)     if oFich:Open()         if oFich:Seek('[OPTIONS]', SEEK_FORWARD, SEEK_UPCASE)         oFich:AppendLn('Auto Ind...
by jicorral
Wed Mar 11, 2009 11:37 am
Forum: FiveWin for Harbour/xHarbour
Topic: TTxtFile and missing method AppLine
Replies: 3
Views: 680

Re: TTxtFile and missing method AppLine

A workarround: __clsAddMsg(TTxtFile():ClassH, 'AppLine', {|o,t| o:AppendLn(t)}, HB_OO_MSG_INLINE,, HB_OO_CLSTP_EXPORTED) Is there a simpler way to change a class message with other? Something like that: __clsAddMsg(TTxtFile():ClassH, 'AppLine', 'AppendLn', HB_OO_MSG_MESSAGE,, HB_OO_CLSTP_EXPORTED)
by jicorral
Wed Mar 11, 2009 9:58 am
Forum: FiveWin for Harbour/xHarbour
Topic: TTxtFile and missing method AppLine
Replies: 3
Views: 680

TTxtFile and missing method AppLine

Reviewing the code of TTxtFile.prg I can't find the method AppLine that is used in the inside the code. Neither the class nor the parent, TFile, has this method. An example:     oFich := TTxtFile():New('texto.txt', FC_NORMAL)     if oFich:Open()         oFich:SetValue('OPTIONS', 'Auto Index', 'Yes')...
by jicorral
Mon Mar 09, 2009 12:11 pm
Forum: FiveWin for Harbour/xHarbour
Topic: How to know where I am
Replies: 4
Views: 685

Re: How to know where I am

Ok. Thank you. It's working getting the correct ID of the window, dialog or control but now I have a new problem: the nHelpID of the controls is missing. I have defined nHelpID for the window, the dialogs and the controls. when ask for oCtrl:nHelpID in case of windows or dialogs I get the correct on...
by jicorral
Fri Mar 06, 2009 12:46 pm
Forum: FiveWin for Harbour/xHarbour
Topic: OVERRIDE METHOD
Replies: 9
Views: 1158

Re: OVERRIDE METHOD

Great! Do it! Thx a lot.
by jicorral
Fri Mar 06, 2009 10:16 am
Forum: FiveWin for Harbour/xHarbour
Topic: OVERRIDE METHOD
Replies: 9
Views: 1158

Re: OVERRIDE METHOD

Oppss. Thx a lot.

So there is no way to replace a class method with harbour? I have found way to do it with an object but I need to do it with the class on application scope.
by jicorral
Fri Mar 06, 2009 10:11 am
Forum: FiveWin for Harbour/xHarbour
Topic: How to know where I am
Replies: 4
Views: 685

How to know where I am

I have a key action defined for the application. How can I know the context, the window, dialog and control where is pressed? static oWnd function Main()   SetKey( VK_F2, { | cProc, nLine, cVar, x | Donde(cProc, nLine, cVar, x) } )   ... function Donde(cProc, nLine, cVar, x)   ... return nil  I don'...
by jicorral
Fri Mar 06, 2009 9:56 am
Forum: FiveWin para Harbour/xHarbour
Topic: SETHELPFILE() - ERROR
Replies: 1
Views: 382

Re: SETHELPFILE() - ERROR

Yo creo que puedes definirte una funcion Help() en tu codigo para cambiar el comportamiento. Si no me equivoco, que es posible, primero se comprueba la existencia de esa funcion cuando se pulsa F1. Otra forma que se me ocurre es modificando el metodo HandleEvent de la/s clase/s. Yo estoy luchando ta...
by jicorral
Fri Mar 06, 2009 9:51 am
Forum: FiveWin for Harbour/xHarbour
Topic: OVERRIDE METHOD
Replies: 9
Views: 1158

Re: OVERRIDE METHOD

Harbour 902
by jicorral
Thu Mar 05, 2009 4:39 pm
Forum: FiveWin for Harbour/xHarbour
Topic: OVERRIDE METHOD
Replies: 9
Views: 1158

Re: OVERRIDE METHOD

I have it included: #include "FiveWin.ch" #include "InKey.ch" #include "hbclass.ch" #include "..\res\resources.h" static oWnd //----------------------------------------------------------------------------// function Main()    lChDir(cFilePath(HB_ARGV(0)))     ...
by jicorral
Thu Mar 05, 2009 10:43 am
Forum: FiveWin for Harbour/xHarbour
Topic: OVERRIDE METHOD
Replies: 9
Views: 1158

OVERRIDE METHOD

I'm trying to replace HaldleEvento from TControl: function Main()    lChDir(cFilePath(HB_ARGV(0)))    OVERRIDE METHOD HandleEvent IN CLASS TControl WITH ControlHE // <--------------    SET HELPFILE TO "ayuda1.chm"       SetHelpPopup('Ayuda.txt')    DEFINE WINDOW oWnd FROM 1, 1 TO 40, 120 ;...
by jicorral
Wed Mar 04, 2009 10:07 am
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda con las ayudas
Replies: 1
Views: 473

Re: Ayuda con las ayudas

¿Alguien tiene alguna idea sobre esto?