topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
A better Solution to adjust Panel-Height / Explorerbar ?
|
I found a adjustment oPanel4:nBodyheight,
but it doesn't work like expected ( doesn't define a Panel-Area, to put some Controls ).
It only adjusts the Distance to the next Panel.
Maybe still another Solution :
[img:io5ybmsj]http://www.pflegeplus.com/pictures/panel3.jpg[/img:io5ybmsj]
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A big hit: Neither Apache and mod_harbour are needed
|
Dear friends,
Today a milestone hit has arrived:
Apache (or IIS) and mod_harbour are NO LONGER needed <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
In less than 100 lines of code, both are no longer needed
Stay tuned for a new revolution <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
|
A big hit: Neither Apache and mod_harbour are needed
|
What??? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
EMG
|
A big hit: Neither Apache and mod_harbour are needed
|
Can you give us a little clue ?
|
A big hit: Neither Apache and mod_harbour are needed
|
It is just a small library that you use from any Harbour app and you no longer need Apache neither mod_harbour <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
All your mod_harbour code will be compatible, but you can do it much much simpler <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
A big hit: Neither Apache and mod_harbour are needed
|
So you still have to install something on the web server, right? <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( -->
EMG
|
A big hit: Neither Apache and mod_harbour are needed
|
Modern development languages as Node, etc. provide a powerful web server that you can easily built in your apps.
Now we have such power in Harbour too <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> A simple class that turns your desktop app into a web server too. So we
can have the best of both desktop and web in our apps.
This opens endless possibilities...
No need to install Apache, mod_harbour, etc... just keep coding using Harbour as usual, the language that we use and love <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
With just two lines of code you create the server and make it run. This is a dream come true
|
A big hit: Neither Apache and mod_harbour are needed
|
Dear Enrico,
Nothing at all, except your Harbour app
|
A big hit: Neither Apache and mod_harbour are needed
|
I don't understand but looking forward to see how it will work.
EMG
|
A big hit: Neither Apache and mod_harbour are needed
|
<!-- s:idea: --><img src="{SMILIES_PATH}/icon_idea.gif" alt=":idea:" title="Idea" /><!-- s:idea: --> <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A big hit: Neither Apache and mod_harbour are needed
|
I will be pending
|
A big hit: Neither Apache and mod_harbour are needed
|
Estoy deseando verlo!!!!!!!
Actualmente TsPlus para hacer funcionar las aplicaciones de escritorio de Harbour en un entorno web.
|
A big hit: Neither Apache and mod_harbour are needed
|
Esta es la mejor noticias, que me han dado hoy que estoy de cumple años. Gracias Antonio Linares.
|
A big hit: Neither Apache and mod_harbour are needed
|
Hola a todos,
Antonio, para los que usan Harbour+FiveWin...
¿Alguna solución?
Aun así, lo que explicas es fantástico.
Muchas gracias.
|
A big hit: Neither Apache and mod_harbour are needed
|
Saludos Antonio
Favor no olviden a los que estamos en xHarbour ...
|
A big hit: Neither Apache and mod_harbour are needed
|
Funciona correctamente con ambos Harbour y xHarbour <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Y también con FiveWin <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
|
A big hit: Neither Apache and mod_harbour are needed
|
Let me know Antonio: we have two different running programs in two different
machines (or in the same) Server Side and Client side,
both written and compiled my me.
Server Side performs database access and share information for client
through tcp/ip protocol?
is it correct?
very very nice <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) -->
congratulations
|
A big hit: Neither Apache and mod_harbour are needed
|
Dear Marco,
You only need one harbour exe and you use it from the web browser (Chrome, edge, etc)
You can use it locally accesing localhost from the web browser or remotely given its IP address.
It's very simple and this allows to build web apps using Harbour very easily <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
A big hit: Neither Apache and mod_harbour are needed
|
Solo queda preguntar ... para cuando ?
|
A big hit: Neither Apache and mod_harbour are needed
|
Hi Antonio
Does this mean that harbour app may be an internal server socket that works with HTTP/HTTPS?
Something like an async function
const requestListener = function (req, res) {
res.writeHead(200);
res.end("Hello World!");
};
This is interesting because I have written a JWT library <!-- m --><a class="postlink" href="https://github.com/matteobaccan/HarbourJwt">https://github.com/matteobaccan/HarbourJwt</a><!-- m --> and I'm working on an application written with apache+https and mod_harbour where I have put some rest web service with JWT authentication
With an internal (mono or multithreaded? Like node or Spring Boot?) HTTPS server I can deploy web service more easily also on docker environment
ciao
matteo
|
A big hit: Neither Apache and mod_harbour are needed
|
Dear Matteo,
HbWeb is a library that you can use from any Harbour app (text mode or GUI mode) and it delivers a web server using sockets.
Previously we needed Apache (or IIS) + mod_harbour + PRGs (and HRBs) <---> web browser
With HbWeb we only need a Harbour app <---> web browser
We are still on development and as soon as the first demos are ready, we will share them.
|
A big hit: Neither Apache and mod_harbour are needed
|
[quote="Antonio Linares":3ndg5pli]Dear Matteo,
HbWeb is a library that you can use from any Harbour app (text mode or GUI mode) and it delivers a web server using sockets.
Previously we needed Apache (or IIS) + mod_harbour + PRGs (and HRBs) <---> web browser
With HbWeb we only need a Harbour app <---> web browser
We are still on development and as soon as the first demos are ready, we will share them.[/quote:3ndg5pli]
Excellent!!
|
A big hit: Neither Apache and mod_harbour are needed
|
I'm interested!
If you need more testers, let me know!
<!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Patrick
|
A big hit: Neither Apache and mod_harbour are needed
|
Excelente Antonio
esperaremos con paciencia <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
A big hit: Neither Apache and mod_harbour are needed
|
Que belleza!!
Gracias Antonio por estar siempre ahí.
Estaremos atentos a los primeros ejemplos.
|
A big hit: Neither Apache and mod_harbour are needed
|
i am interested... if need beta tester, i am here
<!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
thanks for your work
|
A big hit: Neither Apache and mod_harbour are needed
|
We are going to deliver the first demos real soon... <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
|
A big hit: Neither Apache and mod_harbour are needed
|
Hola Antonio
Thanks for your big bigs efforts.
a little suggestion by a os nix user if i can.
The preferred directory where for example firebird sql server choose to install its software is /opt directory, clearly not all linux and nix os have this directory ( Ubuntu for example have it, freebsd not, but you can create this directory, whithout any problem.
There ( /opt ) i clone harbour and many other software, and there i put for example my software app
so under /opt
there is /opt/harbour
and /opt/myapp
and for example /opt/netio server
i change the ownership of this directories to myself with chown and chgrp to modify source and to run executables
and there i build all my software.
so i suggest to you that the software you create should work in /opt directory
regards
Domenico
|
A big hit: Neither Apache and mod_harbour are needed
|
Domenico,
Many thanks for your valuable suggestions!
|
A big hit: Neither Apache and mod_harbour are needed
|
Hola a tod@s
Antonio alguna imagen de como va hacer la nueva plataforma de harbourWEB <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
A big hit: Neither Apache and mod_harbour are needed
|
Patricio,
Está a punto de salir del horno... <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
|
A big hit: Neither Apache and mod_harbour are needed
|
Execiting ! Hope turn out soon!
Shuming Wang
|
A big hit: Neither Apache and mod_harbour are needed
|
In next FWH 22.06 an automatic "webapp" feature is available generating automatically a web app from our FWH desktop app.
In example, we take FWH\samples\fivedbu.prg or any other app, we build it and we select the "webapp" feature:
[img:b3d16sfq]https://github.com/FiveTechSoft/screenshots/blob/master/webapp1.jpg?raw=true[/img:b3d16sfq]
Now we go to the web browser and go to "localhost" and see what we get:
[img:b3d16sfq]https://github.com/FiveTechSoft/screenshots/blob/master/webapp2.jpg?raw=true[/img:b3d16sfq]
Still there are many things to fine tune and solve, but I would say that it looks very promising... <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
A big hit: Neither Apache and mod_harbour are needed
|
Amazing!!
Enviado desde mi motorola edge 20 lite mediante Tapatalk
|
A big hit: Neither Apache and mod_harbour are needed
|
<!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
|
A big hit: Neither Apache and mod_harbour are needed
|
Dear Antonio,
I'm looking forward to it.
Best regards,
Otto
|
A big hit: Neither Apache and mod_harbour are needed
|
Antonio, out of curiosity.
Are you basing it on an embedded server or do you translate to html-js-css? or both?
eager to try...
|
A big hit: Neither Apache and mod_harbour are needed
|
Victor,
both.
FWH automatically generates the HTML and launches a web server so the web app and the desktop app can communicate.
We will be posting more examples and you will know and test its progress <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
We are going to need your feedback and there will be many things to fix, as we are opening a new road...
|
A big hit: Neither Apache and mod_harbour are needed
|
Muy bien, excelente Antonio.
Estare pendiente
|
A big hit: Neither Apache and mod_harbour are needed
|
[quote="Antonio Linares":2710wstn]Victor,
both.
FWH automatically generates the HTML and launches a web server so the web app and the desktop app can communicate.
We will be posting more examples and you will know and test its progress <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
We are going to need your feedback and there will be many things to fix, as we are opening a new road...[/quote:2710wstn]
FWH 32b or 64b?
O no importa?
Algún compilador en concreto?
Gracias,
|
A big hit: Neither Apache and mod_harbour are needed
|
[quote="Antonio Linares":fd712x8b]Victor,
both.
FWH automatically generates the HTML and launches a web server so the web app and the desktop app can communicate.
We will be posting more examples and you will know and test its progress <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
We are going to need your feedback and there will be many things to fix, as we are opening a new road...[/quote:fd712x8b]
Wow! Antonio it's hard and great work!
something like XAML?
code once for multiple environments...
|
A big hit: Neither Apache and mod_harbour are needed
|
Antonio:
Actualmente sólo utilizo harbour en modo consola.
¿ Qué opción habrá disponible para los que no usamos FW ?
|
A big hit: Neither Apache and mod_harbour are needed
|
Paso a paso y ya veremos hasta donde podemos llegar... <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
A big hit: Neither Apache and mod_harbour are needed
|
Mr. máster Linares,
¿ Para cuando una quedada por skype para que nos cuentes algo más del proyecto ?
¿ Algun exe que podamos crear ? Es que tenemos que crear "ambiente" entre los clientes
Salu2
|
A big hit: Neither Apache and mod_harbour are needed
|
Dear Antonio,
Will the code that "WebApp" generates be processed by the existing mod harbour server.
Or will there be 2 mod harbour versions in the future?
Best regards,
Otto
[img:3qchxgyt]https://github.com/FiveTechSoft/screenshots/blob/master/webapp1.jpg?raw=true[/img:3qchxgyt]
|
A big hit: Neither Apache and mod_harbour are needed
|
Exelente!
Gracias Antonio.
|
A big hit: Neither Apache and mod_harbour are needed
|
Antonio
Did you say you can take your desktop client server app and port it to a web app with 2 lines of code ??
Rick Lipkin
|
A big hit: Neither Apache and mod_harbour are needed
|
Dear Rick,
I did not <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> I would be lying if I said so.
Its a simpler way to the web, but there is still a lot of work to do. And we are just starting to understand it...
It helps you to start with it, but there are things to change. How far can we go ? We still don't know it...
|
A big hit: Neither Apache and mod_harbour are needed
|
Antonio
I am VERY interested ... put me on your List ...
Rick Lipkin
|
A big hit: Neither Apache and mod_harbour are needed
|
On the right side there is a FWH dialog running, on the left side there is a HTML dialog automatically generated from the FWH one:
Thanks to Cristobal, Charly, Bruno, Kwon... for their help and inspiration. Now we go for the most difficult part. Fingers crossed... <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
[img:177ob7i2]https://github.com/FiveTechSoft/screenshots/blob/master/webapp3.jpg?raw=true[/img:177ob7i2]
|
A big hit: Neither Apache and mod_harbour are needed
|
Hola se ve interesante, esto también funcionara la para los celulares ,o solo para computadores
|
A big hit: Neither Apache and mod_harbour are needed
|
Estimado Patricio,
Para cualquier dispositivo que soporte un navegador web: telefonos, tablets, smartTVs, PCs, etc <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
A big hit: Neither Apache and mod_harbour are needed
|
Hola, es algo magnífico.
Sólo tengo la duda si va a soportar las apps en 32-bit.
Felicidades!
Muchas gracias.
|
A big hit: Neither Apache and mod_harbour are needed
|
Estimado Joel,
32 y 64 bits
saludos
|
A big hit: Neither Apache and mod_harbour are needed
|
[quote="Antonio Linares":1f30n9b3]On the right side there is a FWH dialog running, on the left side there is a HTML dialog automatically generated from the FWH one:
Thanks to Cristobal, Charly, Bruno, Kwon... for their help and inspiration. Now we go for the most difficult part. Fingers crossed... <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
[img:1f30n9b3]https://github.com/FiveTechSoft/screenshots/blob/master/webapp3.jpg?raw=true[/img:1f30n9b3][/quote:1f30n9b3]
Hola Antonio,
Danos una alegría, como llevais el asunto de FWH por web?
Muchas gracias,
|
A big hit: Neither Apache and mod_harbour are needed
|
Despacito y con buena letra <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
A big hit: Neither Apache and mod_harbour are needed
|
[quote="Antonio Linares":1f06mrcp]Despacito y con buena letra <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:1f06mrcp]
Totalmente de acuerdo.
Pero es que estoy pensando en actualizar mi versión de FWH... entonces claro...
|
A big hit: Neither Apache and mod_harbour are needed
|
Carlos,
Si actualizas ahora, tendrás actualizaciones gratuitas hasta que completemos la capacidad WebApp (HTML) de FWH <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
A big hit: Neither Apache and mod_harbour are needed
|
Hello everybody,
we are trying the new HbWeb functionality that seems really interesting.
However in our tests on FiveDBU.exe we can't obtain the results shown in the forum.
The Windows application FiveDBU.exe is generated with buildhmt.bat and seems to run as expected.
When we start the webserver with the contestual menu item "WebApp" and go to <!-- m --><a class="postlink" href="http://localhost">http://localhost</a><!-- m --> on the browser we can see the main window of the Windows application.
But clicking on any voice of the menu or button does nothing. The only thing that happens is that the URL is changed according to the button/menuitem we have selected but the rendering of the HTML page is not updated.
At the same time, in the windows application, the contestual menu item "Controller" shows an empty list, and clicking on the item "Dialogs" we get the following error that close the application:
[code=fw:2lelifeb]<div class="fw" id="{CB}" style="font-family: monospace;">Application<br />===========<br /> Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">B</span>:\fwh2210\samples\fivedbu.exe <span style="color: #000000;">(</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">Size</span>: <span style="color: #000000;">7</span>,<span style="color: #000000;">683</span>,<span style="color: #000000;">072</span> bytes<br /> Compiler version: <span style="color: #000000;">Harbour</span> <span style="color: #000000;">3.2</span>.0dev <span style="color: #000000;">(</span>r2008190002<span style="color: #000000;">)</span><br /> FiveWin version: <span style="color: #000000;">FWH</span> <span style="color: #000000;">22.10</span><br /> C compiler version: <span style="color: #000000;">Borland</span>/Embarcadero C++ <span style="color: #000000;">7.0</span> <span style="color: #000000;">(</span><span style="color: #000000;">32</span>-bit<span style="color: #000000;">)</span><br /> Windows <span style="color: #000000;">10</span> <span style="color: #000000;">64</span> Bits, version: <span style="color: #000000;">6.2</span>, Build <span style="color: #000000;">9200</span> <br /><br /> Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">17</span> mins <span style="color: #000000;">58</span> secs <br /> Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">07</span>/<span style="color: #000000;">12</span>/<span style="color: #000000;">2022</span>, <span style="color: #000000;">17</span>:<span style="color: #000000;">26</span>:<span style="color: #000000;">59</span><br /> Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1132</span> Bound error: <span style="color: #000000;">array</span> access<br /> Args:<br /> <span style="color: #000000;">[</span> <span style="color: #000000;">1</span><span style="color: #000000;">]</span> = H <span style="color: #000000;">{</span>=><span style="color: #000000;">}</span><br /> <span style="color: #000000;">[</span> <span style="color: #000000;">2</span><span style="color: #000000;">]</span> = C <span style="color: #0000ff;">Dialogs</span><br /><br />Stack Calls<br />===========<br /> Called <span style="color: #0000ff;">from</span>: .\source\<span style="color: #00C800;">function</span>\WEBAPP.PRG => WA_SHOWCODEDIALOGS<span style="color: #000000;">(</span> <span style="color: #000000;">253</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">fivedbu</span>.prg => <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>BUILDPOPUPMENU<span style="color: #000000;">(</span> <span style="color: #000000;">124</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">MENU</span>.PRG => TMENU:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span> <span style="color: #000000;">1810</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">fivedbu</span>.prg => BUILDPOPUPMENU<span style="color: #000000;">(</span> <span style="color: #000000;">127</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">fivedbu</span>.prg => <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>FIVEDBU<span style="color: #000000;">(</span> <span style="color: #000000;">92</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TMDICLIENT:<span style="color: #000000;">RBUTTONDOWN</span><span style="color: #000000;">(</span> <span style="color: #000000;">2184</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => TMDICLIENT:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">(</span> <span style="color: #000000;">3689</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => WINRUN<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span> <span style="color: #000000;">1114</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">fivedbu</span>.prg => FIVEDBU<span style="color: #000000;">(</span> <span style="color: #000000;">92</span> <span style="color: #000000;">)</span><br /><br />System<br />======<br /> CPU type: <span style="color: #000000;">Intel</span><span style="color: #000000;">(</span>R<span style="color: #000000;">)</span> Core<span style="color: #000000;">(</span>TM<span style="color: #000000;">)</span> i9-9900K CPU @ <span style="color: #000000;">3</span>.60GHz <span style="color: #000000;">3600</span> Mhz<br /> Hardware memory: <span style="color: #000000;">32434</span> megs<br /><br /> Free System resources: <span style="color: #000000;">90</span> %<br /> GDI resources: <span style="color: #000000;">90</span> %<br /> User resources: <span style="color: #000000;">90</span> %<br /><br /> Windows total applications running: <span style="color: #000000;">6</span><br /> <span style="color: #000000;">1</span> , B:\fwh2210\samples\fivedbu.exe <br /> <span style="color: #000000;">2</span> , C:\WINDOWS\System32\shcore.dll <br /> <span style="color: #000000;">3</span> , C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6<span style="color: #000000;">.0</span><span style="color: #000000;">.19041</span>.1110_none_a8625c <br /> <span style="color: #000000;">4</span> DDE <span style="color: #00C800;">Server</span> <span style="color: #0000ff;">Window</span>, C:\WINDOWS\System32\OLE32.DLL <br /> <span style="color: #000000;">5</span> GDI+ <span style="color: #0000ff;">Window</span> <span style="color: #000000;">(</span>TabTip.exe<span style="color: #000000;">)</span>, <br /> <span style="color: #000000;">6</span> GDI+ <span style="color: #0000ff;">Window</span> <span style="color: #000000;">(</span>fivedbu.exe<span style="color: #000000;">)</span>, C:\WINDOWS\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1<span style="color: #000000;">.1</span><span style="color: #000000;">.19041</span>.1348_none_d94f9953e1060d <br /><br />Variables in use<br />================<br /> Procedure Type Value<br /> ==========================<br /> WA_SHOWCODEDIALOGS<br /> Param <span style="color: #000000;">1</span>: <span style="color: #000000;">O</span> <span style="color: #00C800;">Class</span>: <span style="color: #000000;">ERROR</span><br /> <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>BUILDPOPUPMENU<br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">1</span>: <span style="color: #000000;">U</span> <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">2</span>: <span style="color: #000000;">A</span> Len: <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">3</span>: <span style="color: #000000;">U</span> <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">4</span>: <span style="color: #000000;">U</span> <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">5</span>: <span style="color: #000000;">U</span> <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">6</span>: <span style="color: #000000;">U</span> <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">7</span>: <span style="color: #000000;">U</span> <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">8</span>: <span style="color: #000000;">U</span> <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">9</span>: <span style="color: #000000;">U</span> <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">10</span>: <span style="color: #000000;">U</span> <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">11</span>: <span style="color: #000000;">S</span> <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">12</span>: <span style="color: #000000;">U</span> <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">13</span>: <span style="color: #000000;">H</span> <span style="color: #000000;">{</span>=><span style="color: #000000;">}</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">14</span>: <span style="color: #000000;">C</span> <span style="color: #ff0000;">"Dialogs"</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">15</span>: <span style="color: #000000;">U</span> <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">16</span>: <span style="color: #000000;">U</span> <br /> TMENU:<span style="color: #0000ff;">ACTIVATE</span><br /> Param <span style="color: #000000;">1</span>: <span style="color: #000000;">O</span> <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TMENUITEM</span><br /> BUILDPOPUPMENU<br /> Param <span style="color: #000000;">1</span>: <span style="color: #000000;">N</span> <span style="color: #000000;">370</span><br /> Param <span style="color: #000000;">2</span>: <span style="color: #000000;">N</span> <span style="color: #000000;">755</span><br /> Param <span style="color: #000000;">3</span>: <span style="color: #000000;">O</span> <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TMDIFRAME</span><br /> Param <span style="color: #000000;">4</span>: <span style="color: #000000;">L</span> .T.<br /> Param <span style="color: #000000;">5</span>: <span style="color: #000000;">N</span> <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">1</span>: <span style="color: #000000;">A</span> Len: <span style="color: #000000;">2</span><br /> <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>FIVEDBU<br /> Param <span style="color: #000000;">1</span>: <span style="color: #000000;">N</span> <span style="color: #000000;">370</span><br /> Param <span style="color: #000000;">2</span>: <span style="color: #000000;">N</span> <span style="color: #000000;">755</span><br /> Param <span style="color: #000000;">3</span>: <span style="color: #000000;">O</span> <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TMDIFRAME</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">1</span>: <span style="color: #000000;">O</span> <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TMENU</span><br /> TMDICLIENT:<span style="color: #000000;">RBUTTONDOWN</span><br /> Param <span style="color: #000000;">1</span>: <span style="color: #000000;">N</span> <span style="color: #000000;">370</span><br /> Param <span style="color: #000000;">2</span>: <span style="color: #000000;">N</span> <span style="color: #000000;">755</span><br /> Param <span style="color: #000000;">3</span>: <span style="color: #000000;">N</span> <span style="color: #000000;">2</span><br /> Param <span style="color: #000000;">4</span>: <span style="color: #000000;">O</span> <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TMDICLIENT</span><br /> TMDICLIENT:<span style="color: #000000;">HANDLEEVENT</span><br /> Param <span style="color: #000000;">1</span>: <span style="color: #000000;">N</span> <span style="color: #000000;">370</span><br /> Param <span style="color: #000000;">2</span>: <span style="color: #000000;">N</span> <span style="color: #000000;">755</span><br /> Param <span style="color: #000000;">3</span>: <span style="color: #000000;">N</span> <span style="color: #000000;">2</span><br /> _FWH<br /> Param <span style="color: #000000;">1</span>: <span style="color: #000000;">N</span> <span style="color: #000000;">516</span><br /> Param <span style="color: #000000;">2</span>: <span style="color: #000000;">N</span> <span style="color: #000000;">2</span><br /> Param <span style="color: #000000;">3</span>: <span style="color: #000000;">N</span> <span style="color: #000000;">24249075</span><br /> WINRUN<br /> Param <span style="color: #000000;">1</span>: <span style="color: #000000;">N</span> <span style="color: #000000;">24249075</span><br /> Param <span style="color: #000000;">2</span>: <span style="color: #000000;">N</span> <span style="color: #000000;">516</span><br /> Param <span style="color: #000000;">3</span>: <span style="color: #000000;">N</span> <span style="color: #000000;">2</span><br /> Param <span style="color: #000000;">4</span>: <span style="color: #000000;">N</span> <span style="color: #000000;">24249075</span><br /> Param <span style="color: #000000;">5</span>: <span style="color: #000000;">N</span> <span style="color: #000000;">2</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">1</span>: <span style="color: #000000;">O</span> <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TMDICLIENT</span><br /> TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><br /> Param <span style="color: #000000;">1</span>: <span style="color: #000000;">N</span> <span style="color: #000000;">4659632</span><br /> FIVEDBU<br /> Param <span style="color: #000000;">1</span>: <span style="color: #000000;">C</span> <span style="color: #ff0000;">"MAXIMIZED"</span><br /> Param <span style="color: #000000;">2</span>: <span style="color: #000000;">U</span> <br /> Param <span style="color: #000000;">3</span>: <span style="color: #000000;">B</span> <span style="color: #000000;">{</span>|| ... <span style="color: #000000;">}</span><br /> Param <span style="color: #000000;">4</span>: <span style="color: #000000;">U</span> <br /> Param <span style="color: #000000;">5</span>: <span style="color: #000000;">U</span> <br /> Param <span style="color: #000000;">6</span>: <span style="color: #000000;">B</span> <span style="color: #000000;">{</span>|| ... <span style="color: #000000;">}</span><br /> Param <span style="color: #000000;">7</span>: <span style="color: #000000;">U</span> <br /> Param <span style="color: #000000;">8</span>: <span style="color: #000000;">U</span> <br /> Param <span style="color: #000000;">9</span>: <span style="color: #000000;">U</span> <br /> Param <span style="color: #000000;">10</span>: <span style="color: #000000;">U</span> <br /> Param <span style="color: #000000;">11</span>: <span style="color: #000000;">U</span> <br /> Param <span style="color: #000000;">12</span>: <span style="color: #000000;">U</span> <br /> Param <span style="color: #000000;">13</span>: <span style="color: #000000;">U</span> <br /> Param <span style="color: #000000;">14</span>: <span style="color: #000000;">U</span> <br /> Param <span style="color: #000000;">15</span>: <span style="color: #000000;">U</span> <br /> Param <span style="color: #000000;">16</span>: <span style="color: #000000;">U</span> <br /> Param <span style="color: #000000;">17</span>: <span style="color: #000000;">B</span> <span style="color: #000000;">{</span>|| ... <span style="color: #000000;">}</span><br /> Param <span style="color: #000000;">18</span>: <span style="color: #000000;">U</span> <br /> Param <span style="color: #000000;">19</span>: <span style="color: #000000;">U</span> <br /> Param <span style="color: #000000;">20</span>: <span style="color: #000000;">L</span> .F.<br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">1</span>: <span style="color: #000000;">O</span> <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TMDIFRAME</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">2</span>: <span style="color: #000000;">O</span> <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TSCROLLBAR</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">3</span>: <span style="color: #000000;">O</span> <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TSCROLLBAR</span><br /><br />Linked RDDs<br />===========<br /> DBF<br /> DBFFPT<br /> DBFBLOB<br /> DBFCDX<br /> DBFNTX<br /><br />DataBases in use<br />================<br /><br />Classes in use:<br />===============<br /> <span style="color: #000000;">1</span> ERROR<br /> <span style="color: #000000;">2</span> HBCLASS<br /> <span style="color: #000000;">3</span> HBOBJECT<br /> <span style="color: #000000;">4</span> TPREVIEW<br /> <span style="color: #000000;">5</span> TINI<br /> <span style="color: #000000;">6</span> TFONT<br /> <span style="color: #000000;">7</span> TWINDOW<br /> <span style="color: #000000;">8</span> TCONTROL<br /> <span style="color: #000000;">9</span> TBITMAP<br /> <span style="color: #000000;">10</span> TMDIFRAME<br /> <span style="color: #000000;">11</span> TMENU<br /> <span style="color: #000000;">12</span> TREG32<br /> <span style="color: #000000;">13</span> TMENUITEM<br /> <span style="color: #000000;">14</span> TMRU<br /> <span style="color: #000000;">15</span> TBRUSH<br /> <span style="color: #000000;">16</span> TMDICLIENT<br /> <span style="color: #000000;">17</span> TSCROLLBAR<br /> <span style="color: #000000;">18</span> TBAR<br /> <span style="color: #000000;">19</span> TRECT<br /> <span style="color: #000000;">20</span> TBTNBMP<br /> <span style="color: #000000;">21</span> TMSGBAR<br /> <span style="color: #000000;">22</span> TMSGITEM<br /> <span style="color: #000000;">23</span> TTIMER<br /> <span style="color: #000000;">24</span> HBWEBSERVER<br /> <span style="color: #000000;">25</span> TDIALOG<br /> <span style="color: #000000;">26</span> TXBROWSE<br /> <span style="color: #000000;">27</span> TXBRWCOLUMN<br /> <span style="color: #000000;">28</span> TCLIPBOARD<br /> <span style="color: #000000;">29</span> GDIBMP<br /> <span style="color: #000000;">30</span> TCHECKBOX<br /> <span style="color: #000000;">31</span> TSAY<br /> <span style="color: #000000;">32</span> TCOMBOBOX<br /> <span style="color: #000000;">33</span> TGET<br /> <span style="color: #000000;">34</span> <span style="color: #0000ff;">GET</span><br /> <span style="color: #000000;">35</span> TCLIPGET<br /> <span style="color: #000000;">36</span> TBUTTON<br /> <span style="color: #000000;">37</span> TSTRUCT<br /><br />Memory Analysis<br />===============<br /> <span style="color: #000000;">754</span> <span style="color: #00C800;">Static</span> variables<br /><br /> Dynamic memory consume:<br /> <span style="color: #000000;">Actual</span> Value: <span style="color: #000000;">2555904</span> bytes<br /> Highest Value: <span style="color: #000000;">2555904</span> bytes<br /> </div>[/code:2lelifeb]
Looking at the code we got the impression that the variable hWebApp has no "Dialogs" key inside.
Could someone point out what are we doing wrong?
Thanks in advance.
|
A big hit: Neither Apache and mod_harbour are needed
|
I just saw this today and find it very interesting. I wanted to test it out, and looked at your example with FiveDBU.
I have FWH 2210, Harbour, and MSvC 2022 for the build.
I used BuildH32 to build FiveDBU.
The first problem I found was that the Function WebServer had to be commented out because it exists in the FW library.
Secondly, I do not see, in the running program, any option for the Webserver option you show on the screen shot.
I am looking forward to working with this, so I hope to resolve my confusion here.
|
A big hit: Neither Apache and mod_harbour are needed
|
Dear Tim,
FiveDBU must be built using Harbour multithread mode, this requires to use hbmk2 with the flag -MT
|
A big hit: Neither Apache and mod_harbour are needed
|
hi all
there is news about WebApp ?
TIA
Maurizio Menabue
|
A big hit: Neither Apache and mod_harbour are needed
|
Dear Maurizio,
We had several issues to attend, so for now, the development is delayed
|
A bitmap transparent on another bitmap
|
it is possible ?
and How ?
|
A bitmap transparent on another bitmap
|
A transparent VTitle without Border :
[img:1fxcgu6u]http://www.pflegeplus.com/pictures/bmp_bmp.jpg[/img:1fxcgu6u]
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A bitmap transparent on another bitmap
|
can you post the source NO vtitle please
|
A bitmap transparent on another bitmap
|
The same with NO VTitle :
[img:1bmsrp9g]http://www.pflegeplus.com/pictures/bmp_bmp1.jpg[/img:1bmsrp9g]
[code=fw:1bmsrp9g]<div class="fw" id="{CB}" style="font-family: monospace;"><br />...<br />...<br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span> ;<br /><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> W_ALPHA<span style="color: #000000;">(</span> hDC <span style="color: #000000;">)</span> ;<br /><span style="color: #0000ff;">VALID</span> MsgYesNo<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Do you want to end?"</span> <span style="color: #000000;">)</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><br /><br /><br /><span style="color: #B900B9;">// --------- W-ALPHA-BMP --------------------------------------</span><br /><br /><span style="color: #00C800;">FUNCTION</span> W_ALPHA<span style="color: #000000;">(</span> hDC <span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> oBmp1, oBmp2<br /><br /><span style="color: #B900B9;">// Left / Top</span><br /><span style="color: #0000ff;">DEFINE</span> BITMAP oBmp1 FILENAME <span style="color: #ff0000;">"EARTH1.BMP"</span><br />ABPaint<span style="color: #000000;">(</span> hDC, <span style="color: #000000;">760</span>, <span style="color: #000000;">20</span>, oBmp1:<span style="color: #000000;">hBitmap</span>, <span style="color: #000000;">220</span> <span style="color: #000000;">)</span><br />oBmp1:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #0000ff;">DEFINE</span> BITMAP oBmp2 FILENAME <span style="color: #ff0000;">"PREVIEW.BMP"</span><br />ABPaint<span style="color: #000000;">(</span> hDC, <span style="color: #000000;">820</span>, <span style="color: #000000;">170</span>, oBmp2:<span style="color: #000000;">hBitmap</span>, <span style="color: #000000;">220</span> <span style="color: #000000;">)</span><br />oBmp2:<span style="color: #000000;">End</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 /> </div>[/code:1bmsrp9g]
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->]
|
A bitmap transparent on another bitmap
|
thanks I resolve
and with your help I arrive here :
[img:31m9yj1j]http://img51.imageshack.us/img51/2661/ribbon3.jpg[/img:31m9yj1j]
|
A bitmap transparent on another bitmap
|
Very nice !!!!!!!!!!!
Congratulations <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: -->
|
A bitmap transparent on another bitmap
|
I used only :
ribbon class,trbtn class,rpanel class and only bitmap and btnbmp class
I not modify any class I worked only on the test.prg
We had the solution before our eyes
|
A bug in a disable get
|
Hi everyoneThis code below have a 3 gets, all enabled in first momentThe first get have a valid calling a function and this one show amessage, set the variable lWhen2 with .F. (disabling the secondget) and returns .T.But the cursor dont focus in the third get, it´s back to the firstplease, try the code below and check if the problems realy exist[code:2nb1jd5p]
#include "FiveWin.ch"
FUNCTION Test()
nCpo = 0
nCp2 = 15
cCp3 = SPACE(20)
lWhen1 = .T.
lWhen2 = .T.
lWhen3 = .T.
define dialog oDlg from 01,01 TO 25,50
@ 01,01 say 'I have a valid:' of oDlg
@ 01,10 get oCpo var nCpo pict '9999' of oDlg when lWhen1 valid xFunc()
@ 02,01 say 'I am enable for while:' of oDlg
@ 02,10 get oCp2 var nCp2 pict '99' of oDlg when lWhen2
@ 03,01 say 'I am enable forever:' of oDlg
@ 03,10 get oCp3 var cCp3 pict '@!' of oDlg when lWhen3
activate dialog oDlg center
RETURN
FUNCTION xFunc()
MSGINFO('Testing...')
lWhen2=.F.
oDlg:Aevalwhen()
SysRefresh()
RETURN .t.
[/code:2nb1jd5p]regards and many thanks
|
A bug in a disable get
|
Maybe tyhe 'msginfo' is disturbing the fosus set by the dialog.Have you tried with tracelog ? Frank
|
A bug in a disable get
|
The above program works correctly as expected without MsgInfo(). Even with MsgInfo(), it works second time onwards.But why should it not work when there is MsgInfo() ? I think this is the main quetion raised by Yuri. It is not unusual to have some messages to the user in the valid clauses.
|
A bug in a disable get
|
Yuri,This code is properly working here:[code:n0pnbwu7]
#include "FiveWin.ch"
function Main()
local nCpo := 0, nCp2 := 15, cCp3 := SPACE(20)
local lWhen1 := .T., lWhen2 := .T., lWhen3 := .T.
define dialog oDlg from 01,01 TO 25,50
@ 01,01 say 'I have a valid:' of oDlg
@ 01,10 get oCpo var nCpo pict '9999' of oDlg when lWhen1 valid ( lWhen2 := .F., .T. )
@ 02,01 say 'I am enable for while:' of oDlg
@ 02,10 get oCp2 var nCp2 pict '99' of oDlg when lWhen2
@ 03,01 say 'I am enable forever:' of oDlg
@ 03,10 get oCp3 var cCp3 pict '@!' of oDlg when lWhen3
activate dialog oDlg center
RETURN nil
[/code:n0pnbwu7]
|
A bug in a disable get
|
Mr AntonioThe problem is when the valid is changed to include a msginfo. The problem is when the above code is written as :.... valid ( msginfo( 'something' ), lWhen2 := .f., .t. )
|
A bug in a disable get
|
Yes, right, because the focus sequence can not be interrupted.
|
A bug in a disable get
|
Mr. Antonio and Mr.NageswaraRao, thanks for your suport !The problem happens with any dialog open in a valid function, in exemple above I used a msginfo for a test, but if were a dialog (define dialog...) happen the same error...If no exists dialog or message in the valid function it's works fine, disabling the second get and focus in the third...it would be possible to correct the get/control class for avoid this error ?
|
A bug in a disable get
|
Hi everyone,With a setfocus in the valid function directing the cursor for the third get it's works, but I think that it's not correct, because should be a natural behavior of FWH when the next control is a get and it's enable...for now I solved this way, but I think that should be receive the proper treatment in the FWH classes...regards[code:bbgozrrl]
#include "FiveWin.ch"
FUNCTION Test()
nCpo = 0
nCp2 = 15
cCp3 = SPACE(20)
lWhen1 = .T.
lWhen2 = .T.
lWhen3 = .T.
define dialog oDlg from 01,01 TO 25,50
@ 01,01 say 'I have a valid:' of oDlg
@ 01,10 get oCpo var nCpo pict '9999' of oDlg when lWhen1 valid xFunc()
@ 02,01 say 'I am enable for while:' of oDlg
@ 02,10 get oCp2 var nCp2 pict '99' of oDlg when lWhen2
@ 03,01 say 'I am enable forever:' of oDlg
@ 03,10 get oCp3 var cCp3 pict '@!' of oDlg when lWhen3
activate dialog oDlg center
RETURN
FUNCTION xFunc()
MSGINFO('Testing...')
lWhen2=.F.
oDlg:Aevalwhen()
SysRefresh()
oCp3:SetFocus() ==> HERE
RETURN .t.
[/code:bbgozrrl]
|
A bug in a disable get
|
Yuri,Your solution is fine, because there is no way to know where the focus should go once you open a dialogbox on top of the controls.Windows API uses GetNextDlgTabItem() on a standard change focus sequence:<!-- m --><a class="postlink" href="http://msdn.microsoft.com/en-us/library/ms645495(VS.85">http://msdn.microsoft.com/en-us/library/ms645495(VS.85</a><!-- m -->).aspxbut if such sequence is altered, then its the programmer responsability to decide where the focus should go.
|
A bug in a disable get
|
[quote:219mreip]
Yuri,
Your solution is fine, because there is no way to know where the focus should go once you open a dialogbox on top of the controls.
Windows API uses GetNextDlgTabItem() on a standard change focus sequence:
<!-- m --><a class="postlink" href="http://msdn.microsoft.com/en-us/library/ms645495(VS.85">http://msdn.microsoft.com/en-us/library/ms645495(VS.85</a><!-- m -->).aspx
but if such sequence is altered, then its the programmer responsability to decide where the focus should go.
[/quote:219mreip]thanks Mr.Antonio, you are right, I understand your explanation... regards
|
A bug in a disable get
|
I find it cleaner and neater to code it this way:[code:2qmftqga]@ 01,10 get oCpo var nCpo pict '9999' of oDlg when lWhen1 valid xFunc(oDlg, oCpo)
.
.
FUNCTION xFunc(oDlg, oGet)
MSGINFO('Testing...')
lWhen2=.F.
oDlg:Aevalwhen()
SysRefresh()
oDlg:GoNextCtrl(oGet:hWnd)
RETURN .t.
[/code:2qmftqga]That way, if in the future I add new Gets, the jumping of the focus will follow the tab order that I specified within Resource Workshop. I won't have to remember to recode the setFocus part. Of course all of my screens were developed using Resource Workshop, not using the @..,.. syntax.Just my 2 cents
|
A bug in a disable get
|
Hua,Thanks for your suggestion, anyhow keep in mind that there is no way to know in advance where the programmer wants to send the focus to, if he shows a dialogbox where the user may select or fill something.
|
A calendar for Fivewin ( Upd. 2.0 / 11.01.2008 )
|
Some people asked for a calendar.
There is one for download at <!-- m --><a class="postlink" href="http://www.pflegeplus.com/fivewin">http://www.pflegeplus.com/fivewin</a><!-- m -->
I think, it might be useful, because there are
some new functions included.
Update 2.0
English and German - Version
More functions added.
Greetings from Germany
U. König <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A calendar for Fivewin ( Upd. 2.0 / 11.01.2008 )
|
[quote="ukoenig":1n05zswz]Some people asked for a calendar.
There is one for download at <!-- m --><a class="postlink" href="http://www.pflegeplus.com/fivewin">http://www.pflegeplus.com/fivewin</a><!-- m -->
I think, it might be useful, because there are
some new functions included.
In the moment it is still in german.
I think the translation will be finished tomorrow.
Greetings from Germany
U. König <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->[/quote:1n05zswz]
Well, this calendar have big problem, the paint calendar is VERY SLOW!
Please, put 12 month in any Window, one by every month.
The problem is method paint, level PRG , not C language.
Regards
|
A calendar for Fivewin ( Upd. 2.0 / 11.01.2008 )
|
A english-version is ready with some more functions.
I can try, to make it a bit faster.
I checked it on a slow ( old ) computer.
The speed wasn' t slow.
Greetings from Germany
U. König
<!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A collection of Date/Time-functions ( Upd. 2 02.01.08 )
|
There are the first Date / Time functions of
a collection.
Some more functions added ( 02.01.2008 ).
greetings from germany <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A collection of free source code and tools for FiveWin
|
[url:25og6dp4]http://code.google.com/p/fivewin-contributions/downloads/list[/url:25og6dp4]
[url:25og6dp4]http://code.google.com/p/fivewin-contributions/[/url:25og6dp4]
|
A complete statistic Rpreview - and xBrowse - example
|
Hello,
a complete xbrowse and print example of a statistic
printing counted services during a year splitted in types ( column-color )
Download
<!-- m --><a class="postlink" href="http://www.pflegeplus.com/DOWNLOADS/Print.zip">http://www.pflegeplus.com/DOWNLOADS/Print.zip</a><!-- m -->
xBrowse service-statistic of a year.
[img:98s3ouek]http://www.pflegeplus.com/IMAGES/SPrint1.jpg[/img:98s3ouek]
Reports showing the linedrawing horizontal and vertical ( rpreview )
[img:98s3ouek]http://www.pflegeplus.com/IMAGES/SPrint2.jpg[/img:98s3ouek]
a special footer for totals on last page ( EOF )
month totals are displayed on two lines for better reading
[img:98s3ouek]http://www.pflegeplus.com/IMAGES/SPrint3.jpg[/img:98s3ouek]
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
A complete statistic Rpreview - and xBrowse - example
|
Uwe
If you want, you could put your example on the Christmas tree
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=17&t=34973#p207949">viewtopic.php?f=17&t=34973#p207949</a><!-- l -->
Thanks
|
A complete statistic Rpreview - and xBrowse - example
|
Christobal,
nice idea <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
maybe there will be some more improvements
( thinking about a bar-graph )
It is easy to define any other logic like counting sold products during the year
instead of counting services.
I added some more options
Download
<!-- m --><a class="postlink" href="http://www.pflegeplus.com/DOWNLOADS/Print.zip">http://www.pflegeplus.com/DOWNLOADS/Print.zip</a><!-- m -->
Silvio wrote
[quote:tv33t17l]How set and draw margins into Rpreview ?
I wish have the vertical and Hozintal lines into rpreview
How we can draw it ?[/quote:tv33t17l]
optional < landscape-format >
thumbs ON / OFF
I added a extra statistic of service-types
[img:tv33t17l]http://www.pflegeplus.com/IMAGES/SPrint4.jpg[/img:tv33t17l]
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
A converter from text-file ( with delimiters ) to DBF ?
|
Hello, i have to create a converter from Text to DBF.The textfile can have many texlines and is the result of another software.( telefon-calls )The first thing i have to do is to create a empty DBF with the fieldnames of the first text-line.Second : a scanning of each textline for delimiter ; that means to write the text from ( 0 to the first ; ) to the 1. DBF-field,then from the first ( ; between the second ; ) to the next DBF-fieldand so on. I tested a text-import with EXCEL but the result, saving the import as a DBF-file was bad.The problem : sometimes, the telefon-company changes the text-structure.That means, every time, before i start the converting, at first i have to create the DBF-structure from the 1. textline.The textfile includes Character, date and numeric-fields.For the import i can ignore the different field-types.The field-types i can change, after the converting is done.Somebody knows a better, easy solution to do this ?Rechnung;Kundennr;Rufnummer;Netz;Art;Gesprdat;Gesprzeit;gewRufnr;gewNetz;Zeitber;Dauer;Volumen;Kennzeich;Preis;CodeC813354668;1063567698;0160 / 1853735;E+;NX;07.07.08;18:58:11;01732644433;VF;;00:28;0;0,0823;0,0000;NXC813354668;1063567698;0160 / 1853735;E+;NX;08.07.08;13:09:19;017650146215;o2;;00:03;0;0,0088;0,0000;NXC813354668;1063567698;0160 / 1853735;E+;NX;09.07.08;10:21:07;017650146215;o2;;00:30;0;0,0881;0,0000;NXC813354668;1063567698;0160 / 1853735;E+;NX;10.07.08;14:12:36;01604789082;TM;;01:40;0;0,2938;0,0000;NXRegardsUwe
|
A converter from text-file ( with delimiters ) to DBF ?
|
Hello Uwe,I use STRTOKEN.Regards,OttocToken := StrToken( cText,2,';' )// <cText> The text from where we want to extract a token.// <nOcurrence> The numeric ocurrence of the token inside <cText>.// <cSepChar> The character that separates the tokens. By default it is a space (" ").
|
A converter from text-file ( with delimiters ) to DBF ?
|
Hi UweStrToken() is probably the most flexible approach but if you are after a quick and dirty no programming type solution you could use[code:2bqyrwal]APPEND FROM <text-file> DELIMITED WITH ";"[/code:2bqyrwal]RegardsxProgrammer
|
A converter from text-file ( with delimiters ) to DBF ?
|
Hello Otto,i don't want to extract a token, i need the text between 2 delimiters for the DBF-fields.sample :The textfile[code:w740r54n]
AAAA;BBBB;CCCC;DDDD;EEEE // Text-Header
111;2;33;4;5555 // values 1. Line
11;333;5;88;7 // values 2. Line
The DBF at the end must look like :
AAAA BBBB CCCC DDDD EEEE // Fieldnames
111 2 33 4 5555 // Values
11 333 5 88 7
[/code:w740r54n]In my tool-collection, i found a function < PARSESTR >with this function it is possible,to extract a stringpart between 2 delimiters.To create a empty DBF from the 1. textline is no problem,but to find out the field-length.For that, i have to look for the max., used length between 2 delimitersfor each field.but maybe there is something, to do it in a better way.Thank youRegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A converter from text-file ( with delimiters ) to DBF ?
|
Hello xProgrammer,I tested :APPEND FROM <text-file> DELIMITED WITH ";"The Textfile appends but the fields are wrong.it works only like "AAA";"BBB";"CCC"but i have : AAA;BBB;CCCI think, i have to write something with my function PARSESTR()Thank you very muchUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A converter from text-file ( with delimiters ) to DBF ?
|
Uwe,Take a look at the TLex class.>I don't want to extract a token, i need the text between 2 delimiters for the DBF-fields.The text between delimiters is called a token.James
|
A converter from text-file ( with delimiters ) to DBF ?
|
Sorry, sometimes my bad english-translation.i mixed token and delimiter.That is the function < PARSESTR > I can scan a textline and save the stringpart between two delimiters to a array. Maybe it is a solution for my problem.[code:1cic4wox]
FUNCTION PARSESTR(cText, cDelim)
/*
Parses a string into substrings
wherever <cDelim> is found and returns an
array of these substrings.
An empty string will result in an empty array.
<cDelim> defaults to a comma.
Example: PARSESTR("AAA;BBB;CCC") => { "AAA", "BBB", "CCC" }
*/
local aTemp_ := {}
local cWork, n := 1
default cDelim := ","
if !empty(cText)
cWork := cText
do while n > 0
n := at(cDelim, cWork)
if n > 0
aadd(aTemp_, left(cWork, n - 1))
cWork := substr(cWork, n + len(cDelim))
else
aadd(aTemp_, cWork)
endif
enddo
endif
Return(aTemp_)
[/code:1cic4wox]RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A converter from text-file ( with delimiters ) to DBF ?
|
As a small sample I coverted the data given in the first post into an multidimenttional array and browsed it with xbrowse with the following code: ( This code works with xHarbour )[code:1bdzz4yo]
#include 'fivewin.ch'
#include 'xbrowse.ch'
function Main()
local cBuf
local aData, aHeaders
cBuf := MemoRead( 'input.txt' )
// parse and make a multi dimentional array
if cBuf[ -1 ] == 26 // check and remove Ctrl-Z
cBuf := Left( cBuf, Len( cBuf ) - 1 )
endif
if Right( cBuf, 2 ) != CRLF
// pad with CRLF if needed, not to miss the last line
cBuf += CRLF
endif
cBuf := StrTran( cBuf, CRLF, Chr( 10 ) )
aData := hb_aTokens( cBuf, Chr(10) )
AEval( aData, { |c,i| aData[ i ] := hb_aTokens( c, ';' ) } )
aHeaders := aData[ 1 ]
aData := ADel( aData, 1 )
aSize( aData, Len( aData ) - 1 )
// Parsing is done
// now view the data quickly in xbrowse before writing in DBF
xBrowse( aData, ; // data to browse
"Parsed Data as Array", ; // title
.f., ; // no autosort
{ |oBrw| AEval( oBrw:aCols, { |o,i| o:cHeader := aHeaders[ i ] } ) } ;
) // codeblock above assigns header names
return nil
[/code:1bdzz4yo]This is the result[url=http://imageshack.us:1bdzz4yo][img:1bdzz4yo]http://img212.imageshack.us/img212/7306/parsedsl5.jpg[/img:1bdzz4yo][/url:1bdzz4yo]Then I clicked the Excel button, and saved the excel sheet produced by xbrowse in DBF format.Once parsing is done I am sure it becomes easier for us to ascertain data types, lengths and write in to DBF with appropriate structure.
|
A converter from text-file ( with delimiters ) to DBF ?
|
Above sample is extended to check field widths and write to DBF.[code:3fnr8cal]
#include 'fivewin.ch'
#include 'xbrowse.ch'
function Main()
local cBuf
local aData, aHeaders
cBuf := MemoRead( 'input.txt' )
// parse and make a multi dimentional array
if cBuf[ -1 ] == 26 // check and remove Ctrl-Z
cBuf := Left( cBuf, Len( cBuf ) - 1 )
endif
if Right( cBuf, 2 ) != CRLF
// pad with CRLF if needed, not to miss the last line
cBuf += CRLF
endif
cBuf := StrTran( cBuf, CRLF, Chr( 10 ) )
aData := hb_aTokens( cBuf, Chr(10) )
AEval( aData, { |c,i| aData[ i ] := hb_aTokens( c, ';' ) } )
aHeaders := aData[ 1 ]
aData := ADel( aData, 1 )
aSize( aData, Len( aData ) - 1 )
// Parsing is done
// now view the data quickly in xbrowse before writing in DBF
xBrowse( aData, ; // data to browse
"Parsed Data as Array", ; // title
.f., ; // no autosort
{ |oBrw| AEval( oBrw:aCols, { |o,i| o:cHeader := aHeaders[ i ] } ) } ;
) // codeblock above assigns header names
// Extending the program to Write DBF
WriteToDBF( 'INPUT.DBF', aData, aHeaders )
// Check the DBF
USE INPUT
XBrowse()
return nil
static function WriteToDBF( cDbf, aData, aHeaders )
local aStruct := {}
local n, nLen := Len( aData )
AEval( aHeaders, ;
{ |c| AAdd( aStruct, ;
{ Upper( Left( Trim( c ), 10 ) ), 'C', 2, 0 } );
} )
// desirable to remove embedded chars not acceptable in fieldnames
// and to check for duplicates
// that logic is not included here
for n := 1 to nLen
AEval( aData[ n ], ;
{ |c,i| c := Trim( c ), ;
aStruct[ i ][ 3 ] := Max( Len( c ), aStruct[ i ][ 3 ] ), ;
aData[ n ][ i ] := c ;
} )
next n
dbCreate( cDbf, aStruct )
USE ( cDbf ) NEW ALIAS OUT EXCLUSIVE
for n := 1 to nLen
OUT->( dbAppend() )
AEval( aData[ n ], { |c,i| OUT->( FieldPut( i, c ) ) } )
next
OUT->( dbCloseArea() )
return nil
[/code:3fnr8cal]With an input text file of 40,000 rows, the program ( obviously not optimized for speed ) took 0.44 secs to parse and 2.9 seconds to write dbf.
|
A converter from text-file ( with delimiters ) to DBF ?
|
Uwe,As Otto has pointed, StrToken() is highly optimized as it is entirely based in C language so its speed is excellent. Here you have a working example:[code:2ct33u2h]
#include "FiveWin.ch"
function Main()
local cText := "C813354668;1063567698;0160 / 1853735;E+;NX;07.07.08;18:58:11;01732644433;VF;;00:28;0;0,0823;0,0000;NX"
local n, cResult := ""
for n = 1 to 15
cResult += StrToken( cText, n, ";" ) + CRLF
next
MsgInfo( cResult )
return nil
[/code:2ct33u2h]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.