topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
pagers for xBrowse | Hello,
but I think there are others issues with xbrowse performance, the sample below show
the times that the data column is reads, you can see the column "4", the optimum should be 5
[code=fw:a7zmbeeq]<div class="fw" id="{CB}" style="font-family: monospace;"><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 /><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, oBrw, aData, n := <span style="color: #000000;">0</span><br /> <br /> aData := <span style="color: #000000;">{</span><span style="color: #000000;">{</span> <span style="color: #ff0000;">"one"</span>,<span style="color: #ff0000;">"two"</span>,<span style="color: #ff0000;">"three"</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"one"</span>,<span style="color: #ff0000;">"two"</span>,<span style="color: #ff0000;">"three"</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"one"</span>,<span style="color: #ff0000;">"two"</span>,<span style="color: #ff0000;">"three"</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"one"</span>,<span style="color: #ff0000;">"two"</span>,<span style="color: #ff0000;">"three"</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"one"</span>,<span style="color: #ff0000;">"two"</span>,<span style="color: #ff0000;">"three"</span> <span style="color: #000000;">}</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;">SIZE</span> <span style="color: #000000;">300</span>, <span style="color: #000000;">200</span><br /><br /> @ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oDlg ;<br /> HEADER <span style="color: #ff0000;">"1"</span>,<span style="color: #ff0000;">"2"</span>,<span style="color: #ff0000;">"3"</span>,<span style="color: #ff0000;">"4"</span>;<br /> COLUMNS <span style="color: #000000;">1</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">{</span>|| extracol<span style="color: #000000;">(</span> @n <span style="color: #000000;">)</span> <span style="color: #000000;">}</span>;<br /> ARRAY aData <span style="color: #0000ff;">AUTOCOLS</span><br /> <br /> oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /> oBrw:<span style="color: #000000;">bKeyDown</span> = <span style="color: #000000;">{</span> || oDlg:<span style="color: #000000;">SetText</span><span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">nColSel</span> <span style="color: #000000;">)</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 <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">(</span> oDlg:<span style="color: #000000;">oClient</span> := oBrw, oDlg:<span style="color: #000000;">Resize</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> extracol<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span><br /> n++<br /><span style="color: #00C800;">RETURN</span> n<br /> </div>[/code:a7zmbeeq]
regards
Marcelo Vía |
pagers for xBrowse | Mr. Rao
I see the great enhanced of xbrowse, congratulations, but I don't know if I am wrong about the refresh or repaint issue. I tested a simple xbrowse in a wan enviroment (slow connection with ADS server), and it was really slow. The sample that I posted in this thread show the times what the datas are called and painted
Some comments?
regards
Marcelo Via |
pagers for xBrowse | Mr Marcelo
[quote:34chvobn]but I think there are others issues with xbrowse performance, the sample below show
the times that the data column is reads, you can see the column "4", the optimum should be 5
[/quote:34chvobn]
The question is whether XBrowse does an excessive data access resulting in reduced performance.
Reading the same record any number of times should not affect performance because this is read from cache in memory.
Sameway, skipping records any number of times within the local cache also should not affect performance.
In any case, let us see if xbrowse performs more "skips" than necessary.
We are clear that every refresh() requires (1) skipping to the first row displayed, (2) skipping record by record till the bottom of the browse screen (number of datarows) and (3) skipping back to the original record.
Going up and down by press of key should not result in more than one skip.
Mouse Click causes full refresh.
Keeping this in mind, I provide you here a test program, which shows continuously how many times the Skipper is called.
[code=fw:34chvobn]<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 />REQUEST DBFCDX<br /><br />#ifndef __XHARBOUR__<br /> #xtranslate DbSkipper => __DbSkipper<br />#endif<br /><br /><span style="color: #00C800;">static</span> nSkipperCalls := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">static</span> oSay<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> clog := cFileSetExt<span style="color: #000000;">(</span> ExeName<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"log"</span> <span style="color: #000000;">)</span><br /><br /> FERASE<span style="color: #000000;">(</span> clog <span style="color: #000000;">)</span><br /> RDDSETDEFAULT<span style="color: #000000;">(</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">)</span><br /><br /> SET DATE ITALIAN<br /> SET CENTURY <span style="color: #0000ff;">ON</span><br /> SET DELETED <span style="color: #0000ff;">ON</span><br /><br /> XbTest<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> file<span style="color: #000000;">(</span> clog <span style="color: #000000;">)</span><br /> winexec<span style="color: #000000;">(</span> <span style="color: #ff0000;">"notepad.exe "</span> + clog <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> XbTest<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, oBrw, oFont<br /><br /> USE CUSTOMER <span style="color: #00C800;">NEW</span> SHARED <span style="color: #0000ff;">ALIAS</span> CUST VIA <span style="color: #ff0000;">"DBFCDX"</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">700</span>,<span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL <span style="color: #0000ff;">FONT</span> oFont<br /><br /> @ <span style="color: #000000;">60</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-20</span>,<span style="color: #000000;">-20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> DATASOURCE <span style="color: #ff0000;">"CUSTOMER"</span> <span style="color: #0000ff;">AUTOCOLS</span> ;<br /> CELL LINES NOBORDER<br /><br /> WITH OBJECT oBrw<br /> :<span style="color: #000000;">bSkip</span> := <span style="color: #000000;">{</span> |n| <span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">)</span>-><span style="color: #000000;">(</span> MySkip<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> <span style="color: #B900B9;">//</span><br /> :<span style="color: #000000;">AutoFit</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> END<br /><br /> @ <span style="color: #000000;">20</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> nSkipperCalls <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"99999"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /> <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> MySkip<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span><br /><br /> nSkipperCalls++<br /> oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> DbSkipper<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span><br /> </div>[/code:34chvobn]
You can see that xbrowse never calls Skip more than necessary. As long as number of datarows is withing the DBF local cache, even these skips should not affect performance because there is no network access. |
pagers for xBrowse | [quote="Marcelo Via Giglio":3cemeor9]Mr. Rao
I see the great enhanced of xbrowse, congratulations, but I don't know if I am wrong about the refresh or repaint issue. I tested a simple xbrowse in a wan enviroment (slow connection with ADS server), and it was really slow. The sample that I posted in this thread show the times what the datas are called and painted
Some comments?
regards
Marcelo Via[/quote:3cemeor9]
Friend,
You are all fortunate to be handling WAN with the latest techonlogies available today. First time I implemented our systems on WAN was about 18 years back. The WAN speeds were only 64 KBPS. Started with Clipper and ADS 5.1 and then moved to 32-bit xharbour. The system included XBrowse of a DBF table with 450,000 records of more than 1KB record length which later grew to more than 650,000 records. Even then, the performance on WAN was good enough. Can not at all compare the speeds with LAN but the performance was quite adequate. Later there were a lot of technological improvements and I left it in 2009.
It is with that experience and confidence that I gave my advice in the earlier posting. |
pagers for xBrowse | Hello Nages
I'm using the new features of xbrowse and works very well
This is a my old request , I think it is connected to this topic.
I saw that browse for SQL ( like Mysql-Front) use this process
SELECT * FROM dabase.client LIMIT 100
when I go over the 100 records automatically there is another select
SELECT * FROM dabase.client ORDER LIMIT 100,100;
it would be nice to have this in xBrowse <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Regards Maurizio
<!-- w --><a class="postlink" href="http://www.nipeservice.com">www.nipeservice.com</a><!-- w --> |
pagers for xBrowse | Let us discuss.
What kind of support you like from xbrowse? Can you please elaborate what do you have in mind? |
pagers for xBrowse | Hello ,
When I open a large recodset on WLAN ( mysql on Dreamhost ) I wait 4/5 " to have the data and after I open xBrowse .
example: SELECT * from mydatabase
I know that the delay is in the select and not xBrowse .
If I use :
SELECT * from mydatabase LIMIT 100
and I open xbrowse , I have no delay .
When I browse the data and arrive at the record 100 the command skip() should make another select
SELECT * FROM mydatabase LIMIT 100,100
and refreh the browse.
Regards Maurizio |
pagers for xBrowse | I am thinking ...
Meanwhile please share your thoughts too. How do you propose to handle GoBottom(), GoTop(), skip( n ) and skip( -n ), Seek, Sort, etc.
Welcome any ideas from any one interested in the topic.
Also, if you do not mind my asking, may I know the FWH version you are using now? |
pagers for xBrowse | I use April 2016
Gets in Header with SQL
[img:1tv1sn9d]http://i68.tinypic.com/10mr3gn.png[/img:1tv1sn9d]
Regards Maurizio |
pagers for xBrowse | This may involve multiple Recordsets, opening on demand and swapping them on the basis of navigational needs. Unfortunately there is no way to append or concatenate recordsets. This adds quite a bit complexity to coding but can be done if it is really worthwhile.
What we may lose in the process are sort, seek, filters. Do you think the trade off is worthwhile for saving 3/4 seconds initially? I am asking your opinion.
I am considering another approach too. |
pagers for xBrowse | Thanks Mr. Rao for the explanation |
pagers for xBrowse | [quote="Maurizio":avl9ajm0]Hello ,
When I open a large recodset on WLAN ( mysql on Dreamhost ) I wait 4/5 " to have the data and after I open xBrowse .
example: SELECT * from mydatabase
I know that the delay is in the select and not xBrowse .
If I use :
SELECT * from mydatabase LIMIT 100
and I open xbrowse , I have no delay .
When I browse the data and arrive at the record 100 the command skip() should make another select
SELECT * FROM mydatabase LIMIT 100,100
and refreh the browse.
Regards Maurizio[/quote:avl9ajm0]
Hope you are aware that this is possible now with FWH MySql library.
In fact your above proposal resulted in this library. |
pagers for xBrowse | Thanks Mr. Rao
Maurizio
<!-- w --><a class="postlink" href="http://www.nipeservice.com">www.nipeservice.com</a><!-- w --> |
paginacion/tdolphin/xbrowse | Alguien tiene un ejemplo, para el proceso de paginacion
xbrowse/tdolphin/mysql ?
LIMIT 10
xBrowse siempre muestra los primeros 10 registros ,
como ir a la siguiente pagina para ver los otros 10 registros ?
Saludos. |
paginacion/tdolphin/xbrowse | he encontrado el ejemplo dolphin\samples\testpag.prg
voy a probar.
gracias. saludos. |
paint xbrowse n a window | How I can make to paint this xbrowse fill on the window ?
[img:191pi6w8]http://img256.imageshack.us/img256/8510/winxbrotw7.jpg[/img:191pi6w8]
i made
[code:191pi6w8]
DEFINE WINDOW ::oWndMain ....
::nGridBottom := ::oWndMain:nBottom-::oWndMain:nTop
::nGridRight : = ::oWndMain:nRight-::oWndMain:nLeft
::oGrid := TXBrowse():New( ::oWndMain )
::oGrid:nTop := 00
::oGrid:nLeft := 250
::oGrid:nBottom := ::nGridBottom
::oGrid:nRight := ::nGridRight
[/code:191pi6w8]
[/code] |
paint xbrowse n a window | Hello,
You have to get Top, Bottom, Left, Right of the child or any dialog.
The browser must have the same.
Top, Left of the browser is allways 0 ( belongs to the Dialog ).
Right and Bottom has to be calculated.
Here is the source
[code:efcicowu]
#include "fivewin.ch"
#include "xbrowse.ch"
// ----------------------------------------------
FUNCTION TEST()
LOCAL oDlg
LOCAL aCORS := {}
USE CUSTOMER NEW ALIAS CUST
DEFINE DIALOG oDlg FROM 5, 5 TO 20, 100 TITLE "A Dialog Box"
ACTIVATE DIALOG oDlg CENTERED ;
ON INIT ( aCORS := GetCoors( oDlg:hWnd ), MakeBrowse( oDlg ) )
RETURN( NIL )
//----------------------------------------------------------------------------//
STATIC FUNCTION MakeBrowse( oDlg )
LOCAL oBrw
aCORS := GetCoors( oDlg:hWnd )
oBrw := TXBrowse():new( oDlg )
WITH OBJECT oBrw
:nTop := 0
:nLeft := 0
:nBottom := aCORS [3]
:nRight := aCORS [4]
:cAlias := "CUST"
:SetRDD()
END
oBrw:CreateFromCode()
RETURN ( oBrw )
[/code:efcicowu]
That should work.
Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
[/code] |
paint xbrowse n a window | Use Move() method.
EMG |
paint xbrowse n a window | Look at the splitter examples in fwh\samples.
James |
paint xbrowse n a window | Dear ukoenig
have you a sample in a window please? |
paint xbrowse n a window | Hi Silvio,
you can try this
[code:1elhirsr]ACTIVATE WINDOW oWnd ;
ON RESIZE ( oSplit:AdjControl () ) ;
ON INIT Eval( oWnd:bResized )
[/code:1elhirsr] |
paint xbrowse n a window | Stephan,
The problem is Xbrowse I cannot move this object to height and width of the window
the splitter is ok !! |
paint xbrowse n a window | this made error :
#include "FiveWin.ch"
function Main()
local oWnd
Local aClient := GetClientRect (oWnd:hWnd )
nBottom = aClient[3] - 1
nRight = aClient[4]
DEFINE WINDOW oWnd ;
TITLE "Xbrowse into a window"
oWnd:SetColor( CLR_WHITE, GetSysColor(15)-RGB(30,30,30) )
// xvtaskbar
// ...
// Xbrowse
USE CUSTOMER ALIAS CU
oGrid := TXBrowse():New( oWnd )
oGrid:nTop := 00
oGrid:nLeft := 242
oGrid:nBottom := nbottom
oGrid:nRight := nRight
ACTIVATE WINDOW oWnd
return nil |
palabra para el domingo | Hola amigos,
Aunque Antonio, Charly, Cristóbal, Andreu, Ricardo y todos los demás involucrados en el proyecto del puerto mod nos dan tanto, no será posible para nosotros FIVWINNER comenzar la PROGRAMACIÓN WEB sin mucho trabajo y esfuerzo.
Es una fase de aprendizaje, y cuanto antes empiece, antes podrá cosechar su éxito.
mod harbour nos abre el gran mundo.
Con mod harbour volví a incendiarme por la programación y me gustaría agradecer a todos.
Que tengas un buen domingo,
Otto |
palabra para el domingo | Master Otto, where do I find material and step by step to start?
Maestro Otto, ¿dónde encuentro material y paso a paso para empezar?
This MOD HARBOUR name is not very suggestive for a programmer.
Este nombre de MOD HARBOUR no és muy sugerente para un programador.
A commercial name more suited to the product, perhaps sold more.
Un nombre comercial más adecuado al producto, quizás vendió más.
Regards, saludos. |
palabra para el domingo | Hello Joao,
¿Dónde encuentro material y paso a paso para empezar?
Eso es exactamente lo que quería decir. Sin realmente ponerte a trabajar, no entrarás en el mundo de los desarrolladores web.
Hay instrucciones aquí en el foro y en modharbour.org.
Pero tienes que querer aprender.
Solo tienes que empezar.
Configure un servidor y pruebe los ejemplos.
O tal vez no hacer demasiado a la vez.
Es importante que nos mantengamos unidos como grupo y nos apoyemos unos a otros.
¿Tienes un servidor web?
Best regards,
Otto |
palabra para el domingo | Hello all,
Un nombre comercial más adecuado al producto, quizás vendió más.
mod harbour está en GitHub y es gratis.
<!-- w --><a class="postlink" href="http://www.modharbour.org">www.modharbour.org</a><!-- w -->
Best regards,
Otto |
palabra para el domingo | [quote:2m2dptvg]¿Tienes un servidor web?[/quote:2m2dptvg]
No, que indicas? Porfa.
Regards, saludos. |
palabra para el domingo | Hans, creo que esa es la traducción correcta.
¿Cómo estás conectado a Internet?
Creo que es más cómodo si tienes tu propio servidor web en casa.
Configuré el reenvío de puertos desde http y https en todas partes y luego instalé Apache con mod harbour.
He probado la instalación en sistemas x Windows y funciona.
¿Qué tarifas de la tarjeta SIM tienes?
Disponemos de internet ilimitado y una IP fija por unos 30 € al mes.
Por ejemplo, traeré mi servidor de desarrollo con uno
Archer MR200 | AC750 Wireless Dual Band 4G LTE a Internet.
Allí lancé RDP y HTTP.
<!-- m --><a class="postlink" href="https://www.modharbour.club">https://www.modharbour.club</a><!-- m -->
está en tal servidor.
Creé todo el sitio con mod harbour.
Todavía hay un sitio de construcción, un servidor de prueba.
Best regards,
Otto
aquí puede ver el servidor completo, incluido el disco duro de respaldo
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=25121&hilit=serverbook&start=30#p213815">viewtopic.php?f=3&t=25121&hilit=serverbook&start=30#p213815</a><!-- l --> |
palabra para el domingo | Karinha buenas noches
si necesitas una ayuda directa solo sigue las instrucciones y lo tendras funcionando enseguida
cuando estes mas perito en instalar ya bajaras actualizaciones, etc
Un abrazo y espero que te sirva es una peque guia que hice
Instalacion mod_harbour en windows de 64 bits ( windows 7, 8, 10 )
- bajar el archivo <!-- m --><a class="postlink" href="http://54.37.60.38/doc/mod_harbour.zip">http://54.37.60.38/doc/mod_harbour.zip</a><!-- m -->
- instalar xampp bajarlo de <!-- m --><a class="postlink" href="https://www.apachefriends.org/es/download.html">https://www.apachefriends.org/es/download.html</a><!-- m --> el que corresponda a win64 bits
- copiar mod_harbour.so a c:\xampp\apache\modules
- copiar libharbour.dll a c:\xampp\htdocs
- aumentar al final del arhivo de texto de configuracion c:\xampp\apache\conf\httpd.conf
reiniciar apache
este archivo de programa
function Main()
?? "Harbour power"
?
? Version()
return nil
creale en un prg llamado test.prg
crear la carpeta c:\xampp\htdocs\samples
copiarlo en c:\xampp\htdocs\samples
ir al navegador y tipear localhost/samples/test.prg
y lo tienes funcionando
saludos
Wilson |
palabra para el domingo | perdon me olvide esto debes aumentar al final del archivo de config de apache
LoadModule harbour_module modules/mod_harbour.so
SetEnv LIBHARBOUR "c:\xampp\htdocs\libharbour.dll"
<FilesMatch "\.(prg|hrb)$">
SetHandler harbour
</FilesMatch>
saludos
Wilson |
palabra para el domingo | Gracias, Wilson. Saludos. |
palm / receipt printer | Hi,
1. does Fivewin ppc work on both palm os and windows CE ?
2. any recommended of palm/ppc model and its related receipt printer ?
Regards
Hoe |
palm / receipt printer | [quote="tnhoe":2e6fhjgg]1. does Fivewin ppc work on both palm os and windows CE ?[/quote:2e6fhjgg]
No, only on Windows Mobile Pocket PC.
EMG |
palm / receipt printer | Hello Guys
Well, I have aMC300 that included an WinCE 4.2 NET and my app run fine.
HTH
Regards
Osvaldo Ramirez |
palm / receipt printer | Hello
I have a psc with Windows CE and my app run fine
Maurizio |
palm emulatore | dove posso scaricare l'emulatore per il palmare per win xp prof?
sono andato sul link che dice linares ma non ho potuto scaricarlo ... |
palm emulatore | Purtroppo non so aiutarti, ho provato anch'io a scaricare da MS un po' di materiale ma senza successo.
Ho da poco acquistato Fwppc, nel pacchetto mi hanno fornito tutto! |
pantalla ampliada | Si es posible necesitaría concocer cuando un escritorio en Windows 7 tiene activada la opción de mostrar los elementos de pantalla al 125%. Esto es debido a lo siguiente:
Cuando muestro un tcbrowse en pantalla leo de un fichero de configuración el tamaño de cada una de las columnas que lo componen. p.e.. col1=10, col2=100, col3=200.
Al finalizar el browse grabo en ese fichero de configuracion el tamaño que tienen al final, por lo que si se cambio el ancho de alguna columna este cambio queda guardado en el fichero de configuracion y al volver a cargar el browse aparece igual que se dejó la ultima vez, pero el caso es que cuando el usuario tiene activada esta opción en windows 7 el tamaño de las columnas se me multiplica por 1.25, es decir col1=12.5, col2=125, col3=250 con lo que me descuadra todo el browse, ya que este fichero lo utilizan otros equipos que no tienen activada esta opcion.
Se me ocurre que si puedo detectar que el equipo tiene activada esta opcion al guardar los datos en el fichero los ajusto dividiendo por 1.25 pero no se como puedo detectar esto.
Gracias de antemano |
pantalla ampliada | Perdon, no era CA-Clipper sino Harbour.
Lo voy a volver a colgar en el foro adecuado. |
para Antonio | Buenos Días Antonio:
¿sabes algo de lo que te puse en el Post de las PDAS PTT2800?, ya que hize lo que me dijiste y no me funcionó.
UN SALUDO y muchas gracias |
para Antonio | Mike,
<!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?p=19735#19735">http://fivetechsoft.com/forums/viewtopi ... 9735#19735</a><!-- m --> |
para Antonio | Antonio,
Puedo correr una aplicación FiveWin para Pocket PC en una Palm?
saludos cordiales <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
para Antonio | Luis Alfonso,
FiveWin para Pocket PC solo funciona en Windows Mobile ó en Windows CE.
Luego solo funcionaría en una Palm que usase uno de esos sistemas operativos. |
para Antonio | Propuesta de publicidad por Internet.
AmarillasInternet es un Portal de Información Comercial de alta performance, muy sencillo de consultar para los consumidores que buscan un producto o servicio.
¿Porqué anunciar aquí?
5 Razones para Publicar
1. 95% de los consumidores ya conocen el concepto de Páginas Amarillas.
2. Consiga nuevos clientes por Internet, aún sin tener página Web
3. El Internet simplifica la búsqueda, brindando informaciones en todo momento y en cualquier lugar.
4. 71% de los visitantes contactan al proveedor que están buscando y el 62% realiza finalmente la compra.
5. Presencia constante: 24 horas, los 365 días del año
6. en el sitio se realizan mas de 186.000 búsquedas diarias
Publique y destaque su anuncio
Para publicar un Anuncio Destacado deberá adquirir un código de publicación, es un Código Digital que se entrega vía e-mail.
Anuncio Destacado
• Tiene la posibilidad de publicar y cambiar la descripción de su producto o empresa cuantas veces quiera.
• Posee un sistema automático para publicar y acomodar la foto, imagen o logo en su anuncio.
• Cuenta con un Panel de Control personalizado, con usuario y password privados, que le permitirá acceder a modificar /administrar su anuncio todas las veces que sea necesario.
• Será listado CON PRIORIDAD ante la búsqueda de los usuarios.
Características de un anuncio destacado
1. Logo de su compañía o imagen de su producto
2. Nombre de su negocio o producto
3. Descripción de su negocio, productos o servicios
4. Dirección completa, números de teléfono y fax.
5. Enlace directo a su sitio Web
6. Mapa con la ubicación del Negocio.
7. Botón para que un visitante le envíe un correo electrónico
8. Botón para que un visitante imprima su anuncio
9. Botón para que un visitante le envíe su anuncio a otra persona
10. GALERIA de FOTOS!!! - Hasta 40 fotos con sus respectivas descripciones. (Solamente en Anuncios Premium-Banner)
11. Video con tecnología YouTube de hasta 10 minutos de duración.
Mire aquí un ejemplo de un anuncio con galería de fotos:
<!-- w --><a class="postlink" href="http://www.amarillasinternet.com/hotelesamerica">www.amarillasinternet.com/hotelesamerica</a><!-- w -->
Mire aquí un ejemplo de un anuncio con galería de fotos y video:
<!-- w --><a class="postlink" href="http://www.amarillasinternet.com/hotelmonserratspa">www.amarillasinternet.com/hotelmonserratspa</a><!-- w -->
Para determinar el posicionamiento de cada empresa en los listados de búsqueda, nuestro sistema adjudica automáticamente un ranking (puntaje) a cada anuncio, basado en la antigüedad del mismo, a mayor antigüedad mayor ranking.
Banner
Si desea obtener un posicionamiento visual más importante, le ofrecemos la posibilidad de acceder a uno de nuestros Banners
La mejor manera de promocionar su negocio es publicar su Banner. Ante una búsqueda, los banner aparecen en el lado derecho de la página de resultados.
Con su Banner, tendrá más impacto, más presencia y le dará más confianza a sus clientes, además incrementará el tiempo de permanencia y el Ranking de su anuncio.
Algunos de nuestros anunciantes
...Publicidad de Alto Alcance a Bajo Costo.
Opción 1:
Adquiera su Anuncio Destacado por solo 20 dólares al año y tendrá a su empresa o negocio listado en las Páginas Amarillas del Internet.
Opción 2:
Adquiera su Banner - Anuncio Premium (incluye anuncio destacado), por solo 200 dólares y tendrá una mejor presencia en nuestro directorio.
Forma de pago:
Directamente con su asesor o Tarjeta de Credito
Una vez confirmado el pago se le enviará el código para que active su publicidad de forma inmediata.
Consiga más clientes,
Alguien quiere lo que usted ofrece.
Cordialmente,
Alejandro Patiño
Asesor Afiliado
Tlf. 57-321-4777-217
Email: <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> |
para Antonio | Sinceramente creo que el lugar en donde se realizan la mayoria de las búsquedas es google
De todas formas, gracias por la información <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
para Antonio | Antonio, serias tan amable de enviarme algún ejemplo de como enviar y
recibir información por puerta RS-232 , estoy tratando
de comunicarme con una Impresora Fiscal IBM 4610-TF6.
Cordialmente,
Víctor Cordones
Chile |
para Antonio | Victor,
Puedes revisar el ejemplo phone.prg en la carpeta samples, ó el ejemplo TestComm.prg.
Cualquiera de esos dos te servirá <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
para Antonio | [quote="vito_cordones":2italky7]Antonio, serias tan amable de enviarme algún ejemplo de como enviar y
recibir información por puerta RS-232 , estoy tratando
de comunicarme con una Impresora Fiscal IBM 4610-TF6.
Cordialmente,
Víctor Cordones
Chile[/quote:2italky7]
Hola Victor
Lograste trabajar con la impresora ibm |
para Antonio - sugerencias | Hola Antonio:
En primer lugar, felicitaciones por los cambios en la versión de FWH. Ahora todo va mucho más rápido y se nota una mayor robustez en la librería. ¡¡ Excelente !!. Asimismo, he visto tu esfuerzo de documentación que, ciertamente, es una tarea poco grata.
Tengo una duda, respecto del RPreview, los cambios son internos. ¿verdad?, porque externamente NO se nota nada, pero si una importantísima mejora de velocidad.
Si me lo permites, me gustaría sugerirte las siguientes incorporaciones que echo en falta:
- La clase TSysteminfo de Patrick Mast. No creo que tengas problemas para incorporarla.
- Una clase para crear archivos pdf.
- Mejoras en RPreview. En particular, una exportación a PDF y a formatos de imágenes, incluyendo la posibidad de enviar por emal (llamar al cliente de correo electrónico del usuario).
El EasyPreview de Timm, del que soy usuario registrado, NO exporta a PDF, que es lo que los usuarios finales piden, va muy lento y su razón de uso era para solventar en 16 bits los problemas de impresión con impresoras de 32 bits que, como recordarás, daba error. En 32 bits ya no resulta útil, pues no aporta nada nuevo y sí problemas, no incluye el código fuente y no puedes personalizar los menús.
Muchas gracias. Un saludo,
Moisés |
para Antonio - sugerencias | Moises,
Gracias por tus sugerencias.
Si, el preview ha mejorado mucho en velocidad. Me alegra que lo hayas notado <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Si, queremos añadirle soporte para PDF pero necesitamos localizar una librería que sea libre y que nos permita crear PDFs. En cuanto a la clase TSystemInfo podemos hablar con Patrick e incluirla. |
para Antonio : Sobre BTNBMP... oBtn:bPainted (RESUELTO) | Buenos dias,
No se si se pueda hacer lo siguiente :
Tengo la necesidad de identificar unos botones para el usuario, como muestro en la imagen,
exactamente es el texto que esta encerrado en color rojo, usando el comando REDEFINE BTNBMP ....,
[img]
<!-- m --><a class="postlink" href="http://www.4shared.com/photo/tfYyv9Xmba/Botones.html">http://www.4shared.com/photo/tfYyv9Xmba/Botones.html</a><!-- m -->?
[/img]
Gracias,
Saludos Cordiales,
Albeiro. |
para Antonio : Sobre BTNBMP... oBtn:bPainted (RESUELTO) | disculpas, esta es la imagen :
[img]
<!-- m --><a class="postlink" href="http://www.4shared.com/photo/03Hn6hp2ce/Botones__1_.html">http://www.4shared.com/photo/03Hn6hp2ce ... s__1_.html</a><!-- m -->?
[/img] |
para Antonio : Sobre BTNBMP... oBtn:bPainted (RESUELTO) | Albeiro,
Haciendo una pequeña modificación en la Clase TBtnBmp Method Paint() puedes usar oBtn:bPainted y desde ahí escribir ó dibujar en el control lo que desees:
[code=fw:2re61m0z]<div class="fw" id="{CB}" style="font-family: monospace;">...<br /> <br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">bPainted</span> != <span style="color: #00C800;">nil</span> <span style="color: #B900B9;">// nuevo</span><br /> Eval<span style="color: #000000;">(</span> ::<span style="color: #000000;">bPainted</span>, ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">cPS</span>, <span style="color: #00C800;">Self</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// nuevo</span><br /> <span style="color: #00C800;">endif</span> <span style="color: #B900B9;">// nuevo </span><br /><br /> <span style="color: #00C800;">if</span> ! IsWindowEnabled<span style="color: #000000;">(</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span> .and. Empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">hBitmap3</span> <span style="color: #000000;">)</span><br /> BtnDisable<span style="color: #000000;">(</span> ::<span style="color: #000000;">hWnd</span>, ::<span style="color: #000000;">hDC</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> ...<br /> </div>[/code:2re61m0z]
Lo incluimos para la próxima versión de FWH <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
para Antonio : Sobre BTNBMP... oBtn:bPainted (RESUELTO) | Antonio,
Gracias <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> |
para Antonio : Sobre BTNBMP... oBtn:bPainted (RESUELTO) | Antonio ,
Modifique la clase y probe con este ejemplo pero no funciona.
[code=fw:1edj7fea]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> PruebaBtnBmp<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> oDlg, oFont, oBtn, aPos<br /> <br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span> BOLD <br /> <br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Say en Boton"</span><br /><br /> @ <span style="color: #000000;">3</span>, <span style="color: #000000;">16</span> <span style="color: #0000ff;">BTNBMP</span> oBtn <span style="color: #0000ff;">OF</span> oDlg; <br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Cancel"</span>; <br /> <span style="color: #0000ff;">CENTER</span>;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">60</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 /> <br /> <span style="color: #B900B9;">// oBtn:bInit = {|| TSay():New(6, 14, {|| " 1 "}, oBtn,, oFont, .F., .F., .F., .F., CLR_BLACK, CLR_WHITE,,, .F., .F., .F., .F., .F., .F., .F., )}</span><br /> <br /> oBtn:<span style="color: #000000;">bPainted</span> = <span style="color: #000000;">{</span>|| TSay<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #000000;">6</span>, <span style="color: #000000;">14</span>, <span style="color: #000000;">{</span>|| <span style="color: #ff0000;">" 1 "</span><span style="color: #000000;">}</span>, oBtn,, oFont, .F., .F., .F., .F., CLR_BLACK, CLR_WHITE,,, .F., .F., .F., .F., .F., .F., .F., <span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oDlg <br /> <br /> <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /> <br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:1edj7fea] |
para Antonio : Sobre BTNBMP... oBtn:bPainted (RESUELTO) | Alveiro,
No, asi no hace, puesto que así estarias creando un nuevo control TSay cada vez que se pintase el botón, y eso consumiría muchos recursos y al final incluso podria tirar la aplicación.
La forma de escribir texto es usando la función DrawText() ó tambien serviría la función ExtTextOut():
oBtn:bPainted = { | hDC | DrawText( hDC, "Hola", { 0, 0, oBtnBmp:nWidth, oBtnBmp:nHeight }, nStyle )
Ese array de cuatro elementos es el rectángulo en donde se escibirá el texto dentro de la superficie del botón. nStyle es el estilo a usar de estos:
#define DT_TOP 0
#define DT_LEFT 0
#define DT_CENTER 1
#define DT_RIGHT 2
#define DT_VCENTER 4
#define DT_BOTTOM 8
#define DT_WORDBREAK 16
#define DT_SINGLELINE 32
#define DT_CALCRECT 1024
Para una explicación de estos estilos puedes revisar:
[url:2r9ugvtz]http://msdn.microsoft.com/en-us/library/windows/desktop/dd162498(v=vs.85).aspx[/url:2r9ugvtz]
Si deseas cambiar el color del texto a pintar, debes usar la función SetTextColor( hDC, CLR_BLUE ) (los colores estan en colors.ch, ó cualquier combinación RGB usando la función nRgb( nRed, nGreen, nBlue ) y llamarias a esta función desde el codeblock antes de llamar a DrawText()
Tambien puedes cambiar el font a usar, etc. |
para Antonio : Sobre BTNBMP... oBtn:bPainted (RESUELTO) | Antonio ahora si funciono.
Gracias. |
para Antonio : Sobre BTNBMP... oBtn:bPainted (RESUELTO) | Muy bien <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
para Antonio : Sobre BTNBMP... oBtn:bPainted (RESUELTO) | Antonio,
Buen dia, recuerda agregar este codigo a btnbmp.prg para el proximo build de fwh.
Saludos. |
para Antonio : Sobre BTNBMP... oBtn:bPainted (RESUELTO) | No encuentro esta parte del código que se supone se encuentra en el método Paint()
[quote:2ahud9p1]
...
if ! IsWindowEnabled( ::hWnd ) .and. Empty( ::hBitmap3 )
BtnDisable( ::hWnd, ::hDC )
endif
...
[/quote:2ahud9p1]
Donde pongo el código nuevo ? Alguien sabe ?. Muchísimas gracias
Saludos |
para Antonio Linares (BITMAP) | Estimados Amigos,
Probando la funcion bitmap, me consegui con un curioso detalle, despues de pintar el boton y crear un popmenu, cuando refresco el boton a traves de una de las opciones del popmenu, este bitmap se duplica un poco mas arriba del pintado originalemente.
[code=fw:2pqzhmt8]<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 /><span style="color: #00C800;">Function</span> Test<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">Local</span> oDlgFecha<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlgFecha <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">800</span>,<span style="color: #000000;">600</span><br /><br /> @ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> BITMAP FILENAME <span style="color: #ff0000;">".<span style="color: #000000;">\B</span>ITMAPS<span style="color: #000000;">\b</span>tnbmp.bmp"</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> ODLGFECHA <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">25</span>,<span style="color: #000000;">25</span> NOBORDER<br /> <br /> oDlgFecha:<span style="color: #000000;">brClicked</span> = <span style="color: #000000;">{</span> | nRow, nCol, nFlags | ;<br /> ShowPopup2<span style="color: #000000;">(</span> oDlgFecha, nRow, nCol <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /><br /> <span style="color: #0000ff;">Activate</span> <span style="color: #0000ff;">dialog</span> oDlgFecha <span style="color: #0000ff;">center</span>;<br /> <br /><br /> RETU <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> SHOWPOPUP2<span style="color: #000000;">(</span>oDlg,nRow,nCOL<span style="color: #000000;">)</span><br /><span style="color: #00C800;">Local</span> oMenu<br /> <br /> <span style="color: #0000ff;">MENU</span> oMenu POPUP <span style="color: #000000;">2007</span><br /><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&PRUEBA"</span> ;<br /> <span style="color: #0000ff;">action</span><span style="color: #000000;">(</span> TBitmap<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">25</span>, <span style="color: #000000;">25</span>,, <span style="color: #ff0000;">".<span style="color: #000000;">\B</span>ITMAPS<span style="color: #000000;">\b</span>tnbmp.bmp"</span>, .T., oDlg,,, .F., .F.,,, .F.,, .T.,, .F. <span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ENDMENU</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> POPUP oMenu <span style="color: #0000ff;">OF</span> oDlg <span style="color: #00C800;">AT</span> nRow, nCol<br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">(</span> <span style="color: #00C800;">NIL</span> <span style="color: #000000;">)</span><br /> </div>[/code:2pqzhmt8] |
para Antonio Linares (BITMAP) | Domenico,
Cuando creas los controles sobre un diálogo, en tu código:
@ 10,10 BITMAP ...
dichas unidades son "lógicas" y no son pixeles. Windows transforma dichas unidades lógicas a pixeles al crear el diálogo y sus controles hijos.
Una vez creado el diálogo, si creamos un control sobre él, estaremos usando pixeles y no unidades lógicas. De ahi la diferencia de posiciones que observas.
Una solución es crear el control hijo desde la claúsula ON INIT del diálogo:
[code=fw:7uctnrrn]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> CreaControles<span style="color: #000000;">(</span> oDlg <span style="color: #000000;">)</span><br /><br />...<br /><br /><span style="color: #00C800;">function</span> CreaControles<span style="color: #000000;">(</span> oDlg <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> BITMAP ...<br /><br /> ...<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:7uctnrrn]
Desde CreaControles() las unidades especificadas serán pixeles. |
para Antonio Linares (BITMAP) | Gracias Antonio,
En efecto ese era el problema, lo que hize fue crear una funcion que crea los controles y otra que los refresca y funciona perfectamente.
Una pregunta en una Tpanel es posible que estos mismos controles se creen mas pegados que en una dialog, la tPanel maneja diferente las coordenadas????, porque los botones se pintan un tanto extranos.
Nota: igual en la TPanel creo los controles en una funcion para evitar el error de DEFCONTROL.
Gracias. |
para Antonio Linares (BITMAP) | Dmenico,
Si nos proporcionas un ejemplo pequeño y autocontenido en PRG, podremos revisarlo y comentarte, gracias |
para Antonio Linhares | Ola ! se puder me ajudar, fico muito agradecido:Tenho um dialog, e estou tentando criar um outro dialog, dentro desse, mas dah o erro:Error description: Error FiveWin/3 Cannot create Dialog Box: Title: Stack Calls===========Called from: dialog.prg => CREATEDLGERROR(555)Called from: dialog.prg => TDIALOG:ACTIVATE(314)estou fazendo assim:...DEFINE DIALOG oDlg From 00,00 to 325,355 TITLE "titulo." PIXEL OF oWndIni COLORS CLR_WHITE,CLR_WHITE STYLE nOr(DS_MODALFRAME)oFld := cFolder():New(05,05,{"Aba1","Aba2","Aba3"},oDlg,CLR_BLUE,CLR_WHITE,CLR_WHITE,300,300,oFonSay,.T.,1,.F.)ACTIVATE DIALOG oDlg CENTERED...return(Nil)*----------------------------------------------------*CLASS cFolderDATA aDialogsMETHOD New(nTop,nLeft,aPrompts,oDlgPai,nCor1,nCor2,nCor3,nWidth,nHeight,oFonte,lPixel,nOption,lDesign) CONSTRUCTORENDCLASSMETHOD New(nTop,nLeft,aPrompts,oDlgPai,nCor1,nCor2,nCor3,nWidth,nHeight,oFonte,lPixel,nOption,lDesign) CLASS cFolderLocal i,oDlgFld,oAbasDEFAULT aPrompts := {"Aba&1","Aba&2","Aba&3"} , oDlgPai := GetWndDefault() ,nCor1 := CLR_BLUE , nCor2 := CLR_WHITE , nCor3 := CLR_BLACK ,;nWidth := 100 , nHeight := 100 , oFonte := oFonSay , lPixel := .T. , nOption := 1 , lDesign := .F.oDlgFld:=TDialog():New(nTop,nLeft,nWidth,nHeight,,,,.F.,NOR(WS_VISIBLE,WS_DLGFRAME,WS_CHILD,WS_VSCROLL),nCor3,nCor3,,oDlgPai,.T.,,,,,)TTabs():New(nTop,nLeft,aPrompts,{||.t. },oDlgFld,nOption,nCor1,nCor2,lPixel,lDesign,nWidth,nHeight,)oDlgFld:Activate(oDlgFld:bLClicked,oDlgFld:bMoved,oDlgFld:bPainted,.F.,, .F. ,,oDlgFld:bRClicked,{||.T.},)Return(Self)Qual seria o problema ??? acho q esta no style WS_CHILD, q se eu tirar ele, nao dah o erro, mas tambem nao faz o q estou precisando.aaaaaa, um detalhe, nao pode ser por ON INIT.Desde ja agradeco: MUITO OBRIGADO !!!Giba |
para Antonio Linhares | Giba,Aqui tienes un ejemplo funcionando. Porque no usas los comandos estandard de FiveWin ? La programación te será mucho mas fácil[code:jvp1gzct]
#include "FiveWin.ch"
function Main()
local oDlg
DEFINE DIALOG oDlg From 00,00 to 325,355 TITLE "titulo." PIXEL COLORS CLR_WHITE,CLR_WHITE STYLE nOr(DS_MODALFRAME)
oFld := cFolder():New(05,05,{"Aba1","Aba2","Aba3"},oDlg,CLR_BLUE,CLR_WHITE,CLR_WHITE,300,300,,.T.,1,.F.)
ACTIVATE DIALOG oDlg CENTERED
return(Nil)
*----------------------------------------------------*
CLASS cFolder
DATA aDialogs
METHOD New(nTop,nLeft,aPrompts,oDlgPai,nCor1,nCor2,nCor3,nWidth,nHeight,oFonte,lPixel,nOption,lDesign) CONSTRUCTOR
ENDCLASS
METHOD New(nTop,nLeft,aPrompts,oDlgPai,nCor1,nCor2,nCor3,nWidth,nHeight,oFonte,lPixel,nOption,lDesign) CLASS cFolder
Local i,oDlgFld,oAbas
DEFAULT aPrompts := {"Aba&1","Aba&2","Aba&3"} , oDlgPai := GetWndDefault() ,nCor1 := CLR_BLUE , nCor2 := CLR_WHITE , nCor3 := CLR_BLACK ,;
nWidth := 100 , nHeight := 100 , lPixel := .T. , nOption := 1 , lDesign := .F.
oDlgFld = TDialog():New( 00, 00, 325, 355, "titulo.",,, .F., nOr(128), 16777215, 16777215,,, .T.,,,,,, .F. )
// oDlgFld:=TDialog():New(nTop,nLeft,nWidth,nHeight,,,,.F.,NOR(WS_VISIBLE,WS_DLGFRAME,WS_CHILD,WS_VSCROLL),nCor3,nCor3,,oDlgPai,.T.,,,,,)
TTabs():New(nTop,nLeft,aPrompts,{||.t. },oDlgFld,nOption,nCor1,nCor2,lPixel,lDesign,nWidth,nHeight,)
oDlgFld:Activate(oDlgFld:bLClicked,oDlgFld:bMoved,oDlgFld:bPainted,.F.,, .F. ,,oDlgFld:bRClicked,{||.T.},)
Return(Self)
[/code:jvp1gzct] |
para Antonio Linhares | Este es el código correcto. El problema es que estabas intentando crear un diálogo hijo y aún no estaba creado el diálogo padre! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[code:2wt49p5a]
#include "FiveWin.ch"
function Main()
local oDlg, oFld
DEFINE DIALOG oDlg From 00,00 to 325,355 TITLE "titulo." PIXEL COLORS CLR_WHITE,CLR_WHITE STYLE nOr(DS_MODALFRAME)
ACTIVATE DIALOG oDlg CENTERED ;
ON INIT ( oFld := cFolder():New(05,05,{"Aba1","Aba2","Aba3"},oDlg,CLR_BLUE,CLR_WHITE,CLR_WHITE,300,300,,.T.,1,.F.) )
return(Nil)
*----------------------------------------------------*
CLASS cFolder
DATA aDialogs
METHOD New(nTop,nLeft,aPrompts,oDlgPai,nCor1,nCor2,nCor3,nWidth,nHeight,oFonte,lPixel,nOption,lDesign) CONSTRUCTOR
ENDCLASS
METHOD New(nTop,nLeft,aPrompts,oDlgPai,nCor1,nCor2,nCor3,nWidth,nHeight,oFonte,lPixel,nOption,lDesign) CLASS cFolder
Local i,oDlgFld,oAbas
DEFAULT aPrompts := {"Aba&1","Aba&2","Aba&3"} , oDlgPai := GetWndDefault() ,nCor1 := CLR_BLUE , nCor2 := CLR_WHITE , nCor3 := CLR_BLACK ,;
nWidth := 100 , nHeight := 100 , lPixel := .T. , nOption := 1 , lDesign := .F.
oDlgFld:=TDialog():New(nTop,nLeft,nWidth,nHeight,,,,.F.,NOR(WS_VISIBLE,WS_DLGFRAME,WS_CHILD,WS_VSCROLL),nCor3,nCor3,,oDlgPai,.T.,,,,,)
TTabs():New(nTop,nLeft,aPrompts,{||.t. },oDlgFld,nOption,nCor1,nCor2,lPixel,lDesign,nWidth,nHeight,)
oDlgFld:Activate(oDlgFld:bLClicked,oDlgFld:bMoved,oDlgFld:bPainted,.F.,, .F. ,,oDlgFld:bRClicked,{||.T.},)
Return(Self)
[/code:2wt49p5a] |
para Antonio Linhares | hummmmmmmmmmmas, pra minha necessidade, nao pode ser no ON INIT !!!!att |
para Antonio funciones en C | Hola Antonio:
Necesitaría por favor llamar a estas dos funciones en C++:
[url:1l2g01bq]https://msdn.microsoft.com/en-us/library/aa384346(VS.85).aspx[/url:1l2g01bq]
[code=fw:1l2g01bq]<div class="fw" id="{CB}" style="font-family: monospace;"><br />BOOL InternetCheckConnection<span style="color: #000000;">(</span><br /> _In_ LPCTSTR lpszUrl,<br /> _In_ DWORD dwFlags,<br /> _In_ DWORD dwReserved<br /><span style="color: #000000;">)</span>;<br /> </div>[/code:1l2g01bq]
[url:1l2g01bq]https://msdn.microsoft.com/en-us/LIBRary/aa384702(v=vs.85).aspx[/url:1l2g01bq]
[code=fw:1l2g01bq]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />BOOL InternetGetConnectedState<span style="color: #000000;">(</span><br /> _Out_ LPDWORD lpdwFlags,<br /> _In_ DWORD dwReserved<br /><span style="color: #000000;">)</span>;<br /> </div>[/code:1l2g01bq]
Muchas gracias Antonio. |
para Antonio funciones en C | [code=fw:22cxadm2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> INTERNETCHECKCONNECTION <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> hb_retl<span style="color: #000000;">(</span> InternetCheckConnection<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> LPCTSTR <span style="color: #000000;">)</span> hb_parc<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>, hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>, hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">3</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /> </div>[/code:22cxadm2] |
para Antonio funciones en C | [code=fw:v94l4ld4]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> INTERNETGETCONNECTEDSTATE <span style="color: #000000;">)</span> <span style="color: #B900B9;">// @nFlags, nReserved --> lSuccess</span><br /><span style="color: #000000;">{</span><br /> DWORD dwFlags = hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /><br /> hb_retl<span style="color: #000000;">(</span> InternetGetConnectedState<span style="color: #000000;">(</span> &dwFlags, hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> hb_stornl<span style="color: #000000;">(</span> dwFlags, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /> </div>[/code:v94l4ld4] |
para Antonio funciones en C | Muchas gracias Antonio!. |
para Antonio: COMBOBOX y TOOLTIP | Hola Antonio,
Tengo un combobox y quiero por favor que cuando se pone el ratón sobre cada elemento del array del combobox poder tener un tooltip individual.
Ojo, el problema es que no es cuando se selecciona el elemento y entonces se activa on change, sino cuando se pone el ratón encima:
[img:1n727f10]http://i62.tinypic.com/24lj1hk.png[/img:1n727f10]
Creo que esto es muy interesante, para mostrar al user una información adicional sobre el elemento!!!.
Muy agradecida como siempre <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
para Antonio: COMBOBOX y TOOLTIP | Algo asi sería muy interesante:
[code=fw:2g45zdzn]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ <span style="color: #000000;">300</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">GET</span> <span style="color: #0000ff;">COMBOBOX</span> ocod_bc <span style="color: #0000ff;">VAR</span> wcod_bc <span style="color: #0000ff;">ITEMS</span> aItens <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>,<span style="color: #000000;">22</span> <span style="color: #0000ff;">TEXT</span>;<br /> <span style="color: #0000ff;">STYLE</span> CBS_DROPDOWNLIST <span style="color: #0000ff;">OF</span> oDlg;<br /> TOOLTIP <span style="color: #ff0000;">"Informe o CODIGO do BANCO"</span><br /> </div>[/code:2g45zdzn]
Saludos. |
para Antonio: COMBOBOX y TOOLTIP | Up , gracias |
para Antonio: estado Fiveweb | Maestro,
Se nos está planteando la posibilidad de desarrollar un pequeño módulo via web para que pueda asimismo ser empleado desde smartphones para añadir en remoto ciertos datos con un diálogo y un browse.
¿Ya será posible utilizar Fiveweb?.
¿En qué estado se encuentra el proyecto?
¿Qué costo tiene?.
Desde ya muy agradecida. |
para Antonio: estado Fiveweb | Elvira,
Las noticias más recientes es que Lailton me ofrecio combinar su desarrollo y el mio, pero aún sigo esperando noticias de Lailton... <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
De momento todo lo hecho está disponible desde:
[url:12rcykx1]https://code.google.com/p/fiveweb/[/url:12rcykx1]
Si lo usais y quereis ayudar a ampliarlo, puedo daros acceso de escritura en ese proyecto en google. En mi opinión ya es muy potente, pero estamos en lo de siempre, si no se usa, no evoluciona <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
para Antonio: estado Fiveweb | Antonio buen día...
Pues preciso en este momento me urge arrancar con un proyecto que me solicita un cliente
he estado pensando en desarrollar en php. Pero pues me gustaría mas usar fiveweb. ya sabes
por el soporte y por la sintaxis. El cliente me pide desarrollar una aplicación para el
control de citas medicas y los respectivos pagos. Se de antemano que con fivewin la podria
desarrollar. Pero puedo hacerlo con fiveweb? esta bien avanzado para inicia este proyecto?
saludos |
para Antonio: estado Fiveweb | Leandro,
No puedo asegurarte que esté en el nivel funcional que necesites, pero solo te llevará un par de dias ó asi probarlo y asi saber si tiene lo que necesitas ó te falta algo. |
para Antonio: estado Fiveweb | Leandro
Soy Juan Navas y ya he iniciado el desarrollo de una aplicacion de consultas via Web utilizando Fiveweb, si deseas me escribes a <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> |
para Antonio: estado Fiveweb | Juan,
Buen día. ¿Qué Fiveweb usas, el de Antonio o el de Laiton?.
Sería muy bueno que compartieras algún detalle por favor.
Muy agradecida. |
para Antonio: estado Fiveweb | Elvira,
Usa el nuestro <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
para Antonio: estado Fiveweb | Leandro,
Si te interesa, tengo un sistema completo que hace lo que necesitas, y esta escrito en PHP, el cual me ha servido controlar las citas de los pacientes de una clinica, y luego con otra aplicación hecha con FiveWin hago el enlace a la base de datos MySQL, para contabilizar los pagos efectuados en linea.
Saludos.
Carlos. |
para Antonio: estado Fiveweb | Hola Carlos.
Si me permites, te estere haciendo algunas consultas, ya que estaremos probando FiveWeb...
saludos |
para Antonio: estado Fiveweb | Claro devtuxtla,
Si en algo puedo ayudar, sera un gusto poder hacerlo.
Saludos.
Carlos. |
para Antonio: hbmk2 | Hola Antonio,
Me gustaría usar hbmk2.
Por favor, ¿podrías compatir los archivos .hbc que Viktor preparó?.
Muchas gracias. |
para Antonio: menú TGET Memo | Antonio:
¿Sería posible que el contenido de este menú estuviera en un .ch, language.ch por ejemplo, para traducirlo al castellano sin necesidad de añadir el .prg al proyecto?.
O mejor, que los mensajes de las funciones de fivewin cambiaran de idioma con algún SET FIVEWINLANGUAGE TO SPANISH.
Gracias <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
para Antonio: problema con GET ON CHANGE en ultimo FWH | Hola Antonio:
Hago esto:
REDEFINE GET cCODPOSTAL ID 104 OF oFld:aDialogs[ 1 ] ;
ON CHANGE( IIF( Empty( cDPOSTAL ), cDPOSTAL := cCODPOSTAL, ), oFld:Update() )
REDEFINE GET cDPOSTAL ID 103 OF oFld:aDialogs[ 3 ] UPDATE
De este modo, cuando se introduce cCODPOSTAL y cDPOSTAL está vacío, se completa este último campo con cCODPOSTAL.
Esto funcionaba pefectamente con la versión 2.4 de FWH, pero ahora ha dejado de funcionar. ¿Por qué?. ¿Cómo lo soluciono?
Muchísimas gracias. Salu2 |
para Antonio: problema con GET ON CHANGE en ultimo FWH | Prueba a hacer:
REDEFINE GET cCODPOSTAL ID 104 OF oFld:aDialogs[ 1 ] ;
ON CHANGE( IIF( Empty( cDPOSTAL ), cDPOSTAL := cCODPOSTAL, ), oFld:[color=red:36b4qdoe]aDialogs[ 3 ]:[/color:36b4qdoe]Update() ) |
para Antonio: problema con GET ON CHANGE en ultimo FWH | Sigue sin funcionar, creo que es culpa de un cambio en los GETS. Pero antes funcionaba correctamente. |
para Antonio: problema con GET ON CHANGE en ultimo FWH | Moises,
Comprueba por favor si suena el MsgBeep():
REDEFINE GET cCODPOSTAL ID 104 OF oFld:aDialogs[ 1 ] ;
ON CHANGE( IIF( Empty( cDPOSTAL ), cDPOSTAL := cCODPOSTAL, ), oFld:aDialogs[ 3 ]:Update(), MsgBeep() ) |
para Antonio: problema con GET ON CHANGE en ultimo FWH | Sí funciona el msgbepp(), suena cada vez que se introduce un caracter. |
para Antonio: problema con GET ON CHANGE en ultimo FWH | Prueba entonces así:
REDEFINE GET cCODPOSTAL ID 104 OF oFld:aDialogs[ 1 ] ;
ON CHANGE( IIF( Empty( cDPOSTAL ), cDPOSTAL := cCODPOSTAL, ), oGet:Refresh() )
REDEFINE GET oGet VAR cDPOSTAL ID 103 OF oFld:aDialogs[ 3 ] UPDATE |
para Antonio: problema con GET ON CHANGE en ultimo FWH | [quote="MOISES":2vi3myfp]Sí funciona el msgbepp(), suena cada vez que se introduce un caracter.[/quote:2vi3myfp]
Creo que has elegido mal el evento para propagar el cambio.
Con la primera tecla cDPostal toma el valor de esa tecla, digamos 'X', es decir que ya no está nunca más vacía, asi es que solo va a cambiar con la primera tecla ya que Empty( cDPostal ) => .F..
Que tal 'On LOSTFOCUS' ? no me acuerdo si hay un evento así disponible, no tengo aca la FW, pero ese es el método. Chequea el Fivewin.ch para ver como se llama el evento en la declaracion del get.
Saludos,
Carlos. |
para Antonio: problema con GET ON CHANGE en ultimo FWH | Hola Carlos:
Muchas gracias por tu respuesta. Lo curioso es que este código si funcionaba en versiones anteriores de FWH.
Le he mandado a Antonio un ejemplo para testearlo a ver que me dice.
Salu2 |
para Antonio: problema con GET ON CHANGE en ultimo FWH | Moises,
>
REDEFINE GET cCODPOSTAL ID 104 OF oFld:aDialogs[ 1 ] ;
ON CHANGE( IIF( Empty( cDPOSTAL ), cDPOSTAL := cCODPOSTAL, ), oGet:Refresh() )
>
El efecto que conseguirías con ese código es que cDPOSTAL contenga el [b:2vvg0zg0]primer[/b:2vvg0zg0] caracter de cCODPOSTAL. Es eso lo que quieres hacer ? |
para Antonio: problema con GET ON CHANGE en ultimo FWH | Antonio:
No, lo que quiero es que cDPOSTAL sea cCODPOSTAL siempre que la primera este vacía y con toda su longitud. Pero ni siquiera coge el primer carácter.
Te envié un ejemplo para que lo puedas probar cuando tengas un rato libre. Te comento que con FWH 2.4 funcionaba sin problemas.
Muchas gracias. Salu2 |
para Antonio: problema con GET ON CHANGE en ultimo FWH | Moises,
Tienes que hacerlo de esta forma:
REDEFINE GET cCODPOSTAL ID 104 OF oFld:aDialogs[ 1 ] ;
[color=red:ippy4adk]VALID[/color:ippy4adk] ( IIF( Empty( cDPOSTAL ), cDPOSTAL := cCODPOSTAL, ), oGet:Refresh(), .T. )
En la versión 2.4 el ON CHANGE no funcionaba para cada pulsación de tecla |
para Antonio: problema con GET ON CHANGE en ultimo FWH | Muchas gracias Antonio, funciona estupendo!!. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.