topic
stringlengths
1
63
text
stringlengths
1
577k
swaping"" de funciones
Quique,Me dejastes pensando con esto que comentastes:> con la gran ventaja de poder hacer llamado a la original, algo así como si fuera un método de la clase superiorY he jugado un poco con el asunto, creando la Clase TFunction <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Ojo, este código solo sirve para Harbour, ya que xHarbour usa un tipo distinto para @name(), asi que habría que modificarlo para xHarbour. Mis saludos a Vic y nuestra invitación a visitarnos <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->test.prg[code:18ypm1zy] #include "FiveWin&#46;ch" function Main&#40;&#41; local oTime &#58;= TFunction&#40;&#41;&#58;New&#40; @Time&#40;&#41; &#41; local oMyTime &#58;= TFunction&#40;&#41;&#58;New&#40; @MyTime&#40;&#41; &#41; MsgInfo&#40; oTime&#58;Exec&#40;&#41; &#41; oTime&#58;Swap&#40; oMyTime &#41; MsgInfo&#40; Time&#40;&#41; &#41; MsgInfo&#40; oTime&#58;Original&#40;&#41; &#41; oTime&#58;Restore&#40;&#41; MsgInfo&#40; Time&#40;&#41; &#41; return nil function MyTime&#40;&#41; return "now" CLASS TFunction DATA pFunction DATA hPointer METHOD New&#40; pFunction &#41; METHOD Exec&#40;&#41; INLINE HB_ExecFromArray&#40; &#58;&#58;pFunction, HB_aParams&#40;&#41; &#41; METHOD Swap&#40; oFunction &#41; INLINE FunSwap&#40; &#58;&#58;pFunction, oFunction&#58;pFunction &#41; METHOD Restore&#40;&#41; INLINE FunRestore&#40; &#58;&#58;pFunction, &#58;&#58;hPointer &#41; METHOD Original&#40;&#41; INLINE HB_ExecFromArray&#40; GenSymbol&#40; @FunDummy&#40;&#41;, &#58;&#58;hPointer &#41;, HB_aParams&#40;&#41; &#41; ENDCLASS METHOD New&#40; pFunction &#41; CLASS TFunction &#58;&#58;pFunction = pFunction &#58;&#58;hPointer = FunPtr&#40; pFunction &#41; return Self #pragma BEGINDUMP #include <hbapi&#46;h> #include <hbapiitm&#46;h> #include <hbstack&#46;h> #include <windows&#46;h> HB_FUNC&#40; FUNPTR &#41; &#123; PHB_ITEM pFunction = hb_param&#40; 1, HB_IT_SYMBOL &#41;; hb_retnl&#40; &#40; LONG &#41; &#40; pFunction ? hb_itemGetSymbol&#40; pFunction &#41;->value&#46;pFunPtr &#58; 0 &#41; &#41;; &#125; HB_FUNC&#40; FUNSWAP &#41; &#123; PHB_ITEM pFirst = hb_param&#40; 1, HB_IT_SYMBOL &#41;; PHB_ITEM pLast = hb_param&#40; 2, HB_IT_SYMBOL &#41;; if&#40; pFirst && pLast &#41; &#123; hb_itemGetSymbol&#40; pFirst &#41;->value&#46;pFunPtr = hb_itemGetSymbol&#40; pLast &#41;->value&#46;pFunPtr; &#125; &#125; HB_FUNC&#40; FUNRESTORE &#41; &#123; PHB_ITEM pFunction = hb_param&#40; 1, HB_IT_SYMBOL &#41;; PHB_SYMB pSymbol = hb_itemGetSymbol&#40; pFunction &#41;; if&#40; pSymbol &#41; pSymbol->value&#46;pFunPtr = &#40; void * &#41; hb_parnl&#40; 2 &#41;; &#125; HB_FUNC&#40; GENSYMBOL &#41; &#123; PHB_SYMB pSymbol = hb_dynsymSymbol&#40; hb_dynsymFindName&#40; "FUNDUMMY" &#41; &#41;; pSymbol->value&#46;pFunPtr = &#40; void * &#41; hb_parnl&#40; 2 &#41;; hb_itemPutSymbol&#40; hb_stackReturnItem&#40;&#41;, pSymbol &#41;; &#125; HB_FUNC&#40; FUNDUMMY &#41; &#123; &#125; #pragma ENDDUMP [/code:18ypm1zy]
swaping"" de funciones
Olá Antonio,Ao compilar seu exemplo , me é gerado o erro abaixo:[code:339hzit8] xLINK&#58; error&#58; Unresolved external symbol '_hb_itemPutSymbol'&#46; xLINK&#58; fatal error&#58; 1 unresolved external&#40;s&#41;&#46; [/code:339hzit8]Saludos,Rossine.
swaping"" de funciones
Rossine, según veo utilizas xHarbour, Antonio dijo que ese código es para harbour, intenté pasarlo, pero no pude, ya pedí ayuda <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->
swaping"" de funciones
Rossine,Como te ha comentado Quique, esa versión es para Harbour. Para xHarbour hay que hacer unos cambios, pues xHarbour no usa el tipo "symbol" sino el tipo "pointer":Harbour:MsgInfo( ValType( @Time() ) ) // muestra "S"xHarbour:MsgInfo( ValType( @Time() ) ) // muestra "P"
swaping"" de funciones
Modificaciones para xHarbour gracias de nuevo al master Vic, no se si también funcione para harbour[code:14mpsqyv] #include "hbclass&#46;ch" PROCEDURE Main&#40;&#41; TimeTest&#40;&#41; StodTest&#40;&#41; RETURN PROCEDURE TimeTest LOCAL oMyTime &#58;= TFunction&#40;&#41;&#58;New&#40; @MyTime&#40;&#41; &#41; local oTime &#58;= TFunction&#40;&#41;&#58;New&#40; @Time&#40;&#41; &#41; ? "Time&#40;&#41; test&#46;&#46;&#46;" ? oTime&#58;Exec&#40;&#41; oTime&#58;Swap&#40; oMyTime &#41; ? Time&#40;&#41; ? oTime&#58;Original&#40;&#41; oTime&#58;Restore&#40;&#41; ? Time&#40;&#41; ? RETURN FUNCTION MyTime&#40;&#41; RETURN "now" PROCEDURE StodTest LOCAL oMyStod &#58;= TFunction&#40;&#41;&#58;New&#40; @MyStod&#40;&#41; &#41; LOCAL cDate &#58;= "20080131" PRIVATE oStod &#58;= TFunction&#40;&#41;&#58;New&#40; @Stod&#40;&#41; &#41; ? "Stod&#40;&#41; test&#46;&#46;&#46;" ? oStod&#58;Exec&#40; cDate &#41; oStod&#58;Swap&#40; oMyStod &#41; ? Stod&#40; cDate &#41; ? "Atencion&#58; ", Stod&#40; "20080131" &#41; ? oStod&#58;Original&#40; cDate &#41; oStod&#58;Restore&#40;&#41; ? Stod&#40; cDate &#41; ? RETURN nil FUNCTION MyStod&#40; s &#41; RETURN oStod&#58;Original&#40; s &#41; - 1 CLASS TFunction DATA pFunction DATA hPointer METHOD New&#40; pFunction &#41; METHOD Exec METHOD Swap&#40; oFunction &#41; INLINE FunSwap&#40; &#58;&#58;pFunction, oFunction&#58;pFunction&#41; METHOD Restore&#40;&#41; INLINE FunRestore&#40; &#58;&#58;pFunction, &#58;&#58;hPointer &#41; METHOD Original ENDCLASS METHOD New&#40; pFunction &#41; CLASS TFunction &#58;&#58;pFunction = pFunction &#58;&#58;hPointer = FunPtr&#40; pFunction &#41; RETURN Self #pragma BEGINDUMP #include <hbapi&#46;h> #include <hbapiitm&#46;h> #include <hbvm&#46;h> #include <hbstack&#46;h> #include <windows&#46;h> HB_FUNC&#40; FUNPTR &#41; &#123; PHB_SYMB pFunction = &#40; PHB_SYMB &#41; hb_parptr&#40; 1 &#41;; hb_retptr&#40; &#40; void * &#41; &#40; pFunction ? pFunction->value&#46;pFunPtr &#58; 0 &#41; &#41;; &#125; HB_FUNC&#40; FUNSWAP &#41; &#123; PHB_SYMB pFirst = &#40; PHB_SYMB &#41; hb_parptr&#40; 1 &#41;; PHB_SYMB pLast = &#40; PHB_SYMB &#41; hb_parptr&#40; 2 &#41;; if&#40; pFirst && pLast &#41; &#123; pFirst->value&#46;pFunPtr = pLast->value&#46;pFunPtr; &#125; &#125; HB_FUNC&#40; FUNRESTORE &#41; &#123; PHB_SYMB pSymbol = &#40; PHB_SYMB &#41; hb_parptr&#40; 1 &#41;; if&#40; pSymbol &#41; &#123; pSymbol->value&#46;pFunPtr = &#40; void * &#41; hb_parptr&#40; 2 &#41;; &#125; &#125; typedef void &#40; * PFUNC &#41; &#40; void &#41;; HB_FUNC&#40; TFUNCTION_EXEC &#41; &#123; PHB_ITEM pSelf = hb_stackSelfItem&#40;&#41;; PHB_SYMB pFunction; PFUNC p; static PHB_SYMB hPointer = 0; if&#40; ! hPointer &#41; &#123; hPointer = hb_dynsymSymbol&#40; hb_dynsymFind&#40; "PFUNCTION" &#41; &#41;; &#125; hb_vmPushSymbol&#40; hPointer &#41;; hb_vmPush&#40; pSelf &#41;; hb_vmSend&#40; 0 &#41;; pFunction = &#40; PHB_SYMB &#41; hb_parptr&#40; -1 &#41;; p = &#40; PFUNC &#41; pFunction->value&#46;pFunPtr; p&#40;&#41;; &#125; HB_FUNC&#40; TFUNCTION_ORIGINAL &#41; &#123; PHB_ITEM pSelf = hb_stackSelfItem&#40;&#41;; PFUNC p; static PHB_SYMB hPointer = 0; if&#40; ! hPointer &#41; &#123; hPointer = hb_dynsymSymbol&#40; hb_dynsymFind&#40; "HPOINTER" &#41; &#41;; &#125; hb_vmPushSymbol&#40; hPointer &#41;; hb_vmPush&#40; pSelf &#41;; hb_vmSend&#40; 0 &#41;; p = &#40; PFUNC &#41; hb_parptr&#40; -1 &#41;; p&#40;&#41;; &#125; #pragma ENDDUMP [/code:14mpsqyv]
swaping"" de funciones
Funcionou perfeito agora <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Gracias Quique e Antonio,Rossine.
swaping"" de funciones
Anotnio ¿que necesito hacer para que funcione esto? marca error en el ultimo msgInfo()[code:ijrr9o62]#INCLUDE "hbclass&#46;CH" function main miTWindow&#40;&#41; funSwap&#40; @time&#40;&#41;, @miTime&#40;&#41; &#41; msgInfo&#40; time&#40;&#41; &#41; funSwap&#40; @tWindow&#40;&#41;, @miTWindow&#40;&#41; &#41; msgInfo&#40; tWindow&#40;&#41;&#58;prueba &#41; msgInfo&#40; tMdiClient&#40;&#41;&#58;prueba &#41; return nil function miTime&#40;&#41; return "Hola" class miTWindow from tWindow data prueba endClass #pragma BEGINDUMP HB_FUNC&#40; FUNSWAP &#41; &#123; PHB_SYMB pFirst = &#40; PHB_SYMB &#41; hb_parptr&#40; 1 &#41;; PHB_SYMB pLast = &#40; PHB_SYMB &#41; hb_parptr&#40; 2 &#41;; if&#40; pFirst && pLast &#41; &#123; pFirst->value&#46;pFunPtr = pLast->value&#46;pFunPtr; &#125; &#125; #pragma ENDDUMP[/code:ijrr9o62]
swaping"" de funciones
Quique,Por lo visto la clase derivada sigue usando el puntero antiguo, de alguna forma.
swaping"" de funciones
Sip, por eso la consulta ¿hay manera de solucionar ese problema?
swaping"" de funciones
Quique,Debe estar usandose el puntero antiguo, el cual debe estar almacenado en otro lugar tambien.Habria que revisar el modulo de classes en C de Harbour/xHarbour y localizar en donde esté ese puntero guardado.
swaping"" functions
This is a virtual machine "dirty" hack <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> but can result very useful under some circunstances. I place a copy here just in case someone want to test it:test.prg[code:36n2wrt0] #include "FiveWin&#46;ch" static pOld function Main&#40;&#41; pOld &#58;= FunSwap&#40; "TIME", "MYTIME" &#41; MsgInfo&#40; Time&#40;&#41; &#41; // We have replaced the original Time&#40;&#41; function! &#58;-&#41; return nil function MyTime&#40;&#41; local uRet &#58;= ExecPtr&#40; pOld &#41; // in case that we want to call the original function return "now" #pragma BEGINDUMP #include <hbapi&#46;h> typedef void &#40; * PFUNC &#41; &#40; void &#41;; HB_FUNC&#40; FUNSWAP &#41; &#123; PHB_SYMB symFirst = hb_dynsymSymbol&#40; hb_dynsymFindName&#40; hb_parc&#40; 1 &#41; &#41; &#41;; PHB_SYMB symLast = hb_dynsymSymbol&#40; hb_dynsymFindName&#40; hb_parc&#40; 2 &#41; &#41; &#41;; PHB_FUNC pFirst = symFirst->value&#46;pFunPtr; symFirst->value&#46;pFunPtr = symLast->value&#46;pFunPtr; hb_retnl&#40; &#40; LONG &#41; pFirst &#41;; &#125; HB_FUNC&#40; EXECPTR &#41; &#123; PFUNC p = &#40; PFUNC &#41; hb_parnl&#40; hb_pcount&#40;&#41; &#41;; p&#40;&#41;; &#125; #pragma ENDDUMP [/code:36n2wrt0]
swaping"" functions
Another example:test.prg[code:1y22awak] #include "FiveWin&#46;ch" static pOld function Main&#40;&#41; pOld &#58;= FunSwap&#40; "DATE", "TOMORROW" &#41; MsgInfo&#40; Date&#40;&#41; &#41; // We have replaced the original Date&#40;&#41; function! &#58;-&#41; return nil function Tomorrow&#40;&#41; local uRet &#58;= ExecPtr&#40; pOld &#41; // in case that we want to call the original function return uRet + 1 #pragma BEGINDUMP #include <hbapi&#46;h> typedef void &#40; * PFUNC &#41; &#40; void &#41;; HB_FUNC&#40; FUNSWAP &#41; &#123; PHB_SYMB symFirst = hb_dynsymSymbol&#40; hb_dynsymFindName&#40; hb_parc&#40; 1 &#41; &#41; &#41;; PHB_SYMB symLast = hb_dynsymSymbol&#40; hb_dynsymFindName&#40; hb_parc&#40; 2 &#41; &#41; &#41;; PHB_FUNC pFirst = symFirst->value&#46;pFunPtr; symFirst->value&#46;pFunPtr = symLast->value&#46;pFunPtr; hb_retnl&#40; &#40; LONG &#41; pFirst &#41;; &#125; HB_FUNC&#40; EXECPTR &#41; &#123; PFUNC p = &#40; PFUNC &#41; hb_parnl&#40; hb_pcount&#40;&#41; &#41;; p&#40;&#41;; &#125; #pragma ENDDUMP [/code:1y22awak]
swaping"" functions
A useful way to create logs or do assertions (James!) <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->test.prg[code:33954flt] #include "FiveWin&#46;ch" static pOld function Main&#40;&#41; pOld &#58;= FunSwap&#40; "TEST", "LOGIT" &#41; MsgInfo&#40; Test&#40; "Hello", " world!" &#41; &#41; return nil function Test&#40; u1, u2 &#41; return u1 + u2 function LogIt&#40; u1, u2 &#41; local uRet &#58;= ExecPtr&#40; u1, u2, pOld &#41; // in case that we want to call the original function MsgInfo&#40; "Test&#40;&#41; called with these parameters&#58; " + u1 + ", " + u2 &#41; return uRet #pragma BEGINDUMP #include <hbapi&#46;h> typedef void &#40; * PFUNC &#41; &#40; void &#41;; HB_FUNC&#40; FUNSWAP &#41; &#123; PHB_SYMB symFirst = hb_dynsymSymbol&#40; hb_dynsymFindName&#40; hb_parc&#40; 1 &#41; &#41; &#41;; PHB_SYMB symLast = hb_dynsymSymbol&#40; hb_dynsymFindName&#40; hb_parc&#40; 2 &#41; &#41; &#41;; PHB_FUNC pFirst = symFirst->value&#46;pFunPtr; symFirst->value&#46;pFunPtr = symLast->value&#46;pFunPtr; hb_retnl&#40; &#40; LONG &#41; pFirst &#41;; &#125; HB_FUNC&#40; EXECPTR &#41; &#123; PFUNC p = &#40; PFUNC &#41; hb_parnl&#40; hb_pcount&#40;&#41; &#41;; p&#40;&#41;; &#125; #pragma ENDDUMP [/code:33954flt]
swaping"" functions
Antonio,This looks interesting. Thanks.James
swaping"" functions
For those interested in this issue, we have gone a little further in the spanish equivalent thread, creating a Class TFunction <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --><!-- m --><a class="postlink" href="http://forums.fivetechsoft.com/viewtopic.php?t=12588">http://forums.fivetechsoft.com/viewtopic.php?t=12588</a><!-- m -->
swaping"" functions
[quote="Antonio Linares":i5eyr9ft]For those interested in this issue, we have gone a little further in the spanish equivalent thread, creating a Class TFunction <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> <!-- m --><a class="postlink" href="http://forums.fivetechsoft.com/viewtopic.php?t=12588">http://forums.fivetechsoft.com/viewtopic.php?t=12588</a><!-- m -->[/quote:i5eyr9ft]Interesting concept! <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->Patrick
xpp\get.prg HB_LANGMESS() "" debug message sometim
Hello,I've just upgraded from Fivewin++ V7.01 to V8.01 and the following problem has appeared:When I use "get" fields in a dialog box and move from one field to another, I sometimes get a standard Windows "Information" Window with the text "xpp\get.prg HB_LANGMESS() " and an OK default push button. I asssume this is part of some debug code that has been forgotten and has not been removed when placed into the FiveWin++ Runtime Library five32rt.lib/.dll Last year, Antonio sent me an update for the five32rt.lib/dll file to fix the problem. Could you send me the corrrected files/libraries please. Best Regards,Angelo C
#Borland make sample AYUDA
Como le debo decir cuando tengo una lista de prg y quiero cambiar a unos para parametros unos /L /N /W y otros /L /N /W /B ver \bin\harbour $< /L /N /W /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include;$(fprg)\include > comp.log [code=fw:1evlqi2q]<div class="fw" id="{CB}" style="font-family: monospace;"><br />#Borland make sample, <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> FiveTech Software <span style="color: #000000;">2005</span><span style="color: #000000;">-2009</span><br /><br /><br /><br />HBDIR=k:\xharbour<br />BCDIR=k:\bcc582<br />FWDIR=k:\fwh<br />fprg=K:\proy_harb<br /><br />#change these paths as needed<br />.path.OBJ = .\obj<br />.path.PRG = .\prg<br />.path.PRG1 = .\prg<br />.path.CH  = $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\include;$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include<br />.path.C   = .\c<br />.path.rc  = .\rc<br />#important: <span style="color: #000000;">Use</span> Uppercase <span style="color: #00C800;">for</span> filenames extensions, in the <span style="color: #00C800;">next</span> two rules!<br /><br />PRG =        \<br />PXPMENU.PRG \<br />ADOXB.PRG  \<br />DBCOMBOS.PRG \<br />DBFCOMBO.PRG \<br />PXPEDITOR.PRG \<br />PXP0001.PRG \<br />PXP0002.PRG \<br />PXP0003.PRG \<br />PXP0004.PRG \<br />PXP0005.PRG \<br />PXP0006.PRG \<br />PXP0007.PRG \<br />PXP0008.PRG \<br />PXP0009.PRG \<br />PXP0010.PRG \<br />PXP0011.PRG \<br />PXP0012.PRG \<br />PXP0013.PRG \<br />PXP0014.PRG \<br />PXP0015.PRG \<br />PXP0016.PRG \<br />PXP0017.PRG \<br />PXP0018.PRG \<br />PXP0019.PRG \<br />PXP0020.PRG \<br />PXP0021.PRG \<br />PXP0022.PRG \<br />PXP0023.PRG \<br />PXP0024.PRG \<br />PXP0025.PRG \<br />PXP0026.PRG \<br />PXP0027.PRG \<br />PXP0028.PRG \<br />PXP0029.PRG \<br />PXP0030.PRG \<br />PXP0031.PRG \<br />PXP0032.PRG \<br />PXP0033.PRG \<br />PXP0034.PRG \<br />PXP0035.PRG \<br />PXP0036.PRG \<br />PXP0037.PRG \<br />PXP0038.PRG \<br />PXP0039.PRG \<br />CON0001.PRG \<br />CON0002.PRG \<br />CON0003.PRG \<br />CON0004.PRG \<br />CON0005.PRG \<br />CORV0001.PRG \<br />PXP0040.PRG \<br />PXP0042.PRG \<br />PXP0043.PRG \<br />PXPFUNCIONES.PRG \ <br />TESTCLPR.PRG \ <br />PXPREPOR_1.PRG \ <br />PXPRESQL_1.PRG \<br />PXPREXLS_1.PRG \<br />PXPREDOS_1.PRG \<br />PXPREBRO_1.PRG \<br />CLASERUB_DOS.PRG \<br />CLASERUB_XLS.PRG \<br />CLASERUB_BROW.PRG \<br />PXPMENBAR.PRG \<br />CALCULADORA.PRG \<br />FORM_GENERAL_1.PRG \<br />PXPLREP1.PRG \<br />PXPRUTREP_1.PRG \<br />TESTQRY.PRG \<br /><span style="color: #0000ff;">BTNBMP</span>.PRG<br /><br /><br />C =          \<br />           <br /><br />PROJECT    : <span style="color: #000000;">plastwin</span>.exe<br /><br />plastwin.exe  : $<span style="color: #000000;">&#40;</span>PRG:.PRG=.OBJ<span style="color: #000000;">&#41;</span>  $<span style="color: #000000;">&#40;</span>C:.C=.OBJ<span style="color: #000000;">&#41;</span> rc\plastwin.res<br />   cls<br />   echo off<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\c0w32.obj + > b32.bc<br />   echo obj\PXPMENU.OBJ  + >> b32.bc  <br />   echo obj\ADOXB.OBJ  + >> b32.bc<br />   echo obj\DBCOMBOS.OBJ + >> b32.bc<br />   echo obj\DBFCOMBO.OBJ + >> b32.bc<br />   echo obj\PXPEDITOR.OBJ + >> b32.bc  <br />   echo obj\PXP0001.OBJ + >> b32.bc  <br />   echo obj\PXP0002.OBJ + >> b32.bc  <br />   echo obj\PXP0003.OBJ + >> b32.bc  <br />   echo obj\PXP0004.OBJ + >> b32.bc  <br />   echo obj\PXP0005.OBJ + >> b32.bc  <br />   echo obj\PXP0006.OBJ + >> b32.bc  <br />   echo obj\PXP0007.OBJ + >> b32.bc  <br />   echo obj\PXP0008.OBJ + >> b32.bc  <br />   echo obj\PXP0009.OBJ + >> b32.bc  <br />   echo obj\PXP0010.OBJ + >> b32.bc  <br />   echo obj\PXP0011.OBJ + >> b32.bc  <br />   echo obj\PXP0012.OBJ + >> b32.bc  <br />   echo obj\PXP0013.OBJ + >> b32.bc  <br />   echo obj\PXP0014.OBJ + >> b32.bc  <br />   echo obj\PXP0015.OBJ + >> b32.bc  <br />   echo obj\PXP0016.OBJ + >> b32.bc  <br />   echo obj\PXP0017.OBJ + >> b32.bc  <br />   echo obj\PXP0018.OBJ + >> b32.bc  <br />   echo obj\PXP0019.OBJ + >> b32.bc  <br />   echo obj\PXP0020.OBJ + >> b32.bc  <br />   echo obj\PXP0021.OBJ + >> b32.bc  <br />   echo obj\PXP0022.OBJ + >> b32.bc  <br />   echo obj\PXP0023.OBJ + >> b32.bc  <br />   echo obj\PXP0024.OBJ + >> b32.bc  <br />   echo obj\PXP0025.OBJ + >> b32.bc  <br />   echo obj\PXP0026.OBJ + >> b32.bc  <br />   echo obj\PXP0027.OBJ + >> b32.bc  <br />   echo obj\PXP0028.OBJ + >> b32.bc  <br />   echo obj\PXP0029.OBJ + >> b32.bc  <br />   echo obj\PXP0030.OBJ + >> b32.bc  <br />   echo obj\PXP0031.OBJ + >> b32.bc  <br />   echo obj\PXP0032.OBJ + >> b32.bc  <br />   echo obj\PXP0033.OBJ + >> b32.bc  <br />   echo obj\PXP0034.OBJ + >> b32.bc  <br />   echo obj\PXP0035.OBJ + >> b32.bc  <br />   echo obj\PXP0036.OBJ + >> b32.bc  <br />   echo obj\PXP0037.OBJ + >> b32.bc  <br />   echo obj\PXP0038.OBJ + >> b32.bc  <br />   echo obj\PXP0039.OBJ + >> b32.bc  <br />   echo obj\CON0001.OBJ + >> b32.bc  <br />   echo obj\CON0002.OBJ + >> b32.bc  <br />   echo obj\CON0003.OBJ + >> b32.bc  <br />   echo obj\CON0004.OBJ + >> b32.bc  <br />   echo obj\CON0005.OBJ + >> b32.bc  <br />   echo obj\CORV0001.OBJ + >> b32.bc  <br />   echo obj\PXP0040.OBJ + >> b32.bc  <br />   echo obj\PXP0041.OBJ + >> b32.bc  <br />   echo obj\PXP0042.OBJ + >> b32.bc  <br />   echo obj\PXP0043.OBJ + >> b32.bc<br />   echo obj\PXPFUNCIONES.OBJ + >> b32.bc<br />   echo obj\TESTCLPR.OBJ + >> b32.bc<br />   echo obj\PXPREPOR_1.OBJ + >> b32.bc<br />   echo obj\PXPRESQL_1.OBJ + >> b32.bc<br />   echo obj\PXPREXLS_1.OBJ + >> b32.bc  <br />   echo obj\PXPREDOS_1.OBJ + >> b32.bc  <br />   echo obj\PXPREBRO_1.OBJ + >> b32.bc  <br />   echo obj\CLASERUB_DOS.OBJ + >> b32.bc  <br />   echo obj\CLASERUB_XLS.OBJ + >> b32.bc  <br />   echo obj\CLASERUB_BROW.OBJ + >> b32.bc  <br />   echo obj\PXPMENBAR.OBJ + >> b32.bc  <br />   echo obj\CALCULADORA.OBJ + >> b32.bc  <br />   echo obj\FORM_GENERAL_1.OBJ + >> b32.bc  <br />   echo obj\PXPLREP1.OBJ + >> b32.bc  <br />   echo obj\PXPRUTREP_1.OBJ + >> b32.bc  <br />   echo obj\TESTQRY.OBJ  + >> b32.bc<br />   echo obj\<span style="color: #0000ff;">BTNBMP</span>.OBJ,  + >> b32.bc<br />   echo plastwin.exe, + >> b32.bc<br />   echo obj\plastwin.map, + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\lib\FiveHX.Lib $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\lib\FiveHC.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\rtl.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\vm.lib + >> b32.bc<br />   rem   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\gtwin.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\gtgui.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\lang.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\macro.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\rdd.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\dbfntx.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\dbfcdx.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\dbffpt.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\hbsix.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\debug.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\common.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\pp.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\codepage.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\pcrepos.lib  + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\adordd.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\zlib.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\hbzip.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\ct.lib + >> b32.bc<br /><br /><br />   rem Uncomment these two lines <span style="color: #0000ff;">to</span> use Advantage RDD<br />   rem echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\rddads.lib + >> b32.bc<br />   rem echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\Ace32.lib + >> b32.bc<br /><br />   echo $<span style="color: #000000;">&#40;</span>fprg<span style="color: #000000;">&#41;</span>\lib\LIBSISTM.LIB + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>fprg<span style="color: #000000;">&#41;</span>\lib\FILEXLS.LIB + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>fprg<span style="color: #000000;">&#41;</span>\lib\SBROWSEX.LIB + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>fprg<span style="color: #000000;">&#41;</span>\lib\TIMPRIME.LIB + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>fprg<span style="color: #000000;">&#41;</span>\lib\SBUTTONX.LIB + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>fprg<span style="color: #000000;">&#41;</span>\lib\DOLPHINX.LIB + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>fprg<span style="color: #000000;">&#41;</span>\lib\LIBMYSQL.LIB + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>fprg<span style="color: #000000;">&#41;</span>\lib\FwDbg.LIB + >> b32.bc<br /><br /><br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\cw32.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\import32.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\odbc32.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\nddeapi.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\iphlpapi.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\msimg32.lib + >> b32.bc<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\rasapi32.lib, >> b32.bc<br /><br />   <span style="color: #00C800;">IF</span> EXIST rc\plastwin.res echo rc\plastwin.res >> b32.bc<br />   $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\bin\ilink32 -Gn -aa -Tpe -s @b32.bc > Error.log<br />   del b32.bc<br />   del .\obj\*.* /Q<br />   del *.tds /Q<br />   upx plastwin.exe <span style="color: #000000;">-9</span> <br /><br />.PRG.OBJ:<br />  $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\bin\harbour $< /L /N /W /Oobj\ /I$<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\include;$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include;$<span style="color: #000000;">&#40;</span>fprg<span style="color: #000000;">&#41;</span>\include  > comp.log<br />  $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\bin\bcc32 -c -tWM -I$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include -oobj\$& obj\$&.c<br /><br /><br />.C.OBJ:<br />  echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp<br />  echo -I$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include;$<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\include >> tmp<br />  $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\bin\bcc32 -oobj\$& @tmp c\$&.c<br />  del tmp<br /><br />rc\plastwin.res :  rc\plastwin.rc<br />  $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\bin\brc32.exe -r rc\plastwin.rc<br /> <br /><br /><br /> </div>[/code:1evlqi2q]
#DEFINE for testing in parallel FIVEWIN - modharbour
I use #define MODHARBOUR to create an offline version for development and testing in parallel sample #ifdef MODHARBOUR use ( hb_GetEnv( "PRGPATH" ) + "\data\tagging.DBF" ) new #else use ( ".\data\tagging.DBF" ) new #endif #ifdef MODHARBOUR TEMPLATE ENDTEXT #else xbrowse() #endif
#Define mutiline
Hello, Can we insert multiple lines at the same time with #define? Thank you in advance Otto
#Define mutiline
If you mean in one #define, can we create multiple definitions, then it is not possible. Each define has to be separate. I am not sure if I understood you correctly.
#Define mutiline
Dear Mr. Rao, Yes, that's exactly what I want. Because of the better readability of the source code, it would be fine. Even when checking the source code, you only need to look at this one #define. For example: @ ( oDlg:nHeight - 30 )/2.05, 5 BUTTON "MoveUp" SIZE 35,12 PIXEL OF oDlg ACTION SwapRow( oBrw, .f. ) @ ( oDlg:nHeight - 30 )/2.05, 50 BUTTON "MoveDn" SIZE 35,12 PIXEL OF oDlg ACTION SwapRow( oBrw, .t. ) #DEFINE COLOFFSETBTN nOffset += 5 + oBtn:nwidth #define MYBTN @ ( oDlg:nHeight - 30 )/2.05, nOffset BUTTON oBtn PROMPT COLOFFSETBTN MYBTN "MoveDn" PIXEL OF oDlg ACTION SwapRow( oBrw, .t. ) COLOFFSETBTN MYBTN "HideSel" PIXEL OF oDlg msginfo("test") COLOFFSETBTN MYBTN "Show Select" PIXEL OF msginfo("test") COLOFFSETBTN MYBTN "Artikeldatei aktualisieren" ACTION f_verteilen(aData) OF oDlg PIXEL With Harbourino preprocessor I do it like this. $-> MYBTN : Caption=MoveUp; Action= msginfo("test") $-> MYBTN : Caption=MoveDn; Action= SwapRow( oBrw, .t. ) $-> MYBTN : Caption=HideSel; Action= msginfo("test") $-> MYBTN : Caption=Show Select; Action= msginfo("test") $-> MYBTN : Caption=Artikeldatei aktualisieren; Action=f_verteilen(aData) [img:2ou2mfwp]https&#58;//mybergland&#46;com/fwforum/buttons&#46;png[/img:2ou2mfwp] I replace for example @ ( oDlg:nHeight - 30 )/2.05, 5 BUTTON "MoveUp" SIZE 35,12 PIXEL OF oDlg ACTION SwapRow( oBrw, .f. ) @ ( oDlg:nHeight - 30 )/2.05, 50 BUTTON "MoveDn" SIZE 35,12 PIXEL OF oDlg ACTION SwapRow( oBrw, .t. ) ( Calculation of vertical positioning is all automaically. ) with $-> MYBTN : Caption=MoveUp; Action= SwapRow( oBrw, .f. ) $-> MYBTN : Caption=MoveDn; Action= SwapRow( oBrw, .t. ) I thought maybe it is also possible with #define. Best regards Otto
#Define mutiline
[code=fw:2zrpbb02]<div class="fw" id="{CB}" style="font-family: monospace;"><br />#xtranslate NEXTBTN <prompt> <span style="color: #0000ff;">ACTION</span> <uaction> => ;<br />&nbsp; &nbsp;nOffset += <span style="color: #000000;">5</span> + oBtn:<span style="color: #000000;">nwidth</span> ;;<br />&nbsp; &nbsp;@ <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">nHeight</span> - <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span>/<span style="color: #000000;">2.05</span>, nOffset <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <prompt> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> <uaction><br /><br /><span style="color: #B900B9;">// ....</span><br /><br />&nbsp; &nbsp;NEXTBTN <span style="color: #ff0000;">"myprompt"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ok"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp;</div>[/code:2zrpbb02] is preprocessed by Harbour as: [code=fw:2zrpbb02]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; nOffset += <span style="color: #000000;">5</span> + oBtn:<span style="color: #000000;">nwidth</span> ; oBtn := TButton<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">nHeight</span> - <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span>/<span style="color: #000000;">2.05</span>, nOffset, <span style="color: #ff0000;">"myprompt"</span>, oDlg, <span style="color: #000000;">&#123;</span>|| <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ok"</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>,,,,, .F., .T., .F.,, .F.,,, .F., <span style="color: #ff0000;">"oBtn"</span>, .F. <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:2zrpbb02]
#Define mutiline
With define [code=fw:26rehina]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#define</span> NEXTBTN nOffset += <span style="color: #000000;">5</span> + oBtn:<span style="color: #000000;">nwidth</span>; @ <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">nHeight</span> - <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span>/<span style="color: #000000;">2.05</span>, nOffset <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span><br />&nbsp;</div>[/code:26rehina] With the above definition, this works [code=fw:26rehina]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; NEXTBTN <span style="color: #ff0000;">"MoveDn"</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> SwapRow<span style="color: #000000;">&#40;</span> oBrw, .t. <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:26rehina]
#Define mutiline
Dear Mr. Rao, thank you so much. I think this offers much power to build his own toolbox. Best regards, Otto
#Define mutiline
Dear Mr. Rao, I can't find out a way for the first button to define. I tried this but with no success. iif( VALTYPE( oBtn) = "C", ( nOffset += 5 + oBtn:nwidth ), nOffset ) So I ended up using 2 xTranslate. [code=fw:3a164zw6]<div class="fw" id="{CB}" style="font-family: monospace;">#xtranslate NEXTBTN <prompt> <span style="color: #0000ff;">ACTION</span> <uaction> => ;<br />  nOffset += <span style="color: #000000;">5</span> + oBtn:<span style="color: #000000;">nwidth</span> ;;<br />   @ <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">nHeight</span> - <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span>/<span style="color: #000000;">2.05</span>, nOffset <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <prompt> <span style="color: #0000ff;">SIZE</span> <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">25</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> <uaction><br />   <br />   <br />   #xtranslate NEXTBTN1 <prompt> <span style="color: #0000ff;">ACTION</span> <uaction> => ;<br />   @ <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">nHeight</span> - <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span>/<span style="color: #000000;">2.05</span>, nOffset <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <prompt> <span style="color: #0000ff;">SIZE</span> <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">25</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> <uaction></div>[/code:3a164zw6] [code=fw:3a164zw6]<div class="fw" id="{CB}" style="font-family: monospace;"> <br />     <span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"nextbtn.ch"</span><br />  <br />    NEXTBTN1 <span style="color: #ff0000;">"MoveDn"</span>     <span style="color: #0000ff;">ACTION</span> SwapRow<span style="color: #000000;">&#40;</span> oBrw, .t. <span style="color: #000000;">&#41;</span><br /><br />   NEXTBTN <span style="color: #ff0000;">"MoveUp"</span>      <span style="color: #0000ff;">ACTION</span> SwapRow<span style="color: #000000;">&#40;</span> oBrw, .f. <span style="color: #000000;">&#41;</span><br />   <br />   NEXTBTN <span style="color: #ff0000;">"MoveDn"</span>      <span style="color: #0000ff;">ACTION</span> SwapRow<span style="color: #000000;">&#40;</span> oBrw, .t. <span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:3a164zw6] Sure, you have a solution for this. Best regards, Otto
#Define mutiline
[code=fw:1xa0a6mc]<div class="fw" id="{CB}" style="font-family: monospace;"><br />#xtranslate MYBTN <prompt> <span style="color: #0000ff;">ACTION</span> <uaction> => ;<br />   nOffSet := <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBtn == <span style="color: #00C800;">nil</span>, <span style="color: #000000;">5</span>, nOffSet + <span style="color: #000000;">5</span> + oBtn:<span style="color: #000000;">nWidth</span> <span style="color: #000000;">&#41;</span>;;<br />   @ oDlg:<span style="color: #000000;">nHeight</span> - <span style="color: #000000;">30</span>, nOffset <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <prompt> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">25</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> <uaction><br /><br />func test<br /><br />   <span style="color: #00C800;">local</span> oDlg, nOffset, oBtn<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">600</span>,<span style="color: #000000;">100</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL<br /><br />   MYBTN <span style="color: #ff0000;">"ONE"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"One"</span> <span style="color: #000000;">&#41;</span><br />   MYBTN <span style="color: #ff0000;">"TWO"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Two"</span> <span style="color: #000000;">&#41;</span><br />   MYBTN <span style="color: #ff0000;">"TEN"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ten"</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:1xa0a6mc] [url=https&#58;//imageshack&#46;com/i/pnhi0FKzp:1xa0a6mc][img:1xa0a6mc]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/923/hi0FKz&#46;png[/img:1xa0a6mc][/url:1xa0a6mc]
#Define mutiline
Dear Mr. Rao, thank you. Now it is working fine. --------------------------------------- May I ask you something else please. If I use OOP code, how can I pass the parameters. [code=fw:3tckt9gi]<div class="fw" id="{CB}" style="font-family: monospace;">#xtranslate NEXTBTN <prompt> <span style="color: #0000ff;">ACTION</span> <uaction> => ;<br />&nbsp; &nbsp; nOffSet := <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBtn == <span style="color: #00C800;">nil</span>, <span style="color: #000000;">5</span>, nOffSet + <span style="color: #000000;">5</span> + oBtn:<span style="color: #000000;">nWidth</span> <span style="color: #000000;">&#41;</span>;;<br />&nbsp; &nbsp;oBtn := TButton<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">nHeight</span> - <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span>/<span style="color: #000000;">2.05</span>, nOffset, , oDlg, , &nbsp; &nbsp; &nbsp;, &nbsp; <span style="color: #000000;">30</span> &nbsp; &nbsp; &nbsp;,,, .F., .T., .F.,, .F.,,, .F., , .F. <span style="color: #000000;">&#41;</span></div>[/code:3tckt9gi] With my code all buttons have caption "Button". Best regards, Otto
#Define mutiline
[code=fw:2hhao8di]<div class="fw" id="{CB}" style="font-family: monospace;">#xtranslate NEXTBTN <prompt> <span style="color: #0000ff;">ACTION</span> <uAction> => ;<br />&nbsp; &nbsp;nOffSet := <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBtn == <span style="color: #00C800;">nil</span>, <span style="color: #000000;">5</span>, nOffSet + <span style="color: #000000;">5</span> + oBtn:<span style="color: #000000;">nWidth</span> <span style="color: #000000;">&#41;</span>;;<br />&nbsp; &nbsp;oBtn := TButton<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">nHeight</span> - <span style="color: #000000;">50</span>, nOffset, <prompt>, oDlg, ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#91;</span>\<span style="color: #000000;">&#123;</span>||<uAction>\<span style="color: #000000;">&#125;</span><span style="color: #000000;">&#93;</span>, <span style="color: #000000;">80</span>, <span style="color: #000000;">25</span>,,, .F., .T., .F.,, .F.,,, .F., <span style="color: #ff0000;">"oBtn"</span>, .F. <span style="color: #000000;">&#41;</span><br /><br />&nbsp;</div>[/code:2hhao8di] This works. But I do not advise preprocessing BUTTON command. Anyway, that is your choice.
#Define mutiline
Dear Mr. Rao, It works perfectly. I think you can tremendously simplify the source code of your programs. Comments can be inserted in the #xtranslate files, and the reading flow in the actual program is not disturbed. I want to show how easy it is to rearrange the switch. You swap the lines and don't have to worry about anything. I think even in preparation for the change of the own programs to mod Harbour this can bring something. Maybe we find a way to exchange the #xTranslate files. Thanks again.
#Define mutiline
Dear Mr. Rao, Can you help me again, please? I would now like to assign a background color. But the Button color of oBtn does not change. Best regards, Otto [code=fw:3ua4r7zg]<div class="fw" id="{CB}" style="font-family: monospace;"><br />#xtranslate NEXTBTN <prompt> <span style="color: #0000ff;">ACTION</span> <uAction> => ;<br />&nbsp; &nbsp;nOffSet := <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBtn == <span style="color: #00C800;">nil</span>, <span style="color: #000000;">5</span>, nOffSet + <span style="color: #000000;">5</span> + oBtn:<span style="color: #000000;">nWidth</span> <span style="color: #000000;">&#41;</span>;;<br />&nbsp; &nbsp;oBtn := TButton<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">nHeight</span>/<span style="color: #000000;">2.05</span> - <span style="color: #000000;">50</span>, nOffset, <prompt>, oDlg, ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#91;</span>\<span style="color: #000000;">&#123;</span>||<uAction>\<span style="color: #000000;">&#125;</span><span style="color: #000000;">&#93;</span>, , <span style="color: #000000;">25</span>,,, .F., .T., .F.,, .F.,,, .F., <span style="color: #ff0000;">"oBtn"</span>, .F. <span style="color: #000000;">&#41;</span>;;<br />&nbsp; &nbsp;oBtn:<span style="color: #000000;">nClrPane</span> := CLR_GREEN<br />&nbsp;</div>[/code:3ua4r7zg]
#Define mutiline
TButton and TButtonBmp are Windows controls. We can not set colors. It is possible to set colors for TBtnBmp only.
#Define mutiline
Dear Mr. Rao, I have seen that TButton inherit from TControl. But I have not checked whether the paint method takes into account all the data. I will test with ButtonBmp. I think we should extend AUTOCODE in this direction. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Thank you for your help and best regard Otto
#Define mutiline
Yes. TButton and all other FWH controls are derived from TControl. TButton class creates a Windows "BUTTON" control and the button is painted by Windows only. TButton does not have its own paint method. TButtonBmp is derived from TButton class. So this control also creates a Windows "BUTTON" control. This class has its own Paint() method. The Paint() method uses Windows to paint the button and then paints the bitmap over the button. Therefore, in both the above cases, button is actually painted by Windows. In contrast, TBtnBmp and TFlatBtn do not depend on any Windows control and paint the entire button themselves.
#Define mutiline
Dear Mr. Rao, Thank you so much for your explanation, your help, and your time. Now I understand the connections. Best regards, Otto
#command Syntax
hi, when have a Method using Xbase++ Syntax like this [code=fw:2hror1s1]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> XbpPBar:<span style="color: #000000;">SetMaximum</span><span style="color: #000000;">&#40;</span> nMaximum <span style="color: #000000;">&#41;</span></div>[/code:2hror1s1] i can use [code=fw:2hror1s1]<div class="fw" id="{CB}" style="font-family: monospace;">   #xcommand <span style="color: #00C800;">METHOD</span> <!ClassName!>:<MethodName> => <span style="color: #00C800;">METHOD</span> <MethodName> <span style="color: #00C800;">CLASS</span> <ClassName></div>[/code:2hror1s1]to change it to harbour Style now when have this Code how to enhance it to harbour Syntax <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> [code=fw:2hror1s1]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">CLASS</span> XbpPBar <span style="color: #0000ff;">FROM</span> XbpIWindow, DataRef<br /><br />   <span style="color: #00C800;">PROTECTED</span>:<br />      <span style="color: #0000ff;">VAR</span> nMaximum<br />      ... <br />   EXPORTED:<br />      ASSIGN <span style="color: #00C800;">METHOD</span> SetMaximum<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">VAR</span> Maximum<br />      ACCESS <span style="color: #00C800;">METHOD</span> GetMaximum<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">VAR</span> Maximum<br />      ... <br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #00C800;">METHOD</span> XbpPBar:<span style="color: #000000;">SetMaximum</span><span style="color: #000000;">&#40;</span> nMaximum <span style="color: #000000;">&#41;</span><br />...<br /> </div>[/code:2hror1s1] who can help me to translate it <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> p.s. this Progressbar also have ITaskbarList3 Interface to display Animation in Taskbar-Icon [url:2hror1s1]http&#58;//www&#46;hmgforum&#46;com/download/file&#46;php?id=9165[/url:2hror1s1]
#command Syntax
Jimmy, Please provide full XbpPBar.prg source code to help you
#command Syntax
hm ... em, äh ... that sample is only a Demo Code for this Type of Syntax used by Alaska <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: --> i have my own native Control using Ot4Xb and hope Pablo will help me to "translate" it to harbour --- but i like to learn how to translate Xbase++ CLASS Syntax to harbour CLASS Code [code=fw:2o6hafkm]<div class="fw" id="{CB}" style="font-family: monospace;">   ASSIGN <span style="color: #00C800;">METHOD</span> SetMaximum<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">VAR</span> Maximum<br />  ACCESS <span style="color: #00C800;">METHOD</span> GetMaximum<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">VAR</span> Maximum<br /> </div>[/code:2o6hafkm] i think it must be something like [code=fw:2o6hafkm]<div class="fw" id="{CB}" style="font-family: monospace;">   ASSIGN SetMaximum<span style="color: #000000;">&#40;</span> nVal <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">SetMaximum</span><span style="color: #000000;">&#40;</span>  nVal <span style="color: #000000;">&#41;</span><br />  ACCESS GetMaximum<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>       <span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">GetMaximum</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// -> RETURN ::Maximum</span><br /> </div>[/code:2o6hafkm] is this the right Syntax <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> any chance to use #xcommmand to translate Xbase++ Code to harbour Syntax <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
#command Syntax
DATA nMaximum METHOD SetMaximum( nVal ) INLINE ::nMaximum := nVal METHOD GetMaximum() INLINE ::nMaximum The simplest way uses to be the best one <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
#command Syntax
hi Antonio, [quote="Antonio Linares":3kl5tmid]The simplest way uses to be the best one <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:3kl5tmid] i agree : keep it simple [code=fw:3kl5tmid]<div class="fw" id="{CB}" style="font-family: monospace;">   oProgress:<span style="color: #000000;">SetMaximum</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">12345</span> <span style="color: #000000;">&#41;</span></div>[/code:3kl5tmid] but there is also this Syntax [code=fw:3kl5tmid]<div class="fw" id="{CB}" style="font-family: monospace;">   oProgress:<span style="color: #000000;">Maximum</span> := <span style="color: #000000;">12345</span></div>[/code:3kl5tmid] that is why Alaska also use ASSIGN / ACCESS Method and Xbase++ User can " := " Syntax. [code=fw:3kl5tmid]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #00C800;">PROTECTED</span>:<br />      <span style="color: #0000ff;">VAR</span> nMaximum<br />   EXPORTED:<br />      ACCESS <span style="color: #00C800;">METHOD</span> GetMaximum<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">VAR</span> Maximum<br />      ASSIGN <span style="color: #00C800;">METHOD</span> SetMaximum<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">VAR</span> Maximum<br /><span style="color: #00C800;">ENDCLASS</span><br /><span style="color: #00C800;">METHOD</span> XbpPBar:<span style="color: #000000;">SetMaximum</span><span style="color: #000000;">&#40;</span> nMaximum <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">IF</span> nMaximum < ::<span style="color: #000000;">nMinimum</span><br />      ::<span style="color: #000000;">nMaximum</span> := ::<span style="color: #000000;">nMinimum</span><br />      ::<span style="color: #000000;">nMinimum</span> := nMaximum<br />   <span style="color: #00C800;">ELSE</span><br />      ::<span style="color: #000000;">nMaximum</span> := nMaximum<br />   <span style="color: #00C800;">ENDIF</span><br /> </div>[/code:3kl5tmid] i'm searching for a (easy) Way to run (those) existing Xbase++ Code under harbour. i have a HbXbase.CH like this and #include it in my Project [code=fw:3kl5tmid]<div class="fw" id="{CB}" style="font-family: monospace;">#IFDEF __XPP__<br />   <span style="color: #B900B9;">// Xbase++ Code</span><br />#ELSE<br />   <span style="color: #B900B9;">// different harbour Code</span><br />   #xtranslate XbpDialog                       =>  WvgDialog<br />   #xtranslate XbpStatusBar                    =>  WvgStatusBar<br />   #xtranslate XbpStatic                       =>  WvgStatic<br />   ...<br />   #xcommand <span style="color: #00C800;">METHOD</span> <!ClassName!>:<MethodName> => <span style="color: #00C800;">METHOD</span> <MethodName> <span style="color: #00C800;">CLASS</span> <ClassName><br />   ...<br />#ENDIF</div>[/code:3kl5tmid]that Way it is less work to change Xbase++ Source to get it compile/link ... than the real Work begin. <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: --> so how do more #xcommand with harbour <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> --- p.s. Progressbar is just a Sample. i saw FW have a "green" Progressbar (PROGRESS_CLASSA) which i want to use in next Step.
#define ""lost"" ?
hi, i got a new Problem which i don't understand. what have i done : [code=fw:2998kzpw]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #00C800;">IF</span> EMPTY<span style="color: #000000;">&#40;</span>cWantPath<span style="color: #000000;">&#41;</span><br />      <span style="color: #B900B9;">// add new </span><br />      cWantPath := Lay<span style="color: #000000;">&#40;</span> cApp <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oForm <span style="color: #0000ff;">CENTER</span></div>[/code:2998kzpw] i did open a other Dialog before ... Code run without this line so something i'm doing wrong <!-- s:idea: --><img src="{SMILIES_PATH}/icon_idea.gif" alt=":idea:" title="Idea" /><!-- s:idea: --> [quote:2998kzpw] Error description: Error BASE/1004 No exported method: NCLRTEXT Args: [ 1] = U Stack Calls =========== Called from: => NCLRTEXT( 0 ) Called from: .\source\classes\SAY.PRG => TSAY:NEW( 81 ) Called from: CLICK2.PRG => MAIN_SCREEN( 4083 ) Called from: CLICK2.PRG => STARTCLICK( 495 ) Called from: CLICK2.PRG => (b)BUILDMENU( 4436 ) Called from: .\source\classes\MENU.PRG => TMENU:COMMAND( 1552 ) Called from: .\source\classes\WINDOW.PRG => TWINDOW:COMMAND( 1122 ) Called from: => TWINDOW:HANDLEEVENT( 0 ) Called from: .\source\classes\WINDOW.PRG => _FWH( 3546 ) Called from: => WINRUN( 0 ) Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE( 1078 ) Called from: CLICK2.PRG => MAIN( 197 )[/quote:2998kzpw] --- i have as 1st line [code=fw:2998kzpw]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#define</span> Use_Gui<br /><br /><span style="color: #000000;">4065</span>?#IFDEF Use_GUI<br /><span style="color: #000000;">4066</span>?   #IFDEF __HMG__<br /><span style="color: #000000;">4067</span>?      SetProperty<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Main"</span>, <span style="color: #ff0000;">"StatusBox"</span>, <span style="color: #ff0000;">"Value"</span>, cDummy <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">4068</span>?      SetProperty<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Main"</span>, <span style="color: #ff0000;">"InBox"</span>, <span style="color: #ff0000;">"Value"</span>, TIME<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">4069</span>?      SetProperty<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Main"</span>, <span style="color: #ff0000;">"OutBox"</span>, <span style="color: #ff0000;">"Value"</span>, TIME<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">4070</span>?   #ELSE<br /><span style="color: #000000;">4071</span>?      oStatusBox:<span style="color: #000000;">Value</span> := cDummy<br /><span style="color: #000000;">4072</span>?      oInBox:<span style="color: #000000;">Value</span> := TIME<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">4073</span>?      oOutBox:<span style="color: #000000;">Value</span> := TIME<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">4074</span>?   #ENDIF<br /><span style="color: #000000;">4075</span>?#ELSE<br /><span style="color: #000000;">4076</span>?   SetMode<span style="color: #000000;">&#40;</span><span style="color: #000000;">50</span>,<span style="color: #000000;">80</span><span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">4077</span>?   nMidScreen := <span style="color: #000000;">8</span> + INT<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> MAXROW<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">4078</span>?   SETCOLOR<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'w+/b'</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">4079</span>?   CLEAR SCREEN<br /><span style="color: #000000;">4080</span>?   DISPBOX<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">8</span>, MAXCOL<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">4081</span>?   DISPBOX<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span>, <span style="color: #000000;">0</span>, nMidScreen, MAXCOL<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">4082</span>?   DISPBOX<span style="color: #000000;">&#40;</span> nMidScreen, <span style="color: #000000;">0</span>, MAXROW<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">2</span>, MAXCOL<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">4083</span>?   @  <span style="color: #000000;">8</span>,  <span style="color: #000000;">0</span>               <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">'?'</span><br /><span style="color: #000000;">4084</span>?   @  <span style="color: #000000;">8</span>, MAXCOL<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>         <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">'?'</span><br /><span style="color: #000000;">4085</span>?   @ nMidScreen,  <span style="color: #000000;">0</span>       <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">'?'</span><br /><span style="color: #000000;">4086</span>?   @ nMidScreen, MAXCOL<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">'?'</span><br /><span style="color: #000000;">4087</span>?#ENDIF</div>[/code:2998kzpw] how can harbour go to that Code <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> --- [code=fw:2998kzpw]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">4462</span>?<span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> Lay<span style="color: #000000;">&#40;</span> cTemp <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">4463</span>?<span style="color: #00C800;">local</span> oDlg, oGet,cClickini,nLen,nPosi<br /><span style="color: #000000;">4464</span>?<span style="color: #00C800;">local</span> cINIfile := Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">80</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">4465</span>?<br /><span style="color: #000000;">4466</span>?IIF<span style="color: #000000;">&#40;</span> !empty<span style="color: #000000;">&#40;</span> cTemp <span style="color: #000000;">&#41;</span>, cINIfile := <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span>cTemp+Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">80</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">80</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">4467</span>?<br /><span style="color: #000000;">4468</span>?<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"CLICK Directory"</span> ;<br /><span style="color: #000000;">4469</span>?        <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">600</span>, <span style="color: #000000;">150</span><br /><span style="color: #000000;">4470</span>?<br /><span style="color: #000000;">4471</span>?@ <span style="color: #000000;">1</span>, <span style="color: #000000;">1.5</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Directory"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">8</span><br /><span style="color: #000000;">4472</span>?@ <span style="color: #000000;">2</span>, <span style="color: #000000;">1.0</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cINIfile <span style="color: #0000ff;">OF</span> oDlg<br /><span style="color: #000000;">4473</span>?<br /><span style="color: #000000;">4474</span>?@ <span style="color: #000000;">3</span>, <span style="color: #000000;">1.0</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Directory"</span> ;<br /><span style="color: #000000;">4475</span>?       <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> cTemp := CGETFOLDER<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Hello"</span>,cINIfile<span style="color: #000000;">&#41;</span>, ;<br /><span style="color: #000000;">4476</span>?       <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> !Empty<span style="color: #000000;">&#40;</span> cTemp <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> cINIfile := TRIM<span style="color: #000000;">&#40;</span>cTemp<span style="color: #000000;">&#41;</span>, oGet:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>,<br /><span style="color: #000000;">4477</span>?<br /><span style="color: #000000;">4478</span>?@ <span style="color: #000000;">3</span>, <span style="color: #000000;">43.0</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Exit"</span> <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">4479</span>?<br /><span style="color: #000000;">4480</span>?<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><span style="color: #000000;">4481</span>?<br /><span style="color: #000000;">4482</span>?cINIfile := TRIM<span style="color: #000000;">&#40;</span>cINIfile<span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">4483</span>?<span style="color: #00C800;">If</span> .NOT. Empty<span style="color: #000000;">&#40;</span>cINIfile<span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">4484</span>?   <span style="color: #B900B9;">// check last sign</span><br /><span style="color: #000000;">4485</span>?   nLen  := LEN<span style="color: #000000;">&#40;</span>cINIfile<span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">4486</span>?   nPosi := RAT<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"<span style="color: #000000;">\"</span>,cINIfile)<br />4487?   IF nPosi < nLen<br />4488?      cINIfile += "</span>\<span style="color: #ff0000;">"<br />4489?   ENDIF<br />4490?   #IFDEF Need_Once<br />4491?      // new INI if need<br />4492?      cClickini  := cINIfile + 'click.ini'<br />4493?      IF .NOT. FILE( cClickini )<br />4494?         createini( cClickini )<br />4495?         SET PATH TO cINIfile<br />4496?      ENDIF<br />4497?   #ENDIF<br />4498?   oStatusBox:cText := cINIfile<br />4499?ENDIF<br />4500?return TRIM(cINIfile)</span></div>[/code:2998kzpw]
#define ""lost"" ?
Use [code=fw:34a6cg4z]<div class="fw" id="{CB}" style="font-family: monospace;">#IFDEF Use_GUI</div>[/code:34a6cg4z] because it's Case sensitive.
#define ""lost"" ?
hi, [quote="Marc Vanzegbroeck":331czv09]Use [code=fw:331czv09]<div class="fw" id="{CB}" style="font-family: monospace;">#IFDEF Use_GUI</div>[/code:331czv09] because it's Case sensitive.[/quote:331czv09] thx for Answer. i do use Copy/Paste so it is always same Syntax. but that is not the Problem while Code work without that "extra" Dialog. if use #IFDEF under Cl*pper oder Xbase++ those Code does "NOT exist" when compile so he can't go to Code that does not exist <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: -->
#ifdef __xpp__ en la tw de hernana (SOLUCIONADO)
Para que esta este codigo? si activo la directiva __XPP__ me da error. Gracias. [code=fw:2t0va0xi]<div class="fw" id="{CB}" style="font-family: monospace;"><br />#ifdef __XPP__<br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> wBrwLine<span style="color: #000000;">&#40;</span> hWnd, hDC, nRowPos, aValues, aColSizes,;<br />                          nColPos, nClrText, nClrPane,;<br />                          hFont, lTree, aJustify, nPressed, nLineStyle,;<br />                          nColAct, lFocused <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> nTxtHeight, hOldFont<br />   <span style="color: #00C800;">local</span> nColStart  := <span style="color: #000000;">-1</span><br />   <span style="color: #00C800;">local</span> nWidth     := WndWidth<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> nRow := nRowPos, nTop, nBottom, nLeft, nRight, n<br />   <span style="color: #00C800;">local</span> lReleaseDC := .f.<br />   <span style="color: #00C800;">local</span> nForeColor, nBackColor<br /> </div>[/code:2t0va0xi] [code=fw:2t0va0xi]<div class="fw" id="{CB}" style="font-family: monospace;">Application<br />===========<br />   Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">D</span>:\32bits\mysql\BIN\mysql.Exe <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">Size</span>: <span style="color: #000000;">2</span>,<span style="color: #000000;">384</span>,<span style="color: #000000;">896</span> bytes<br />   Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">0</span> secs <br />   Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">11</span>/<span style="color: #000000;">04</span>/<span style="color: #000000;">2009</span>, <span style="color: #000000;">09</span>:<span style="color: #000000;">26</span>:<span style="color: #000000;">53</span><br />   Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1005</span>  <span style="color: #0000ff;">Message</span> not found: <span style="color: #000000;">TICON</span>:_NEW<br /><br />Stack Calls<br />===========<br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">source</span>\rtl\tobject.prg => TICON:<span style="color: #000000;">ERROR</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">172</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">source</span>\rtl\tobject.prg => TICON:<span style="color: #000000;">MSGNOTFOUND</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">205</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">source</span>\rtl\tobject.prg => TICON:_NEW<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">Source</span>\<span style="color: #0000ff;">menu</span>.prg => MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">67</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:2t0va0xi]
#ifdef __xpp__ en la tw de hernana (SOLUCIONADO)
Ese define era para el soporte de XBase++. Daba la opción de usar el código en PRG en vez de en C.
#pragma message
I always forget this one, so better keep a reminder here <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->How to display a C preprocessor output message:#pragma message "Here!"
#pragma message
Checking several preprocessor defined values:#if defined( VALUE1 ) || defined( VALUE2 ) || ...
#pragma message
For VC use pragma message like this: #pragma message( "Here!" ) [url:aw525gu5]https&#58;//docs&#46;microsoft&#46;com/en-us/cpp/preprocessor/message?view=vs-2019[/url:aw525gu5]
#xcommand
Alguien me puede ayudar a con este comando Resulta que modifique la clase dbcombo y lo que quiero es agregarlo en xcommand pero me arroja un error nunca he podido decifrar como funcionan esto de los #xcomm#~??654556 #xcommand REDEFINE DBCOMBO [ <oCbx> VAR ] <cVar> ; [ <items: ITEMS, PROMPTS> <aItems> ] ; [ ID <nId> ] ; [ <dlg:OF,WINDOW,DIALOG> <oWnd> ] ; [ <help:HELPID, HELP ID> <nHelpId> ] ; [ ON CHANGE <uChange> ] ; [b:2mrgnm2w][ ON CONDICION <uCondicion> ] ;[/b:2mrgnm2w] [ VALID <uValid> ] ; [ <color: COLOR,COLORS> <nClrText> [,<nClrBack>] ] ; [ <update: UPDATE> ] ; [ MESSAGE <cMsg> ] ; [ WHEN <uWhen> ] ; [ BITMAPS <acBitmaps> ] ; [ ON DRAWITEM <uBmpSelect> ] ; [ ALIAS <cAlias> ] ; [ ITEMFIELD <cFldItem> ] ; [ LISTFIELD <cFldList> ] ; [ <list: LIST, PROMPTS> <aList> ] ; => ; [ <oCbx> := ] TDBCombo():ReDefine( <nId>, bSETGET(<cVar>),; <aItems>, <oWnd>, <nHelpId>, <{uValid}>, [{|Self|<uChange>}],; <nClrText>, <nClrBack>, <cMsg>, <.update.>, <{uWhen}>,; <acBitmaps>, [{|nItem|<uBmpSelect>}], ; <cAlias>, <cFldItem>, <cFldList>, <aList>,[b:2mrgnm2w] [{||<uCondicion>}] [/b:2mrgnm2w]) desde ya gracias Saludos Patricio
#xcommand
Hola, prueba con <{uCondicion}> en lugar de [{||<uCondicion>}] saludos Marcelo
%systemroot%
Hola, Es posible desde FWH obtener el directorio donde se encuentra %systemroot%, %programfiles% y %userprofile% ? Gracias.
%systemroot%
[quote="Carles":230abbya]Hola, Es posible desde FWH obtener el directorio donde se encuentra %systemroot%, %programfiles% y %userprofile% ? Gracias.[/quote:230abbya] Espero sea lo que buscas cPath := GETENV("PATH") SET PATH TO (cPath)
%systemroot%
Hola William, Getenv() nos da las variables de entorno, pero no es exactamente lo q busco. Quiero %systemroot%, %programfiles% y %userprofile%. Gracias.
%systemroot%
[quote="Carles":skhhkymt]Hola William, Getenv() nos da las variables de entorno, pero no es exactamente lo q busco. Quiero %systemroot%, %programfiles% y %userprofile%. Gracias.[/quote:skhhkymt] GetEnv( "SYSTEMROOT" ) GetEnv("PROGRAMFILES") GetEnv("USERPROFILE" ) Vamos....creo que son variables de entorno, por lo tanto, puedes cogerlas asi. Si no, ¿ que es lo que buscas ?
%systemroot%
Rafa, Quiero juestamente esto y se me ha ido la olla. Hacia GetEnv( '%systemroot%' ) en lugar de GetEnv( 'SYSTEMROOT' ) <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> Me voy a comer q estoy demasiado espeso. Demasiadas horas. Esto nos va a matar Perdon a todos. Rafa -> Gracias. William -> Tenias razon Ciao.
'Apple-like' lines for Microsoft's Surface Pro
'Apple-like' lines for Microsoft's Surface Pro (photos, video) [url:1cgbfxm6]http&#58;//tech&#46;fortune&#46;cnn&#46;com/2013/02/10/apple-microsoft-surface-pro/[/url:1cgbfxm6]
'Apple-like' lines for Microsoft's Surface Pro
[quote:12f06qw0]Finally, a rational and? balanced review.[/quote:12f06qw0] <!-- m --><a class="postlink" href="http://www.youtube.com/watch?v=c-G-7keEE5M">http://www.youtube.com/watch?v=c-G-7keEE5M</a><!-- m -->
'Apple-like' lines for Microsoft's Surface Pro
[quote="Otto":1wslp9fp][quote:1wslp9fp]Finally, a rational and? balanced review.[/quote:1wslp9fp] <!-- m --><a class="postlink" href="http://www.youtube.com/watch?v=c-G-7keEE5M">http://www.youtube.com/watch?v=c-G-7keEE5M</a><!-- m -->[/quote:1wslp9fp] 1.- Well, is exactly what we have been saying all toguether.... just listen to minute 8:00 to 8:30... 2.- Uhmmmm... people comming from different places, all have knoledge of the weather, and almost all of them bought a yellow umbrella... bizarre or coincidence... 3.- The guy 95% of the time goes back to regular desktop... wich does not have a start button... I love windows, if I can get somehow a Star button and use it as tool as I do with my W7 desktop, I will... Right now I think they removed the start button, so it does not resembles Windows 7... Of course they fix a lot of problems, and they implemented many things, but is not enough to make me expend all that money to update... I say all that money, because I can't use a Touch Operative System with out a touch screen computer...
'COPY TO' problem with timestamp datatype
Hello all, I have a table with timestamp datatype field. when I 'COPY TO' the content to another table.. generates runtime 'data type error' How to resolved? Regards, FAP
'COPY TO' problem with timestamp datatype
I presume you are using DBFCDX. If you use SETRDDDEFAULT( 'DBFCDX' ) and then use COPY TO command, it copies Timestamp fields also correctly. I have tested on XHarbour.
'COPY TO' problem with timestamp datatype
Dear RAO, Thanks again. I use .ADT tables. I tried rddsetdefault( 'ADS' ) and/or rddsetdefault( 'ADT' ) on INIT PROCEDURE but still with error description: 'Data Type Error' on table with timestamp field. What causing this? Regards, FAP
'COPY TO' problem with timestamp datatype
Dear All, I end up using AdsCopyTable().. It works though but I lost gaugebar/meter.. adsRegCallBack() woking only in indexing not in other function like AdsCopyTable() Regards, FAP
'DATA' hAlphaLevel (Resolved)
Linhares, I hope I'm not bothering or. Could you take a doubt? How can I work with the 'DATA' hAlphaLevel? Example, if I want to create a window or dialog where it will only contain a bitmap, but I would like the dialog or window was 100% transparent but not bitmap. And I would like the bitmap was a star where the white parts of the bitmap would be transparent. There is that possibility? Note: whatever be bitmap, jpeg or png. EX picture: <!-- m --><a class="postlink" href="http://upload.wikimedia.org/wikipedia/commons/3/34/Estrela_azul_fundo_branco.PNG">http://upload.wikimedia.org/wikipedia/c ... branco.PNG</a><!-- m -->
'DATA' hAlphaLevel (Resolved)
Hello arthursilvestre, please use a topic which is related to the content. Best regards, Otto
'DATA' hAlphaLevel (Resolved)
Edited, thks
'DATA' hAlphaLevel (Resolved)
[code=fw:13spxwc9]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span> <br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br /><br />      MSGLOGO<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"star.bmp"</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span> <br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MSGLOGO<span style="color: #000000;">&#40;</span> cImage, nSeconds <span style="color: #000000;">&#41;</span> <br /><br />    <span style="color: #00C800;">LOCAL</span> oDlg, oTimer, oImage <br /><br />    <span style="color: #00C800;">DEFAULT</span> nSeconds := <span style="color: #000000;">5</span> <br /><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg; <br />           <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">800</span>, <span style="color: #000000;">600</span>; <br />           <span style="color: #0000ff;">STYLE</span> WS_POPUP; <br />           <span style="color: #0000ff;">BRUSH</span> TBrush<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"NULL"</span> <span style="color: #000000;">&#41;</span> <br /><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> oTimer <span style="color: #0000ff;">OF</span> oDlg; <br />           <span style="color: #0000ff;">INTERVAL</span> nSeconds * <span style="color: #000000;">1000</span>; <br />           <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br /><br />    @ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">IMAGE</span> oImage; <br />           FILE cImage; <br />           <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">800</span>, <span style="color: #000000;">600</span>; <br />           NOBORDER <br /><br />    oImage:<span style="color: #000000;">lTransparent</span> = .T. <br /><br />    <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg; <br />             <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> oTimer:<span style="color: #000000;">hWndOwner</span> := oDlg:<span style="color: #000000;">hWnd</span>,; <br />                       oTimer:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,; <br />                       SETTRANSP<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>; <br />             <span style="color: #0000ff;">CENTER</span> <br /><br />    <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span> <br /><br /><br /><span style="color: #00D7D7;">#define</span> LWA_COLORKEY <span style="color: #000000;">1</span> <br /><br /><span style="color: #00D7D7;">#define</span> GWL_EXSTYLE <span style="color: #000000;">-20</span> <br /><br /><span style="color: #00D7D7;">#define</span> WS_EX_LAYERED <span style="color: #000000;">524288</span> <br /><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> SETTRANSP<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span> <br /><br />    SETWINDOWLONG<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hWnd</span>, GWL_EXSTYLE, NOR<span style="color: #000000;">&#40;</span> GETWINDOWLONG<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hWnd</span>, GWL_EXSTYLE <span style="color: #000000;">&#41;</span>, WS_EX_LAYERED <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <br /><br />    SETLAYEREDWINDOWATTRIBUTES<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hWnd</span>, , , LWA_COLORKEY <span style="color: #000000;">&#41;</span> <br /><br />    <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:13spxwc9] Regards Fafi
'DATA' hAlphaLevel (Resolved)
Perfect, Thanks. I really appreciate the help.
'N' appears when spacebar is pressed
Guys, any of you had this happen to you? When you press spacebar, instead of a blank space your get displays 'N' instead. Running fwh\samples\testget.prg and testget6.prg doesn't give me that problem though. [img:onq0pen3]http&#58;//img600&#46;imageshack&#46;us/img600/2079/strangechars&#46;jpg[/img:onq0pen3] Any idea on how to go about troubleshooting this is also appreciated. Using FWH11.6+Harbour+BCC5.82
'N' appears when spacebar is pressed
The next step I did to try to determine the source of the problem: i. Linked-in tget.prg from fwh\source and insert OutputDebugString() at line 1135. ii. Compile with harbour binary downloaded from <!-- m --><a class="postlink" href="http://code.google.com/p/harbour-and-xharbour-builds/downloads/detail?name=harbour.zip&can=2&q=">http://code.google.com/p/harbour-and-xh ... p&can=2&q=</a><!-- m --> Turns out the nKey value here (::KeyChar()) is already 78 not 32. What's next to check?
'N' appears when spacebar is pressed
Hua, Could you provide a small example to reproduce it here ? thanks
'N' appears when spacebar is pressed
Strange, compiling using xHarbour makes this specific problem goes away. Unfortunately it also means the comeback of some bugs that have been resolved so can't stick to it.
'N' appears when spacebar is pressed
Hua, have you checked that you are not linking a modified Class TGet ? Could you provide a small example ? thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
'N' appears when spacebar is pressed
Attempts to create a reduced-self contain example so far failed Antonio. The tget.prg was taken directly from fwh\source. I'll give a try again.
'N' appears when spacebar is pressed
Hua: [quote="hua":2fj9l8g0]Strange, compiling using xHarbour makes this specific problem goes away. Unfortunately it also means the comeback of some bugs that have been resolved so can't stick to it.[/quote:2fj9l8g0] What bugs are you referring to? Randal
'N' appears when spacebar is pressed
[quote="Randal":p7q53ldw]What bugs are you referring to?[/quote:p7q53ldw] The xHarbour bug is some commands that are supposed to observe SET DEFAULT TO didn't. There was also another bug I reported regarding a zip-related function. All were submitted to the [url=http&#58;//www&#46;xharbour&#46;com/v4/support/bugreporter/index&#46;asp?page=list:p7q53ldw]bug reporter.[/url:p7q53ldw] After monitoring them for a while and seeing that they weren't resolved I just forgotten about them
'N' appears when spacebar is pressed
I had the same problem occasionally (not only N but also other chars). It seems a memory problem because I solved it calling some hb_gcall() in the code. In xHarbour I never had this behavior. Regards, Roberto Parisi
'N' appears when spacebar is pressed
I also don't have this problem in xHarbour but compiling my module in Harbour solved some other problems for me. To be fair, my xHarbour version is fairly outdated. So far I manage to recreate the problem when dynamically loading keylib32.dll (a dll from SoftwareKey). Still chopping my test code further so could get a reduced self-contained sample. Thanks for the tip about hb_gcall(). Anyone has a snippet on how to use the native hb_libload() in Harbour? Seems it's expecting 2 parameters instead of 1 [code=fw:d60yyed9]<div class="fw" id="{CB}" style="font-family: monospace;">hb_libLoad<span style="color: #000000;">&#40;</span> PHB_ITEM pLibName, PHB_ITEM pArgs <span style="color: #000000;">&#41;</span></div>[/code:d60yyed9]. I was wondering whether it would help due to this note in Harbour's changelog [code=fw:d60yyed9]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #000000;">2008</span><span style="color: #000000;">-10</span><span style="color: #000000;">-13</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">21</span> UTC<span style="color: #000000;">+0200</span> Przemyslaw Czerpak <span style="color: #000000;">&#40;</span>druzus/<span style="color: #00C800;">at</span>/priv.onet.pl<span style="color: #000000;">&#41;</span><br />&nbsp; * harbour/source/rdd/wacore.c<br />&nbsp; &nbsp; ; updated comments about Xbase++ behavior in dbRelease<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; * harbour/include/hbvm.h<br />&nbsp; * harbour/source/vm/hvm.c<br />&nbsp; * harbour/source/vm/dynlibhb.c<br />&nbsp; * harbour/source/vm/runner.c<br />&nbsp; &nbsp; ! added MT protection <span style="color: #00C800;">for</span> HB_LIBLOAD<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>/HB_LIBFREE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> and<br />&nbsp; &nbsp; &nbsp; HB_HRBLOAD<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>/HB_HRBUNLOAD<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>. Please remember that you should<br />&nbsp; &nbsp; &nbsp; not use any external LoadLibrary<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> functions because they are<br />&nbsp; &nbsp; &nbsp; not <span style="color: #00C800;">protected</span> <span style="color: #00C800;">for</span> clean PCODE modules loading/unloading even<br />&nbsp; &nbsp; &nbsp; in ST mode. Using them can cause HVM internal structure corruption.<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span> we have such functions in contrib then they should be redirected<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">to</span> our HVM ones.<br />&nbsp; &nbsp; &nbsp; There is still one problem in MT mode which has <span style="color: #0000ff;">to</span> be resolved yet.<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">When</span> dynamic <span style="color: #0000ff;">library</span> containing PCODE using <span style="color: #00C800;">static</span> variables<br />&nbsp; &nbsp; &nbsp; is loaded <span style="color: #000000;">1</span>-st time then it will force resizing <span style="color: #0000ff;">of</span> internal array<br />&nbsp; &nbsp; &nbsp; with <span style="color: #00C800;">static</span> variables. <span style="color: #00C800;">If</span> in exactly the same moment some other<br />&nbsp; &nbsp; &nbsp; thread operates <span style="color: #0000ff;">on</span> <span style="color: #00C800;">static</span> variable then it may cause corruption.<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">To</span> resolve this problem we will have <span style="color: #0000ff;">to</span> divide continuous memory<br />&nbsp; &nbsp; &nbsp; block common <span style="color: #00C800;">for</span> all modules <span style="color: #0000ff;">where</span> we store all <span style="color: #00C800;">static</span> variables<br />&nbsp; &nbsp; &nbsp; into separated blocks bound with each PCODE module <span style="color: #000000;">&#40;</span>symbol table<span style="color: #000000;">&#41;</span>.</div>[/code:d60yyed9]
'NIL' has no exported method: NMAX
Hi all, there is this annoyant error that appairs randomly without a specific reason. It seem something related to the bitmap class. Anyone already had this problem ? Any ideas ? Thanks. ******** Application =========== Path and name: K:\TESTXBRW\brw.Exe (32 bits) Size: 1,863,680 bytes Time from start: 0 hours 0 mins 17 secs Error occurred at: 11/10/09, 18:44:15 Error description: Error BASE/1004 Class: 'NIL' has no exported method: NMAX Args: [ 1] = U Stack Calls =========== Called from: => NMAX(0) Called from: .\source\classes\BITMAP.PRG => TBITMAP:SCROLLRIGHT(822) Called from: .\source\classes\BITMAP.PRG => TBITMAP:HSCROLL(900) Called from: => TWINDOW:HANDLEEVENT(0) Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1469) Called from: .\source\classes\BITMAP.PRG => TBITMAP:HANDLEEVENT(511) Called from: .\source\classes\WINDOW.PRG => _FWH(3347) Called from: => DIALOGBOX(0) Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(273) Called from: K:\TESTXBRW\image.prg => FOLDER(57) Called from: K:\TESTXBRW\image.prg => (b)MAIN(18) Called from: .\source\classes\WINDOW.PRG => TMDIFRAME:ACTIVATE(959) Called from: K:\TESTXBRW\image.prg => MAIN(18) System ====== CPU type: Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz 2000 Mhz Hardware memory: 2038 megs Free System resources: 90 % GDI resources: 90 % User resources: 90 % Compiler version: xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 6406) Windows version: 6.0, Build 6002 Service Pack 2 Windows total applications running: 89 1 Default IME 2 MSCTFIME UI 3 CiceroUIWndFrame 4 Start 5 xMate - K:\TESTXBRW\brw.xhp 6 SysFader 7 Marco Turco 8 Menu Start 9 OnScreen Display Window 10 Passaggio da un programma all'altro 11 CL RC Engine3 Dummy Winidow 12 Icona di sistema rete 13 TF_FloatingLangBar_WndTitle 14 FiveWin Folders Demo 15 TTitle Class Test 16 START2 17 <!-- w --><a class="postlink" href="http://www.FiveTechSoft.com">www.FiveTechSoft.com</a><!-- w --> • View topic - Transparent bitmap on MDI with manifest file - Windows Internet Explorer 18 MCI command handling window 19 Acrobat IEHelper 20 AcroStubUnloadWClass 21 DDE Server Window 22 AppBar Bullet 23 Presentazione 24 Calendario 25 Windows Sidebar 26 Acer Empowering Technology 27 WOWExec 28 syntax 29 Editor [K:\pigc\CNDRTN\MODTOOLS.PRG] 30 Skype™ [9] - softwarexp 31 FPLaunch 32 Fplaunch 33 TouchPad object helper window 34 GSLSSWnd 35 Windows Internet Explorer 36 Debug window K:\TESTXBRW\brw.Exe (0 errors, 0 warnings) 37 JavaUpdate SysTray Icon 38 {878390AD-434B-41EE-9110-49B69E4398F9} 39 Gestione Extra di Skype™ 40 VCL ImplGetDefaultWindow 41 {A3533AC8-A133-43D6-A112-361167D254CC} 42 MMDEVAPI Device Window 43 DeviceManager 44 PCSuite 45 TrayIconManager 46 Actions 47 Acer eNet Management - eNMTray 48 Form2 49 .NET-BroadcastEventWindow.2.0.0.0.33c0d9d.0 50 Nokia PC Suite 51 SkyLibEx 52 C:\Users\Marco Turco\AppData\Roaming\Skype 53 amUI 54 Product Message 55 .NET-BroadcastEventWindow.2.0.0.0.11ecf05.0 56 ESET NOD32 Antivirus 57 .NET-BroadcastEventWindow.2.0.0.0.378734a.0 58 EndSessionHandling 59 CDirectoryChangeWatcherHelperWindow 60 eRecoveryAgent 61 eDSLoader 62 Touchpad driver tray icon window 63 Realtek HD Audio CPL for Vista 64 IgfxExt_Wnd_Name 65 SidebarBroadcastWatcher 66 VOIP080 USBPhone 67 About GemSafe RegTool. 68 Launch Manager 69 Canon My Printer 70 Touchpad driver backward compatibility window 71 Touchpad driver helper window 72 DritekECWnd 73 HiddenFaxWindow 74 BluetoothNotificationAreaIconWindowClass 75 MS_WebcheckMonitor 76 HkWndName 77 igfxtrayWindow 78 Servizio di condivisione in rete Windows Media Player 79 PersistWndName 80 Misuratore alimentazione 81 IAAMonitor Notify App 82 TaskEng - Processo del modulo di gestione dell'Utilità di pianificazione 83 DWM Notification Window 84 GDI+ Window 85 Windows Defender 86 BTTrayMainWindow 87 ePower_DMC 88 GCardSrv 89 Program Manager Variables in use ================ Procedure Type Value ========================== NMAX Local 1: A Len: 0 Local 2: U Local 3: U TBITMAP:SCROLLRIGHT Local 1: O Class: TBITMAP Local 2: U Local 3: U Local 4: N 123 TBITMAP:HSCROLL Param 1: N 0 Param 2: N 0 Local 1: O Class: TBITMAP Local 2: N 0 Local 3: N 0 TWINDOW:HANDLEEVENT Param 1: N 276 Param 2: N 0 Param 3: N 0 TCONTROL:HANDLEEVENT Param 1: N 276 Param 2: N 0 Param 3: N 0 Local 1: O Class: TBITMAP Local 2: U TBITMAP:HANDLEEVENT Param 1: N 276 Param 2: N 0 Param 3: N 0 Local 1: O Class: TBITMAP _FWH Param 1: N 0 Param 2: N 276 Param 3: N 0 Param 4: N 0 Param 5: N 5 Local 1: O Class: TBITMAP DIALOGBOX Param 1: N 4194304 Param 2: C "Test" Param 3: N 9445068 Param 4: O Class: TDIALOG TDIALOG:ACTIVATE Param 1: U Param 2: U Param 3: U Param 4: L .T. Param 5: U Param 6: L .T. Param 7: U Param 8: U Param 9: U Param 10: L .T. Local 1: O Class: TDIALOG Local 2: N 9445068 Local 3: U Local 4: U Local 5: U Local 6: O Class: TDIALOG FOLDER Local 1: U Local 2: O Class: TDIALOG Local 3: O Class: TFOLDER Local 4: U Local 5: U Local 6: O Class: TBITMAP (b)MAIN Param 1: O Class: TMDIFRAME TMDIFRAME:ACTIVATE Param 1: C "NORMAL" Param 2: U Param 3: U Param 4: U Param 5: U Param 6: B {|| ... } Param 7: U Param 8: B {|| ... } Param 9: U Param 10: U Param 11: U Param 12: U Param 13: U Param 14: U Param 15: U Param 16: U Param 17: U Param 18: U Param 19: U Local 1: O Class: TMDIFRAME Local 2: U Local 3: U MAIN Linked RDDs =========== DBF DBFFPT DBFBLOB DBFNTX DataBases in use ================ Classes in use: =============== 1 ERROR 2 HASHENTRY 3 HBCLASS 4 HBOBJECT 5 TWINDOW 6 TCONTROL 7 TBITMAP 8 TBRUSH 9 TMDIFRAME 10 TMENU 11 TMENUITEM 12 TMDICLIENT 13 TFONT 14 TDIALOG 15 TFOLDER 16 TREG32 Memory Analysis =============== 178 Static variables Dynamic memory consume: Actual Value: 0 bytes Highest Value: 0 bytes 
'NIL' has no exported method: NMAX
Marco, As a workaround please change Class TBitmap line 822 this way: [code=fw:2s2iljh8]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nVisible := <span style="color: #00C800;">Super</span>:<span style="color: #000000;">nWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oVScroll</span> != <span style="color: #00C800;">nil</span> .and. ::<span style="color: #000000;">oVScroll</span>:<span style="color: #000000;">nMax</span> != <span style="color: #000000;">0</span>, GetSysMetrics<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span><br />&nbsp;</div>[/code:2s2iljh8] Somehow ::oVScroll is becoming nil and thus the error you get
'Windows' key
Hi all, i must simulate a press of the new 'windows' keys which can be found on modern keyboards. ( An other app needs 'windows' + 'a' ) Unfortunatelly i can not find any value for them in inkey.ch nor vkey.ch. I still use a vintage keyboard without such keys and can not experiment. I already got the hint to use [quote:16fg7y9d] VK_LWIN (0x5B) for Left Windows key (Microsoft Natural keyboard) and VK_RWIN (0x5C) for Right Windows key (Natural keyboard)[/quote:16fg7y9d] But if i send this via keyboard command i got the characters '[' and '\' which is the correct ascii value. Is there way to simulate the windows key? Any help will be welcome, Detlef
'Windows' key
This is a working sample: [code:3h2z4t7t]#include "Fivewin&#46;ch" FUNCTION MAIN&#40;&#41; LOCAL oDlg DEFINE DIALOG oDlg @ 1, 1 BUTTON "Test"; ACTION __KEYBOARD&#40; CHR&#40; 0x5B &#41; &#41; ACTIVATE DIALOG oDlg; CENTER RETURN NIL[/code:3h2z4t7t] EMG
'Windows' key
Enrico, many thanks for your help. It's working fine. I forgot to tell that those keys must be triggered from a xharbour console app. <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> And this doesn't work. May be you have an other idea? Thanks and regards, Detlef
'Windows' key
Sorry, no. <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> EMG
'Windows' key
Enrico, i tried to be clever and write a Windows program which i can start from my console app. [code:2secxgnp]#include "FiveWin&#46;ch" FUNCTION MAIN&#40;&#41; __KEYBOARD&#40; CHR&#40; 0x5B &#41; + 'e' &#41; RETURN NIL[/code:2secxgnp]This should normally start the Windows Explorer. But it doesn't. It just opens the Start menu and selects the menu point with hotkey 'e' ( in German 'Einstellungen' what means Settings ). Are you able to start the Windows explorer via __KEYBOARD() ? Regards, Detlef
'Windows' key
Detlef, You can run Explorer from a DOS prompt calling for EXPLORER, maybe you can call it by RUN command... Regards, Maurilio
'Windows' key
Maurilio, thanks for jumping in. But my problem is not to call Windows explorer. This was just a suggested test for EMG. I must trigger the key combination 'windows' + 'a' for a call center software to dial customer numbers. Unfortunatelly this seems to be impossible from a xHarbour console app. Anyhow, thanks for your help. Detlef
'Windows' key
Try this: [code:185182w3]#include "Fivewin&#46;ch" FUNCTION MAIN&#40;&#41; LOCAL oDlg DEFINE DIALOG oDlg @ 1, 1 BUTTON "Test"; ACTION __KEYBOARD&#40; CHR&#40; 0x5B &#41; + "e" + CHR&#40; VK_RETURN &#41; &#41; ACTIVATE DIALOG oDlg; CENTER RETURN NIL[/code:185182w3] EMG
'Windows' key
Enrico, [quote:32p1ynjz]Try this... __KEYBOARD( CHR( 0x5B ) + "e" + CHR( VK_RETURN ) )[/quote:32p1ynjz] starts the settings dialog of a German windows XP. It's just like clicking the Startbutton of Windows and select 'Einstellungen ( Settings )' plus Enter. But unfortunatelly it's not the equivalent to 'windows' + 'e'. I'll going to loose my last hair <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> Regards, Detlef
'Windows' key
Detlef, Now I understand what you want <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> I never did it with FiveWin, but I have a program in Delphi where I execute a program and select a option from menu. In Delphi I do: [code:tufazbmq] &#40;&#46;&#46;&#46;&#41; Keybd_Event&#40;VK_MENU, 0, 0, 0&#41;; // Press ALT key Keybd_Event&#40;86 , 0, 0, 0&#41;; // V from &View menu option Keybd_Event&#40;87 , 0, 0, 0&#41;; // W from &Wide Band menu keybd_event&#40;VK_MENU, MapVirtualKey&#40;VK_MENU,0&#41;, KEYEVENTF_KEYUP, 0&#41;; // release Alt key [/code:tufazbmq] Maybe you can search in Goggle for this API functions and constants to adapt it to FW... Regards, Maurilio
'Windows' key
Maurilio, many thanks for your efforts. I just finished myself googling this problem. After reading docs and samples i finally got it. Here the source. You can compile it with bcc32 and it will run fine. [code:2u2kyj60]#include <windows&#46;h> void main&#40;&#41; &#123; keybd_event&#40; VK_LWIN, 0, 0, 0 &#41;; // press left 'windows' key keybd_event&#40; VkKeyScan&#40;'E'&#41;, 0, 0, 0 &#41;; // press 'E' keybd_event&#40; VkKeyScan&#40;'E'&#41;, 0, KEYEVENTF_KEYUP, 0 &#41;; // release 'E' key keybd_event&#40; VK_LWIN, 0, KEYEVENTF_KEYUP, 0 &#41;; // release the 'windows' key &#125;[/code:2u2kyj60]I found out that the sequence of pressing and releasing the keys is important. Many thanks for all assistance from this forum. Detlef
'izi pi zi' reporting is renamed Triathlon Report
Hello friends, I am currently working on the new offer tool for WINHOTEL. Here the offers are created as WORD, Outlook and web offers. I was looking for a working title for this tool and we decided on Triathlon. Since the quotation tool uses many functions of the 'iz pi zi' HTML report, I thought that the name would also be catchy for the reporting tool: Reports from one base for desktop, Outlook and web. The new webview2 offers so many additional possibilities. You can now use the full range of Javascritpt and HTML. Best regards, Otto Links to my old posts: [url:211t5maa]https&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=40516&hilit=reporting&sid=e4ad5dab9e442b55d14c83ba0165ae81[/url:211t5maa] [img:211t5maa]https&#58;//mybergland&#46;com/fwforum/triathlonclip1&#46;jpg[/img:211t5maa] [img:211t5maa]https&#58;//mybergland&#46;com/fwforum/triathlonclip2&#46;jpg[/img:211t5maa] [img:211t5maa]https&#58;//mybergland&#46;com/fwforum/triathlonclip3&#46;jpg[/img:211t5maa]
'kinetic' navigation
'kinetic' navigation Since I compiled with 9.08 drag & drop is no longer working. Can someone confirm this? Best regards, Otto
'kinetic' navigation
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=16905&start=0">viewtopic.php?f=3&t=16905&start=0</a><!-- l -->
( CONTRIBUTION ) PickColor with sources for your Systems
Greetings Fellow Forum : I share the work I 've done in this week sometime hopefully will be useful, I still have a function to finish and I hope to help everyone we can be 100 % functional. [img:3c412224]http&#58;//sim1&#46;subirimagenes&#46;net/img/2015/07/25//150725110059511943&#46;jpg[/img:3c412224] It is a generator of colors in RGB , you can create random colors based on a specific range , capture color palettes and stored in a table. I lack the most important and can not find how to do it , capture the color of a pixel out of our application : [img:3c412224]http&#58;//sim1&#46;subirimagenes&#46;net/img/2015/07/25//150725110107511944&#46;jpg[/img:3c412224] Teacher Antonio and fellow forum : turn to you to guide me how to do this function , leave the Exe and sources to try it and I discuss Greetings ... [url:3c412224]http&#58;//www&#46;mediafire&#46;com/download/5x6bjrrr98du15z/ColorPick&#46;zip[/url:3c412224]
( CONTRIBUTION ) PickColor with sources for your Systems
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=31135&p=179945#p179945">viewtopic.php?f=6&t=31135&p=179945#p179945</a><!-- l -->
( CONTRIBUTION ) PickColor with sources for your Systems
[b:2fqwbf2v]I lack the most important and can not find how to do it , capture the color of a pixel out of our application :[/b:2fqwbf2v] I created the DESKTOP-solution You are looking for with ZOOM-factor ( still some extensions will be added ) I can add this extension to my RGB-tools as well. [img:2fqwbf2v]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/RGBColor1&#46;jpg[/img:2fqwbf2v] best regards Uwe <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
( CONTRIBUTION ) PickColor with sources for your Systems
Uwe, Here you have an example (how to manage the mouse): <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=179960#p179960">viewtopic.php?p=179960#p179960</a><!-- l -->
( CONTRIBUTION ) PickColor with sources for your Systems
Antonio, thank You very much. the 1. release for testing Just load and move the cursor over the desktop Still the SAVING and 3 bachground-selection--buttons must be added. [img:3lu6s68j]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/RGBCol3&#46;jpg[/img:3lu6s68j] <!-- m --><a class="postlink" href="http://www.pflegeplus.com/DOWNLOADS/RGBCol3.zip">http://www.pflegeplus.com/DOWNLOADS/RGBCol3.zip</a><!-- m --> best regards Uwe <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
( CONTRIBUTION ) PickColor with sources for your Systems
Uwe: This is exactly what is needed simply great, but I wonder..?? Because they do not share the examples with source code, without wishing to offend anyone i am of the idea that selfishness in this forum should not be present and share what you know, I hope it is not much we compartar the source code. Greetings
( CONTRIBUTION ) PickColor with sources for your Systems
cuatecatl82, because it is not finished, I just added the exe. The final release will be complete with source. Because we want to save the values, we cannot move back to a save-button ( it will change the values ) instead we have to use : [color=#0000FF:26sh6kwf][b:26sh6kwf]oWnd:bKeyDown := {|nKey| if(nKey = 32, SAVE_COL(),) } // SPACE[/b:26sh6kwf][/color:26sh6kwf] [b:26sh6kwf]Do You want to save the values to CLIPBOARD or to a DBF-record ?[/b:26sh6kwf] best regards uwe <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->