topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
probando fivenet | Arturo,
Tienes que proporcionar el código para poder probarlo |
probando fivenet | Hola Antonio,
Un gustos
me refiero a que cuando c0mpilo en ejemplo este
<!-- m --><a class="postlink" href="https://github.com/FiveTechSoft/fivenet">https://github.com/FiveTechSoft/fivenet</a><!-- m -->
ne da el error cuanfdo se corre
Saludos
Arturo |
probando fivenet | Arturo,
Puedes copiar aqui la salida a pantalla que se genera ? gracias |
probando fivenet | Antonio,
Este es el error
[b:23n4kfwg]
Error BASE/1005 No exported variable: TEXT[/b:23n4kfwg]
Saludos |
probando fivenet | solo se muestra eso ?
Que estás compilando y cómo ? |
probando fivenet | Asi es solo he compilado como se da en los bat y el mak
en todos los ejemplos me da ese error
menos en el ejemplo 1 que no muestra nada
he compilado en un equipo antiguito y corre perfectamente
pero al copiar los ejecutablescon los dlls y copiarlos en otro equipo me da el error
saludos |
probando fivenet | Aqui en Windows 10 64 bits funciona correctamente |
probando fivenet | Hola Antonio,
Por fin logre que corra el ejemplo,
pero el tema es el siguiente si puedes ver esto en
<!-- m --><a class="postlink" href="https://github.com/xBimTeam/XbimWindowsUI">https://github.com/xBimTeam/XbimWindowsUI</a><!-- m -->
el un sistema BIM que permite leer varios aspectos de un diseño. hecho en Revit, Archicad, Vectorwork, etc nmediante archivos IFC
El tema es llegar a integrar a Harbour, de manera que se tenga manojo de base de datos, seria un aporte muy grande
Yo ya he estudiados el xbimexplorer, pero el problema es que esta desarrollado en C#, totalmente, eso hace dificultoso su manejo ya que los DLL no es es como un COM desarrollado en C++ y estos deberan ser tratados com NET, pero yo no encuentro la forma de integrar varios dll de C# para un solo sistema
Alguna sugerencia?
Saludos
Arturo |
probando fivenet | Arturo,
Existe una librería en C/C++ que haga el mismo trabajo ? |
probando fivenet | Antonio,
Yo no he encontrado en c/c++
Si alguien tiene alguna referencia podira darnos
Saludos
Arturo |
probando fivenet | Hola Arturo, yo estaré hasta el lunes fuera, pero te anticipo que hay pocas cosas que no se puedan hacer desde Fw con C#, eso sí con algo de trabajo y entendiendo las limitaciones con los tipos de datos que podemos obtener, dependiendo de lo que necesites, y, por supuesto, has de tener ciertos conocimientos de C#.
He mirado en el poco tiempo que he tenido tu link, y no entiendo bien ni el contenido ni tu objetivo, por lo que o bien explicas mejor aquí a qué quieres conectarte y lo que quieres obtener y la información de la que dispones, o me envías un mail ( navarro [dot] cristobal [arroba] gmail [dot] com ) y a partir del lunes podemos tener una conversación sobre el tema. |
probando testodbc | estoy probando testodbc para acceder a una base de datos de access 97 y me sale este error
TdbOdbcdirect:New()
Class:37000
[Microsoft][Controlador ODBC Microsoft Access] Error de sintaxis en la clausula FROM.
On Procedure:_EVAL:Line 0
el dsn, la seleccion de la mdb todo ok, y luego cuando selecciono la tabla sale el error, alguna idea? soy nuevoen esto
salu2
PAco[/img] |
probando testodbc | Francisco,
Muestra el SELECT que has hecho. Pero me da la sensación que el nombre de la tabla la debes de poner entre comillas simples invertidas. Algo así como:
SELECT * FROM `Nombre de Tabla Access` WHERE...
En cualquier caso te aconsejo que vayas directamente a ADO. Está mejor integrado con Access y, ¿por que no? es más fácil de usar.
Tienes dos clases básicas y algunos ejemplos en <!-- m --><a class="postlink" href="http://www.capelblog.com/?p=58">http://www.capelblog.com/?p=58</a><!-- m -->
Saludos,
José Luis Capel
<!-- w --><a class="postlink" href="http://www.capelblog.com">www.capelblog.com</a><!-- w --> |
probando testodbc | Paco yo los defino de estas dos maneras puedes optar por cualquiera.
oTbCom := TdbOdbcDirect():New("SELECT * FROM comanda" , oOdbc)
oTbCom:Open()
oTbArt:=TDbOdbc():New( "articul", oDb,, "articulos", .t., .f. )
o tambien la uso cuando boy poner un listbox
oSql:=oOdbc:query(" select * from empresas")
oSql:open()
oSql:complete()
oSql:gotop()
espero te sirva de lago.
saludos
fernando sandoval ruiz |
probando xharbour 7.1 + ADS | Hola,
otra cosa que me esta pasando al probar XH 99.71 + ADS, por ejemplo el eliminar un registro o aumentar un registro y refrescar un browse es muy lento, hay que esperar para ver la actualizacion, cosa que no pasa con
xH 99.5.
Alguien mas vio este comportamiento y estoy haciendo algo mal
saludos
Marcelo |
probando xharbour 7.1 + ADS | Abre TODOS los archivos de datos al principio del programa y asunto arreglado.
El estar abriendo y cerrando archivos durante la ejecucion del programa ralentiza enormemente el performance del servidor ADS.
Te aconsejo que indexes agregando la clausula FOR NOT DELETED() eso aumenta la velocidad de la actualizacion de datos. |
probando xharbour 7.1 + ADS | Rene,
como siempre tu aconsejaste abro las ADT (en mi caso) al inicio del programa, entoces ese no es el caso, la cosa es que si cambio de version de XH a 0.99.5 la cosa va rapido. Sera que hay algun cambio en el manejo de ADS que no lo estoy tomando en cuenta.
Gracias como siempre
Saludos
Marcelo
[quote="RF":1km9lfjv]Abre TODOS los archivos de datos al principio del programa y asunto arreglado.
El estar abriendo y cerrando archivos durante la ejecucion del programa ralentiza enormemente el performance del servidor ADS.
Te aconsejo que indexes agregando la clausula FOR NOT DELETED() eso aumenta la velocidad de la actualizacion de datos.[/quote:1km9lfjv] |
probando xharbour 7.1 + ADS | Holas,
creo que encontre el por que de la lentitud, la funcion DBCOMMITALL(), es mucho mas lenta en la version 99.71 de xHarbour que en la 99.5, sera que alguien puede puede confirmarme este hecho.
saludos
Marcelo |
probelma de repintado del dialogo | hola a todos:
tengo un problemita:
en un programa de slelecion de un productor para ver su estado de cuenta , estando en el get, con un boton mando a ejecutar otro programa que
desplega el maestro de productores alfabetico, al ejecutar el boton cierro el dialogo del prog. de seleccion .con undoble click selecciono ciero el dialogo y todo bin,
al regresar los datos activo el dialogo del programa de seleccion pero los colores del fondo del dialogo se pintan difrente al original , ya le made refrescar
todo y repintar el dialogo como hago al principio y nada mas no.
totdo esto lo hago ,para que el focus me aparesca otravez en el get de selecion despues de selecionar el productor que si me aparece en el get que quiero.
el avi610() es el programa alfabetico
asi esta el broton que ejecuto:
REDEFINE BTNBMP oBtm3 ID 113 OF oDlg3 RESOURCE "XPGENTE" noborder 2007 font oFont3 ;
ACTION (odlg3:end(),AVI610(CCVENVA,cnombre,fuera3),estabilizar2(),odlg3:refresh(),odlg3:activate(),oDlg3:bPainted = { | hDC | PalBmpDraw( hDC, 0, 0, oBmp:hBitmap ) })
FUNCTION ESTABILIZAR2()
USE (patres+"\aviacum") alias aviacum shared new
set index to c:\temp\aviacum
oGet:refresh()
oLbx:refresh()
oLbx:upstable()
oSay1:refresh()
oBtm3:oJump := oGet
odlg3:refresh()
return (oDlg3) //nil |
probelma de repintado del dialogo | se me olvidaba utilizo fhw8.12 |
probelma de repintado del dialogo | NADA DE NADA , SIGO ESPERANDO SI ALGUIEN HA TENIDO ESTE PROBELMA[size=85:26teir2q] <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> [/size:26teir2q] |
probelma de repintado del dialogo | Es necesario finalizar el dialog odlg3 ??
puedes tentar com
[code=fw:12ibkv6x]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> oBtm3 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">113</span> <span style="color: #0000ff;">OF</span> oDlg3 <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"XPGENTE"</span> noborder <span style="color: #000000;">2007</span> <span style="color: #0000ff;">font</span> oFont3 ;<br /><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span>odlg3:<span style="color: #000000;">Hide</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,AVI610<span style="color: #000000;">(</span>CCVENVA,cnombre,fuera3<span style="color: #000000;">)</span>,estabilizar2<span style="color: #000000;">(</span><span style="color: #000000;">)</span>,oDlg3:<span style="color: #000000;">bPainted</span> = <span style="color: #000000;">{</span> | hDC | PalBmpDraw<span style="color: #000000;">(</span> hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, oBmp:<span style="color: #000000;">hBitmap</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span>, odlg3:<span style="color: #000000;">Show</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> </div>[/code:12ibkv6x] |
probelma de repintado del dialogo | renOmas,
gracias por tu interes en mi problema, ya lo intente como me sugeriste y nada.
seguire busando,
gracias. |
probelmas con windows xp servipack3 | Amigos
Una cosa rara pasa , cuando intento abrir el software FW en windows xp servipack3 no carga.
Pongo windows xp servipack 2 y funcion todo bien
Que podra ser.
Saludos |
probelmas con windows xp servipack3 | hola
Eso si es rarisimo, yo uso service pack 3 y no tengo ningun problema |
problem FWH 18.03 with XHB.COM | Type: C >>>xhb.exe -o"wKP.c" -m -n -p -q -gc0 -I"S:\include" -I"R:\include" -I"R:\include\w32" "wKP.PRG"<<<
xHarbour 1.2.3 Intl. (SimpLex) (Build 20170312)
Copyright 1999-2017, <!-- m --><a class="postlink" href="http://www.xharbour.org">http://www.xharbour.org</a><!-- m --> <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Generating object output to 'wKP.obj'...
Type: C >>>xlink.exe -NOEXPOBJ -MAP -FORCE:MULTIPLE -NOIMPLIB -subsystem:windows -UNMANGLE -LIBPATH:"S:\lib" -LIBPATH:"R:\lib" -LIBPATH:"R:\c_lib" -LIBPATH:"R:\c_lib\win" "wKP.obj" "errorsys.obj" "strtoken.obj" "main.obj" "kpir.obj" "ksiega.obj" "kontrah.obj" "a.obj" "wlasc.obj" "srodki.obj" "sro_dok.obj" "wyposaz.obj" "wyp_dok.obj" "raporty.obj" "firma.obj" "analiza.obj" "mem32.lib" "send32.lib" "png.lib" "r:\c_lib\win\gdi32.lib" "r:\c_lib\win\gdiplus.lib" "xhbzip.lib" "xhbzipdll.lib" "xfw.lib" "FiveHCM.lib" "FiveHMX.lib" "OptG.lib" "xhb.lib" "dbf.lib" "nsx.lib" "ntx.lib" "cdx.lib" "rmdbfcdx.lib" "ct3comm.lib" crt.lib kernel32.lib user32.lib winspool.lib ole32.lib oleaut32.lib odbc32.lib odbccp32.lib uuid.lib wsock32.lib ws2_32.lib wininet.lib advapi32.lib shlwapi.lib msimg32.lib mpr.lib OleDlg.lib version.lib comctl32.lib comdlg32.lib gdi32.lib shell32.lib winmm.lib lz32.lib Netapi32.lib -out:"wKP.EXE"<<<
xLINK: warning: Symbol '(analiza.obj)->_HB_FUN_SPR_NAZWE previously defined at (ksiega.obj)' is multiply defined.
xLINK: warning: Symbol 'S:\lib\Fivehmx.lib(harbour.obj)->_hb_storvnl previously defined at (main.obj)' is multiply defined.
Creating object: wKP.EXP
Creating library: wKP.LIB
xLINK: error: Unresolved external symbol '_HB_FUN_TDBF_DECRYPT referenced from Fivehmx.lib(database.obj)'.
xLINK: error: Unresolved external symbol '_HB_FUN_TDBF_ENCRYPT referenced from Fivehmx.lib(database.obj)'.
xLINK: fatal error: 2 unresolved external(s).
Type: C >>>Couldn't build: wKP.EXE<<<
Type: C >>>TMAKEPROJECT<<<
Type: C >>>TMAKEPROJECT:REFRESH<<<
Type: N >>> 1415<<< |
problem FWH 18.03 with XHB.COM | Kajot,
As a temporary workaround (we are going to send you the fixed libs asap) please add these dummy functions to your main PRG:
function TDBF_ENCRYPT() ; return nil
function TDBF_DECRYPT() ; return nil |
problem FWH 18.03 with XHB.COM | ok, I'm waiting |
problem FWH 18.03 with XHB.COM | Kajot,
Already sent to your email, thanks |
problem FWH 18.03 with XHB.COM | could You send me again this lib
I am using FWH 18.05 and xHbour.com v.2018.06
I got error
xLINK: error: Unresolved external symbol '_HB_FUN_TDBF_DECRYPT referenced from Fivehmx.lib(database.obj)'.
xLINK: error: Unresolved external symbol '_HB_FUN_TDBF_ENCRYPT referenced from Fivehmx.lib(database.obj)'.
xLINK: fatal error: 2 unresolved external(s). |
problem FWH 7.1 with XHB.com | Type: C >>>xhb.exe -o"t.c" -m -n -q -gc0 -I"S:\include" -I"R:\include" -I"R:\include\w32" "t.prg"<<<
xHarbour 1.2.3 Intl. (SimpLex) (Build 20170127)
Copyright 1999-2017, <!-- m --><a class="postlink" href="http://www.xharbour.org">http://www.xharbour.org</a><!-- m --> <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Generating object output to 't.obj'...
Type: C >>>xlink.exe -NOEXPOBJ -MAP -FORCE:MULTIPLE -NOIMPLIB -subsystem:windows -UNMANGLE -LIBPATH:"S:\lib" -LIBPATH:"R:\lib" -LIBPATH:"R:\c_lib" -LIBPATH:"R:\c_lib\win" "t.obj" "libxl.lib" "S:\lib\send32.lib" "S:\lib\mem32.lib" "S:\lib\png.lib" "r:\c_lib\win\gdi32.lib" "r:\c_lib\win\gdiplus.lib" "xhbzip.lib" "xhbzipdll.lib" "R:\c_lib\win\psapi.lib" "xfw.lib" "FiveHCM.lib" "FiveHMX.lib" "OptG.lib" "xhb.lib" "dbf.lib" "nsx.lib" "ntx.lib" "cdx.lib" "rmdbfcdx.lib" "ct3comm.lib" crt.lib kernel32.lib user32.lib winspool.lib ole32.lib oleaut32.lib odbc32.lib odbccp32.lib uuid.lib wsock32.lib ws2_32.lib wininet.lib advapi32.lib shlwapi.lib msimg32.lib mpr.lib OleDlg.lib version.lib comctl32.lib comdlg32.lib gdi32.lib shell32.lib winmm.lib lz32.lib Netapi32.lib -out:"t.exe"<<<
Creating object: t.EXP
Creating library: t.LIB
xLINK: error: Unresolved external symbol '_RegisterResource referenced from FiveHCM.lib(DIB.obj)'.
xLINK: error: Unresolved external symbol '_HB_FUN_MNUCOLORS referenced from Fivehmx.lib(memoedit.obj)'.
xLINK: error: Unresolved external symbol '_DelResource referenced from FiveHCM.lib(DELOBJEC.obj)'.
xLINK: fatal error: 3 unresolved external(s).
Type: C >>>Couldn't build: t.exe<<<
Type: C >>>TMAKEPROJECT<<<
Type: C >>>TMAKEPROJECT:REFRESH<<<
Type: N >>> 1415<<< |
problem FWH 7.1 with XHB.com | FWH 17.1 |
problem FWH 7.1 with XHB.com | I have just tried FWH 17.01 with xHB.com and it is working fine
Have you rebuilt the FWH library ? Please check for errors.
Try it again with standard FWH libs |
problem FWH 7.1 with XHB.com | Could You look at ma file to rebuild FWH library
I send it to You via mail. |
problem FWH 7.1 with XHB.com | You forgot to include checkres.prg |
problem FWH 7.1 with XHB.com | Thank You
yet this
Type: C >>>xlink.exe -NOEXPOBJ -MAP -FORCE:MULTIPLE -NOIMPLIB -subsystem:windows -UNMANGLE -LIBPATH:"S:\lib" -LIBPATH:"R:\lib" -LIBPATH:"R:\c_lib" -LIBPATH:"R:\c_lib\win" "t.obj" "S:\lib\send32.lib" "S:\lib\mem32.lib" "S:\lib\png.lib" "r:\c_lib\win\gdi32.lib" "r:\c_lib\win\gdiplus.lib" "xhbzip.lib" "xhbzipdll.lib" "R:\c_lib\win\psapi.lib" "xfw.lib" "FiveHCM.lib" "FiveHMX.lib" "OptG.lib" "xhb.lib" "dbf.lib" "nsx.lib" "ntx.lib" "cdx.lib" "rmdbfcdx.lib" "ct3comm.lib" crt.lib kernel32.lib user32.lib winspool.lib ole32.lib oleaut32.lib odbc32.lib odbccp32.lib uuid.lib wsock32.lib ws2_32.lib wininet.lib advapi32.lib shlwapi.lib msimg32.lib mpr.lib OleDlg.lib version.lib comctl32.lib comdlg32.lib gdi32.lib shell32.lib winmm.lib lz32.lib Netapi32.lib -out:"t.exe"<<<
Creating object: t.EXP
Creating library: t.LIB
xLINK: error: Unresolved external symbol '_HB_FUN_MNUCOLORS referenced from Fivehmx.lib(memoedit.obj)'.
xLINK: fatal error: 1 unresolved external(s).
Type: C >>>Couldn't build: t.exe<<<
Type: C >>>TMAKEPROJECT<<<
Type: C >>>TMAKEPROJECT:REFRESH<<<
Type: N >>> 1415<<< |
problem FWH 7.1 with XHB.com | thanks I founded in triched5.prg |
problem FWH 7.1 with XHB.com | very good |
problem after update | Hi Antonio,
i updated this morning to FWH version 7.05.
When trying to compile and run your sample winpop3.prg i get the following error window:[quote:1fp3gkg2]---------------------------
Unrecoverable error 9000:
---------------------------
'ACTIVEX.PRG' was compiled by older version, PCODE version 9 is no longer supported - Please recompile.[/quote:1fp3gkg2]
I use xHarbour 0.99.70 and i'm not aware of any ActiveX call in this sample.
What could be wrong?
Best regards,
Detlef |
problem after update | btw,
this error appears withe every sample i try to build and start. |
problem after update | this is: the pcode of the .prg library is diferent of pcode of your source application.
you have two option:
1.-You have recompile all source (.prg) of fivewin for harbour library with the current xharbour compiler. (recreate the fwh library)
or
2.-You have use the xharbour compiler version with building the fivewin harbour library. (change the xharbour compiler what use)
sorry for my very terrible english
the spanish is my native language.
salu2
carlos vargas |
problem after update | Detlef,
Please use the xHarbour build that we provide with FWH, thanks |
problem after update | Carlos,
thank you very much for your advices.
I understand you well and i'll try them.
Best regards,
Detlef |
problem after update | Antonio,
[quote="Antonio Linares":23m795y2]Detlef,
Please use the xHarbour build that we provide with FWH, thanks[/quote:23m795y2]
After purchasing the FWH upgrade i downloaded first the FWH from your site and after i downloaded the xHarbour binaries by using the link at your site.
Did i make something wrong?
Regards,
Detlef |
problem after update | Detlef
If you are using borland compiler, the downloads are ok
If you are using xharbour.com (xbuild), you need to download the RC12 from xharbour.com web site
Hth
Richard |
problem after update | Detlef,
Please check that you don't have another xharbour build on your computer and that you are using the right one. Check your used paths |
problem after update | Dear friends,
i finally got everything working.
After rebuilding the FiveWin lib the job was done.
Is there a make script or batch file somewhere to build the fwh libraries?
For the moment i'm using a xMate project.
But with every new FWH version new files have to be added to the library.
Thanks for all your help.
Detlef |
problem after update | Detlef,
FWH works ok with the FiveTech provided xHarbour build.
Were you using a most recent xHarbour CVS files ? |
problem after update | Antonio,
i don't use any CSV files.
I only downloaded the recent FWH and followed the link:
XHARBOUR (Borland) - [url:shpcee2a]http://fivetechsoft.com/files/xharbour.exe[/url:shpcee2a]
on your download page.
Regards,
Detlef |
problem after update | Detlef,
We just downloaded FWH and xHarbour from our FTP, installed it a on a computer and it properly built the samples without any error
Please try to build samples\tutor02.prg or samples\webexp.prg
Are you using any library that may be compiled with a previous xHarbour build ? |
problem after update | Antonio,
i did not download xHarbour and FWH from your FTP server.
Anyhow, now it's working after rebuilding my FWH libs.
I'd just like to know if there is a link script or make file for building the FWH libraries.
Regards,
Detlef |
problem after update | Detlef,
The download address that we provided you is our FTP server
You may use this batch file to rebuild the library (PRGs):
for %%f in (*.prg) do c:\harbour\bin\harbour %%f /n /ic:\fwh\include;c:\harbour\include
for %%f in (*.c) do c:\bcc55\bin\bcc32 -c -Ic:\bcc55\include;c:\harbour\include %%f
for %%f in (*.obj) do c:\bcc55\bin\tlib fiveh.lib -+ %%f /0 /P32,, |
problem after update | Thanks, Antonio |
problem coloring group box | The title on group boxes ok in windows xp style but on windows classic the group box does not color. Any thoughts. |
problem coloring group box | Harvey,
Please provide a small PRg to reproduce it, and some screenshots if possible, thanks
What FWH version are you using ? |
problem dialog + title | Hello Antonio,
if we have a Dialog with a Title which has spaces at the beginning and at the end the program breaks without an error message.
Best regards,
Otto
[code=fw:283n4yc9]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, oBtn, oGet, cName := space<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">5</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">15</span>, <span style="color: #000000;">40</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">" A Dialog Box"</span> + space<span style="color: #000000;">(</span><span style="color: #000000;">100</span><span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cName <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> @ <span style="color: #000000;">4</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Aceptar"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>,<span style="color: #000000;">12</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oBtn:<span style="color: #000000;">oJump</span> := oGet, oGet:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">4</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Cancelar"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>,<span style="color: #000000;">12</span> ;<br /> <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:283n4yc9] |
problem dialog + title | Hello Mr.Otto
Please don't use length of cTitle more than 114 char
yours code is " A Dialog Box" + space(100) = len(115)
please try this
[code=fw:2dyfynck]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> cTitle := spac<span style="color: #000000;">(</span><span style="color: #000000;">114</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, oBtn, oGet, cName := space<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">5</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">15</span>, <span style="color: #000000;">40</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">" A Dialog Box"</span> + space<span style="color: #000000;">(</span><span style="color: #000000;">100</span><span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cName <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> @ <span style="color: #000000;">4</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Aceptar"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>,<span style="color: #000000;">12</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oBtn:<span style="color: #000000;">oJump</span> := oGet, oGet:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">4</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Cancelar"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>,<span style="color: #000000;">12</span> ;<br /> <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:2dyfynck]
regards
Fafi |
problem dialog + title | Hello,
thank you. The problem is that for example you select the title from a dbf-file and a user has spaces then the program errors out.
As there is no error message it takes long to find out why.
I think this should be resolved inside the class.
Best regards,
Otto |
problem dialog + title | Otto
I understand your frustration .. I found this problem myself to be frustrating. I included in the dialog title my SQL queries ( debugging tool ) so I would know how my data was collected... some SQL queries were short .. some longer and I could not figure out why some dialogs just abruptly quit and some did not.
Through trial and error I realized it was the character length of my SQL queries being displayed on the Title bar that caused the problem so I eliminated them and learned not to use long Titles on dialogs ..
Just one of those things I categorize as a 'disturbance in the Force' <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Rick Lipkin |
problem dialog + title | [quote="Otto":3lta16x6]Hello,
thank you. The problem is that for example you select the title from a dbf-file and a user has spaces then the program errors out.
As there is no error message it takes long to find out why.
I think this should be resolved inside the class.
Best regards,
Otto[/quote:3lta16x6]
<!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
then use cTitle := alltrim(mydbf->cfield)
and left(cTitle,114)
DEFINE DIALOG oDlg FROM 5, 5 TO 15, 40 TITLE cTitle
<!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> |
problem dialog + title | We are going to investigate why this happens, thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
problem in Mdi | when I size the child window I not see the icons od sizes ( at right)
How it is possible ?
[img:1p1l1yd4]https://i.postimg.cc/7hwBBjpb/kk.png[/img:1p1l1yd4]
there is an error on menu class , I allready notice this error many years ago
on init I see it
[img:1p1l1yd4]https://i.postimg.cc/FFYq6Qdk/yes.png[/img:1p1l1yd4]
then it is hided |
problem in Mdi | Dear Silvio,
I just tested it using samples\FIveDBU.prg and works fine
Please test samples\FiveDBU.prg and let me know if you get the same error with it
many thanks |
problem in Mdi | [quote="Antonio Linares":3bpxv80c]Dear Silvio,
I just tested it using samples\FIveDBU.prg and works fine
Please test samples\FiveDBU.prg and let me know if you get the same error with it
many thanks[/quote:3bpxv80c]
Fdbu not have Menuitem.....Help
then I cannot compile fwdbu because I hace these errors
[code=fw:3bpxv80c]<div class="fw" id="{CB}" style="font-family: monospace;">Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_list_tables'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_list_dbs'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_field_count'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_affected_rows'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_list_fields'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_fetch_field'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_hex_string'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_real_query'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_use_result'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_fetch_fields'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_real_escape_string'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_escape_string'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_store_result'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_data_seek'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_num_fields'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_fetch_row'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_fetch_lengths'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_stmt_bind_param'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_set_server_option'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_autocommit'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_insert_id'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_get_client_info'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_character_set_name'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_get_server_info'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_ping'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_select_db'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_errno'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_error'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_info'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_next_result'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_free_result'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_close'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_server_end'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_num_rows'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_stmt_init'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_stmt_prepare'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_stmt_execute'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'mysql_stmt_close'</span> referenced <span style="color: #0000ff;">from</span> C:\WORK\FWH\LIB\FIVEH.LIB|FWMARIA<br />Error: <span style="color: #000000;">Unable</span> <span style="color: #0000ff;">to</span> perform link<br /> </div>[/code:3bpxv80c]
[1]:iLink32.Exe -Gn -aa -Tpe -s -v @fivedbu.bcl
Turbo Incremental Link 6.80 Copyright (c) 1997-2017 Embarcadero Technologies, Inc.
Error: 'C:\WORK\FWH\LIB\LIBMARIADB32.LIB' contains invalid OMF record, type 0x21 (possibly COFF) |
problem in Mdi | [quote="Antonio Linares":1sttqxe9]Dear Silvio,
> Error: 'C:\WORK\FWH\LIB\LIBMARIADB32.LIB' contains invalid OMF record, type 0x21 (possibly COFF)
You are using a not compatible lib with BCC[/quote:1sttqxe9]
wich libs I must link with fwDbu.prg ?
If I link libmariadb.lib it is compiled but then I have this
[img:1sttqxe9]https://i.postimg.cc/YS7YM6rW/f.png[/img:1sttqxe9]
and then an hourglass that spins endlessly
wich libs I must link can you draw on this image with an arrow please (I use Harbour)
[img:1sttqxe9]https://i.postimg.cc/dt7xyY89/jj.png[/img:1sttqxe9] |
problem in Mdi | Dear Silvio,
> Error: 'C:\WORK\FWH\LIB\LIBMARIADB32.LIB' contains invalid OMF record, type 0x21 (possibly COFF)
You are using a not compatible lib with BCC |
problem in Mdi | Dear Silvio,
Please go to FWH\samples, then do:
buildh.bat fivedbu
thats all <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
problem in Mdi | [quote="Antonio Linares":1rpg7qhk]Dear Silvio,
Please go to FWH\samples, then do:
buildh.bat fivedbu
thats all <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:1rpg7qhk]
compiled ok
try to insert at menu "View" this
MENUITEM "View" [b:1rpg7qhk]HELP[/b:1rpg7qhk]
and the make maximized a window child
[img:1rpg7qhk]https://i.postimg.cc/zDxkLmsG/ff.png[/img:1rpg7qhk]
[b:1rpg7qhk]and U'll see the error[/b:1rpg7qhk] |
problem in Mdi | Dear Silvio,
I get this:
[img:284tvhmm]https://github.com/FiveTechSoft/screenshots/blob/master/mdi_silvio.jpg?raw=true[/img:284tvhmm] |
problem in Mdi | [quote="Antonio Linares":2yhji3i1]Dear Silvio,
I get this:
[img:2yhji3i1]https://github.com/FiveTechSoft/screenshots/blob/master/mdi_silvio.jpg?raw=true[/img:2yhji3i1][/quote:2yhji3i1]
I have [b:2yhji3i1]December 2021 to March 2022 [/b:2yhji3i1] fwh release here not run see the video please
[img:2yhji3i1]https://i.postimg.cc/xCx1jzKP/g.gif[/img:2yhji3i1]
to close Wndchild I must close the application because I not see the size commands at right |
problem in Mdi | Dear Silvio,
First is shown, then it does not shows
I guess it must be related to having the menuitems at right |
problem in Mdi | [quote="Antonio Linares":1c9h763i]Dear Silvio,
First is shown, then it does not shows
I guess it must be related to having the menuitems at right[/quote:1c9h763i]
I had already said this thing to Cristobal for two years I think, and before the error did not
Generally I create a Help menu (with other procedures) and insert it on the right but having this error I remove the "Help" option Cristobal had told me to do so momentarily and then he would have corrected the error but I think it was never corrected . |
problem last harbour SVN and fivewin 8.03 with class TBTNBMP | To AntonioCalled from TBTNBMP:MOUSEMOVE(0)Called from TWINDOW:HANDLEEVENT(0)Called from TCONTROL:HANDLEEVENT(0)Called from TBTNBMP:HANDLEEVENT(0)Called from _FWH(0) in .\source\classes\WINDOW.PRGCalled from DIALOGBOXINDIRECT(0)Called from TDIALOG:ACTIVATE(0)Called from MSGDATE(102) in msgdate.prgCalled from SAISMA(39) in hotelma.prgCalled from (b)EVAL(45)Called from TSBUTTON:LBUTTONDOWN(1253)Called from TWINDOW:HANDLEEVENT(0)Called from TCONTROL:HANDLEEVENT(0)Called from TSBUTTON:HANDLEEVENT(1153)Called from _FWH(0) in .\source\classes\WINDOW.PRGCalled from WINRUN(0)Called from TMDIFRAME:ACTIVATE(0)Called from MAIN(66) in hotel.PRG |
problem last harbour SVN and fivewin 8.03 with class TBTNBMP | Pat,What error is it ? Thats the error calls stack only.Please post the error description too, thanks |
problem last harbour SVN and fivewin 8.03 with class TBTNBMP | Application Internal Error - C:\DEV\main\hotel.ExeTerminated at: 2008.11.03 09:46:33Unrecoverable error 6005: Exception error: Exception Code:C0000005 Exception Address:0046E57E EAX:00B44358 EBX:005D7E54 ECX:00000001 EDX:011B4ED8 ESI:0059775C EDI:00000145 EBP:0012E800 CS:EIP:001B:0046E57E SS:ESP:0023:0012E6FC DS:0023 ES:0023 FS:003B GS:0000 Flags:00010246 CS:EIP: F6 41 10 80 75 22 8B 43 04 8B 50 FC 8B 43 04 F6 SS:ESP: 00000000 00000000 004FB098 005D7E54 00F76348 010909E0 01090988 0012E740 00000068 00B4C548 0012E740 000000D5 00B4C548 0012E74C 0047A045 005D7E64 C stack: EIP: EBP: Frame: OldEBP, RetAddr, Params... 0046E57E 0012E800 0012E810 0042B534 0059904A 00596C8C 0042B534 0012E810 0012E830 004729D8 00000015 00000092 0000016E 00000002 010B001D 00000000 004729D8 0012E830 0012E83C 00472DBD 011B0003 00472DBD 0012E83C 0012E864 0041DBFF 00000003 000000EF 00000000 005B3838 00047E54 0012E884 00472AA6 00B4C5C0 0041DBFF 0012E864 0012E884 00472AE5 005D7E54 0000008C 0000016E 00000002 00F3000A 00000000 00472AE5 0012E884 0012E994 0046CD3F 00000003 00000037 00000000 00597A7C 01090910 7E3A3C0A 00861BE8 005D81D8 0046CD3F 0012E994 0012E9A4 0042CA1C 005B66B7 005B2738 0042CA1C 0012E9A4 0012E9C4 00472AE5 005D7E54 00000086 0000016E 00000002 00F30011 00000000 00472AE5 0012E9C4 0012EAD4 0046CD3F 00000003 0000002D 00000000 005BF8F4 7E3A8EAB 7E3A8EEC 00861BE8 00000020 0046CD3F 0012EAD4 0012EAE4 0042B57C 00599D13 00596C8C 0042B57C 0012EAE4 0012EB04 00472AE5 005D7E54 0000007E 0000016E 00000002 00F3001D 00000000 00472AE5 0012EB04 0012EC14 0046CD3F 00000003 00000000 00000015 005BF8E4 0012EB6C 63001312 000101AB 00000006 0046CD3F 0012EC14 0012EC24 0042D95C 005C5D5E 005BD844 0042D95C 0012EC24 0012EC44 00472A45 00000200 00000078 00000159 00000002 00000000 00000000 00472A45 0012EC44 0012EC5C 004132B2 00000005 0012ECE4 00419ED0 00040356 004132B2 0012EC5C 0012EC7C 00419EF0 00040356 00000200 00000000 00000015 00000010 00000000 00419EF0 0012EC7C 0012ECA8 7E398734 00040356 00000200 00000000 00000015 00419ED0 DCBAABCD 00000000 0012ECE4 7E398734 0012ECA8 0012ED10 7E398816 00419ED0 00040356 00000200 00000000 00000015 0012EDC8 0012EDC0 00862490 7E398816 0012ED10 0012ED70 7E3989CD 00000000 00419ED0 00040356 00000200 00000000 00000015 008624A4 00000001 7E3989CD 0012ED70 0012ED80 7E398A10 0012EDC0 00000000Called from TBTNBMP:MOUSEMOVE(0)Called from TWINDOW:HANDLEEVENT(0)Called from TCONTROL:HANDLEEVENT(0)Called from TBTNBMP:HANDLEEVENT(0)Called from _FWH(0) in .\source\classes\WINDOW.PRGCalled from DIALOGBOXINDIRECT(0)Called from TDIALOG:ACTIVATE(0)Called from MSGDATE(102) in msgdate.prgCalled from SAISMA(39) in hotelma.prgCalled from (b)EVAL(45)Called from TSBUTTON:LBUTTONDOWN(1253)Called from TWINDOW:HANDLEEVENT(0)Called from TCONTROL:HANDLEEVENT(0)Called from TSBUTTON:HANDLEEVENT(1153)Called from _FWH(0) in .\source\classes\WINDOW.PRGCalled from WINRUN(0)Called from TMDIFRAME:ACTIVATE(0) |
problem last harbour SVN and fivewin 8.03 with class TBTNBMP | Pat,Please link this file before FiveHC.lib or replace it inside FiveHC.lib:<!-- m --><a class="postlink" href="http://www.mediafire.com/?sharekey=74afd2ac83e7ba7bab1eab3e9fa335caeed4c47a516548a8">http://www.mediafire.com/?sharekey=74af ... 7a516548a8</a><!-- m --> |
problem last harbour SVN and fivewin 8.03 with class TBTNBMP | Thank you Antonio,It works nowPatrick |
problem oWnd | in a method there is a command
if GetClassName( GetParent( Self:hWnd ) ) != "TBAR"
oWnd = oWndFromhWnd( GetParent( Self:hWnd ) )
else
endif
How I can write to say that I must use this control into a dialog ? |
problem oWnd | if Upper( oWnd:ClassName() ) == "TDIALOG"
... |
problem oWnd | thanks Antonio |
problem odbc | good morning,
In my app I use todbc(),
it worked fine until yesterday, but today get this error:
===========
Path and name: C:\Saplink\saplnk.exe (32 bits)
Size: 2,353,152 bytes
Compiler version: xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 9421)
FiveWin Version: FWHX 11.12
Windows version: 5.1, Build 2600 Service Pack 3
Time from start: 0 hours 0 mins 15 secs
Error occurred at: 14-02-2013, 10:11:45
[b:2eeg18dv] Error description: Error DBCMD/1010 Illegal characters in alias: TEMP-1608431171[/b:2eeg18dv]
Stack Calls
===========
Called from: => DBUSEAREA( 0 )
Called from: .\source\classes\TDBODBCD.PRG => TDBODBCDIRECT:OPEN( 312 )
[b:2eeg18dv] Called from: utile1.prg => UTILE1V1( 93 )[/b:2eeg18dv]
Called from: utile1.prg => UTILE1( 65 )
Called from: saplnk.prg => (b)BUILDMENU( 120 )
Called from: .\source\classes\MENU.PRG => TMENU:COMMAND( 461 )
Called from: .\source\classes\WINDOW.PRG => TWINDOW:COMMAND( 1033 )
Called from: => TWINDOW:HANDLEEVENT( 0 )
Called from: .\source\classes\WINDOW.PRG => _FWH( 3159 )
Called from: => WINRUN( 0 )
Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE( 980 )
Called from: saplnk.prg => MAIN( 74 )
this is the source
oOdbc := TOdbc():New( cDSN, cName, cPass )
If !oOdbc:lSuccess
oOdbc:ShowErrorList("ODBC session not successfully initialized, aborting...")
oOdbc:End()
return nil
Endif
oDbf := oOdbc:Query( "SELECT T0.field1 'CODICE', T0.field2 'DESCRI' FROM CLIENTI T0")
if oOdbc:IsError()
oOdbc:ShowErrorList()
oOdbc:aErrors := {}
l1 := .f.
endif
oDbf:Open() <--------- Line 93 in UTILE1V1
==============
can someone help me?
thanks |
problem odbc | what happens?
if I put the tdbodbcd.prg source file in my directory and compile the tdbodbcd.obj file in my .exe then it's all ok!
why? |
problem of bLClicked in ribbon 'ADD BUTTON' | The below instruction works with 'BUTTONBMP' but with 'ADD BUTTON' in ribbonbar doesn't work. MsgInfo() is not visualized.
DEFINE CURSOR oCursor HAND
@ 1, 1 ADD BUTTONBMP oBtn prompt "prova" OF oGr BITMAP "info.bmp" SIZE 50, 80 TOP;
ACTION( oBtn:Capture(), oBtn:oCursor := oCursor,;
oBtn:bLClicked := { | nRow, nCol | MsgInfo("!"), ReleaseCapture(), oBtn:oCursor := NIL, oBtn:bLClicked := NIL, 0 } )
any suggestions ?
marzio |
problem of bLClicked in ribbon 'ADD BUTTON' | This example code below works fine.
when i click 'help' button the cursor changes and if i click in a point of the window then the MsgInfo() is visualized.
[code=fw:257o64pe]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /> <span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Ribbon.ch"</span><br /> <br /> <span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">LOCAL</span> oWnd, oCursor, oRBar, oGr, oBtn<br /> <br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">PIXEL</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">CURSOR</span> oCursor HAND<br /> <span style="color: #0000ff;">DEFINE</span> RIBBONBAR oRBar <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">" help "</span>, <span style="color: #ff0000;">" Extra "</span> HEIGHT <span style="color: #000000;">157</span> TOPMARGIN <span style="color: #000000;">25</span><br /> ADD GROUP oGr RIBBON oRBar <span style="color: #0000ff;">TO</span> OPTION <span style="color: #000000;">1</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"prova"</span> WIDTH <span style="color: #000000;">420</span><br /> @ <span style="color: #000000;">5</span>, <span style="color: #000000;">6</span> BUTTONBMP oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"HELP"</span> <span style="color: #0000ff;">OF</span> oGr BITMAP <span style="color: #ff0000;">".<span style="color: #000000;">\a</span>iuto.bmp"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">PIXEL</span> ;<br /> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">(</span> oBtn:<span style="color: #000000;">Capture</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBtn:<span style="color: #000000;">oCursor</span> := oCursor,;<br /> oBtn:<span style="color: #000000;">bLClicked</span> := <span style="color: #000000;">{</span> | nRow, nCol | <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"!"</span><span style="color: #000000;">)</span>, ReleaseCapture<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBtn:<span style="color: #000000;">oCursor</span> := <span style="color: #00C800;">NIL</span>, oBtn:<span style="color: #000000;">bLClicked</span> := <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span><br /> <br /> <span style="color: #00C800;">Return</span><span style="color: #000000;">(</span> <span style="color: #00C800;">NIL</span> <span style="color: #000000;">)</span></div>[/code:257o64pe]
This example code below doesn 't work.
when i click 'help' button the cursor changes and if i click in a point of the window then the MsgInfo() is NOT visualized.
[code=fw:257o64pe]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /> <span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Ribbon.ch"</span><br /> <br /> <span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">LOCAL</span> oWnd, oCursor, oRBar, oGr, oBtn<br /> <br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">PIXEL</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">CURSOR</span> oCursor HAND<br /> <span style="color: #0000ff;">DEFINE</span> RIBBONBAR oRBar <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">" help "</span>, <span style="color: #ff0000;">" Extra "</span> HEIGHT <span style="color: #000000;">157</span> TOPMARGIN <span style="color: #000000;">25</span><br /> ADD GROUP oGr RIBBON oRBar <span style="color: #0000ff;">TO</span> OPTION <span style="color: #000000;">1</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"prova"</span> WIDTH <span style="color: #000000;">420</span><br /> @ <span style="color: #000000;">5</span>, <span style="color: #000000;">6</span> ADD <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"HELP"</span> GROUP oGr BITMAP <span style="color: #ff0000;">".<span style="color: #000000;">\a</span>iuto.bmp"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">PIXEL</span> ;<br /> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">(</span> oBtn:<span style="color: #000000;">Capture</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBtn:<span style="color: #000000;">oCursor</span> := oCursor,;<br /> oBtn:<span style="color: #000000;">bLClicked</span> := <span style="color: #000000;">{</span> | nRow, nCol | <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"!"</span><span style="color: #000000;">)</span>, ReleaseCapture<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBtn:<span style="color: #000000;">oCursor</span> := <span style="color: #00C800;">NIL</span>, oBtn:<span style="color: #000000;">bLClicked</span> := <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span><br /> <br /> <span style="color: #00C800;">Return</span><span style="color: #000000;">(</span> <span style="color: #00C800;">NIL</span> <span style="color: #000000;">)</span></div>[/code:257o64pe]
is there something wrong in 'ADD BUTTON' of ribbonbar?
thanks, marzio |
problem of bLClicked in ribbon 'ADD BUTTON' | This code is working fine:
@ 5, 6 ADD BUTTON oBtn PROMPT "HELP" GROUP oGr BITMAP ".\aiuto.bmp" SIZE 80, 50 ;
ACTION MsgInfo( "click" )
I don't understand what you are trying to do |
problem of bLClicked in ribbon 'ADD BUTTON' | Antonio,
what do you think about this behavior in the above examples ?
can you verify if something is lacking in 'ADD BUTTON' code ?
thanks
marzio |
problem of bLClicked in ribbon 'ADD BUTTON' | hi Antonio,
i use it for obtain help for each column of a database open with tcbrowse.
i click on the help button, the cursor changes its form,
then i click on the dbase column that opens a MsgInfo() with different text for each column. |
problem of bLClicked in ribbon 'ADD BUTTON' | i have resolved for 'ADD BUTTON' of 'RIBBONBAR'
substituting
oBtnAiuto:bLClicked
with
oBtnAiuto:bLButtonUp
now the code below works fine:
[code=fw:rr5nr2tp]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /> <span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Ribbon.ch"</span><br /> <br /> <span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">LOCAL</span> oWnd, oCursor, oRBar, oGr, oBtn<br /> <br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">PIXEL</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">CURSOR</span> oCursor HAND<br /> <span style="color: #0000ff;">DEFINE</span> RIBBONBAR oRBar <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">" help "</span>, <span style="color: #ff0000;">" Extra "</span> HEIGHT <span style="color: #000000;">157</span> TOPMARGIN <span style="color: #000000;">25</span><br /> ADD GROUP oGr RIBBON oRBar <span style="color: #0000ff;">TO</span> OPTION <span style="color: #000000;">1</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"prova"</span> WIDTH <span style="color: #000000;">420</span><br /> @ <span style="color: #000000;">5</span>, <span style="color: #000000;">6</span> ADD <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"HELP"</span> GROUP oGr BITMAP <span style="color: #ff0000;">".<span style="color: #000000;">\a</span>iuto.bmp"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">PIXEL</span> ;<br /> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">(</span> oBtn:<span style="color: #000000;">Capture</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBtn:<span style="color: #000000;">oCursor</span> := oCursor,;<br /> oBtn:<span style="color: #000000;">bLButtonUp</span> := <span style="color: #000000;">{</span> | nRow, nCol | <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"!"</span><span style="color: #000000;">)</span>, ReleaseCapture<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBtn:<span style="color: #000000;">oCursor</span> := <span style="color: #00C800;">NIL</span>, oBtn:<span style="color: #000000;">bLButtonUp</span> := <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span><br /> <br /> <span style="color: #00C800;">Return</span><span style="color: #000000;">(</span> <span style="color: #00C800;">NIL</span> <span style="color: #000000;">)</span></div>[/code:rr5nr2tp]
thanks for the attention
marzio |
problem of bLClicked in ribbon 'ADD BUTTON' | very good |
problem painting xBrowse | Hello,
There's a painting problem with xBrowse. It doesn't paint the whole width at once, but first it paints up to the middle of the screen and then it widens.
This is a sample:
[code=fw:2mdyugo8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><br /><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">local</span> oWnd<br /><span style="color: #00C800;">local</span> oGrid<br /><span style="color: #00C800;">local</span> oBtn, oGet1, oGet2<br /><br /><br /><br /><br /> USE C:\FWH\SAMPLES\CUSTOMER <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"BASE"</span> <span style="color: #00C800;">NEW</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /> oWnd:<span style="color: #000000;">nHeight</span> := ScreenHeight<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <br /><br /> @ <span style="color: #000000;">10</span>, <span style="color: #000000;">151</span> <span style="color: #0000ff;">XBROWSE</span> oGrid ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-1</span>, <span style="color: #000000;">-1</span> <span style="color: #0000ff;">PIXEL</span> ;<br /> <span style="color: #0000ff;">OF</span> oWnd ;<br /> DATASOURCE <span style="color: #ff0000;">"BASE"</span> ;<br /> AUTOSORT ;<br /> <span style="color: #0000ff;">AUTOCOLS</span> ;<br /> CELL LINES NOBORDER<br /><br /><br /><br /><br /><br /> oGrid:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><br /> @ <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Filtro"</span> <span style="color: #0000ff;">OF</span> oPanel ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> alert<span style="color: #000000;">(</span>oGrid:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span><br /><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:2mdyugo8]
Thank you very much. |
problem painting xBrowse | Prueba asi:
[code=fw:2ou6mfer]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><br /><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">local</span> oWnd<br /><span style="color: #00C800;">local</span> oGrid<br /><span style="color: #00C800;">local</span> oBtn, oGet1, oGet2<br /><br /><br /><br /><br /> USE C:\FWH\SAMPLES\CUSTOMER <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"BASE"</span> <span style="color: #00C800;">NEW</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /> oWnd:<span style="color: #000000;">nWidth</span> := ScreenWidth<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oWnd:<span style="color: #000000;">nHeight</span> := ScreenHeight<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// <<-----</span><br /><br /> <br /><br /> @ <span style="color: #000000;">10</span>, <span style="color: #000000;">151</span> <span style="color: #0000ff;">XBROWSE</span> oGrid ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-1</span>, <span style="color: #000000;">-1</span> <span style="color: #0000ff;">PIXEL</span> ;<br /> <span style="color: #0000ff;">OF</span> oWnd ;<br /> DATASOURCE <span style="color: #ff0000;">"BASE"</span> ;<br /> AUTOSORT ;<br /> <span style="color: #0000ff;">AUTOCOLS</span> ;<br /> CELL LINES NOBORDER<br /><br /><br /><br /><br /><br /> oGrid:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><br /> @ <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Filtro"</span> <span style="color: #0000ff;">OF</span> oWnd ; <span style="color: #B900B9;">// <<-----</span><br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> alert<span style="color: #000000;">(</span>oGrid:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span> <br /><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:2ou6mfer]
Saludos. |
problem painting xBrowse | Thank you.
Now it happens with the lower half of the xBrowse, including the horizontal scroll bar. |
problem painting xBrowse | Up |
problem to check xbrowse | to select a record on xbrowse I use a field call "select" of 1 character
when I wish select a record I change the field select with a replace
sample :
Replace MV->SELECT with "x"
OR to deselect I use another replace
sample :
Replace MV->SELECT with " "
it run ok but I see the operation is too slow
how I can make to make it fast ? |
problem to check xbrowse | You could create an array of record numbers or primary keys and then setup the "Checked" column something like this:
oCol:AddResource( FWBmpOn() )
oCol:AddResource( FWBmpOff() )
oCol:bBmpData := { || iif(ascan(aTagged,Invoice->invno) > 0, 1, 2) }
Randal |
problem to check xbrowse | Randal I use dbf no array |
problem to check xbrowse | Silvio,
the way I'm selecting a record
i need a three-way status and using a numeric field instead of a characterfield with "" and "X"
values are
0 = nothing
1 = Yes
2 = No
a right mouseclick scrolls the status vom 0 to 2 like 0, 1, 2, 0, 1,2
I never use REPLACE because it is known, to be slow
I added a numeric field < CHECK N 1.0 > to customer.dbf for a test
[img:15n409w6]http://www.pflegeplus.com/IMAGES/Select1.jpg[/img:15n409w6]
[b:15n409w6]a full sample [/b:15n409w6]
Download :
<!-- m --><a class="postlink" href="http://www.pflegeplus.com/DOWNLOADS/Select1.zip">http://www.pflegeplus.com/DOWNLOADS/Select1.zip</a><!-- m -->
best regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
problem to erase rows of xbrowse - RESOLVED | I must erase all rows of a xbrowse ( array) but not the first rows I made
For n=1 to Len(oBrowse:aArrayData)
IF ! n = 1 // oBrowse:nArrayAt = 1
ADel( oBrowse:aArrayData, n, .t. )
oBrowse:MakeTotals()
oBrowse:Refresh()
CalcoloTotali2(oBrowse,aGet,@nSconto,@nSubtotale,@nTotale)
endif
next
[b:21r2xlgq]but erase only the last row[/b:21r2xlgq]
how I can resolve i t? |
problem to erase rows of xbrowse - RESOLVED | [quote="Silvio.Falconi":39n5452v]I must erase all rows of a xbrowse ( array) but not the first rows I made
For n=1 to Len(oBrowse:aArrayData)
IF ! n = 1 // oBrowse:nArrayAt = 1
ADel( oBrowse:aArrayData, n, .t. )
oBrowse:MakeTotals()
oBrowse:Refresh()
CalcoloTotali2(oBrowse,aGet,@nSconto,@nSubtotale,@nTotale)
endif
next
[b:39n5452v]but erase only the last row[/b:39n5452v]
how I can resolve i t?[/quote:39n5452v]
This not run ?
[code=fw:39n5452v]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /> <span style="color: #00C800;">For</span> n=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span>oBrowse:<span style="color: #000000;">aArrayData</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> ! n = <span style="color: #000000;">1</span> <span style="color: #B900B9;">// oBrowse:nArrayAt = 1</span><br /> <span style="color: #B900B9;">//ADel( oBrowse:aArrayData, n, .t. )</span><br /> oBrowse:<span style="color: #000000;">SetPos</span><span style="color: #000000;">(</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> oBrowse:<span style="color: #000000;">Delete</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">//oBrowse:MakeTotals()</span><br /> <span style="color: #B900B9;">//oBrowse:Refresh()</span><br /> CalcoloTotali2<span style="color: #000000;">(</span>oBrowse,aGet,@nSconto,@nSubtotale,@nTotale<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">next</span><br /><br /> </div>[/code:39n5452v] |
problem to erase rows of xbrowse - RESOLVED | no I tried also with
[code=fw:8zoq70ds]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> DeleteAllRows<span style="color: #000000;">(</span> oBrowse,aGet <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> n<br /> <span style="color: #00C800;">if</span> msgYesNo<span style="color: #000000;">(</span> i18n<span style="color: #000000;">(</span><span style="color: #ff0000;">"¿ E' sicuro che devo cancellare tutto ?"</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">(</span> oBrowse:<span style="color: #000000;">aArrayData</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">For</span> n=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span>oBrowse:<span style="color: #000000;">aArrayData</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> ! n = <span style="color: #000000;">1</span><br /> oBrowse:<span style="color: #000000;">SetPos</span><span style="color: #000000;">(</span> n, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> oBrowse:<span style="color: #000000;">Delete</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">// ADel( oBrowse:aArrayData, n, .t. )</span><br /> <span style="color: #B900B9;">// oBrowse:MakeTotals()</span><br /> <span style="color: #B900B9;">// oBrowse:Refresh()</span><br /> <span style="color: #B900B9;">//CalcoloTotali2(oBrowse,aGet,@nSconto,@nSubtotale,@nTotale)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">next</span> n<br /> <span style="color: #00C800;">Endif</span><br /><span style="color: #00C800;">Endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:8zoq70ds] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.