GTWvg GUI Sample

Moderator: Rathinagiri

User avatar
mustafa
Posts: 1158
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Contact:

GTWvg GUI Sample

Post by mustafa »

Hello friends:
Experimenting with Hmg by chance I went in to see the content
of HARBOR and I found in-> c:\hmg.3.4.4\HARBOUR\contrib\gtwvg\tests\
"demowvg.prg" and "demowvg1.prg"

I have started to dig a little and there is hardly any information about this GUI
Created by Pritpal Bedi.

But "Et Voila" with our HMG build.bat
compiled inside tests-> demowvg.exe and demowvg1.exe

To not tire you I put inside the file "GTWvg_Sample.Zip"
with all the prg's README.DOC where are all the Web addresses,
where I was able to gather a little information about this GUI.

Very grateful to Professor José M.C. Quintas true scholar in this
GUI located at https://pctoledo.websiteseguro.com/forum/

Also Giovanni Di Maria for his GTWvg Tutorial
I was able to create PDF document by putting in the Prg -> "print_pdf.prg"
-> #include "hmg_hpdf.ch" and it is working fine.

To compile the Easy Samples our build.bat

@ECHO OFF
call c:\hmg.3.4.4\build.bat Main.prg %*

Very important in the folder that you do for
Our application must be "hbmk.hbm"

Well here is my humble contribution
Forgive my inexperience in this Gui-GTWvg.

It's been a long time since I left the way to Schedule in Clipper and it costs me a lot
to return to this form.

If someone wants to continue, my admiration !
I stay with HMG, it's much more versatile for me

Regards
Mustafa
Attachments
Imagen00.jpg
Imagen00.jpg (478.08 KiB) Viewed 32222 times
GTWvg_Sample.zip
(1.9 MiB) Downloaded 855 times
Last edited by mustafa on Wed Apr 11, 2018 2:20 pm, edited 1 time in total.
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: GTWvg GUI Sample

Post by bpd2000 »

Thank you for info
BPD
Convert Dream into Reality through HMG
ASESORMIX
Posts: 189
Joined: Thu Oct 25, 2012 8:08 pm
Location: Bqto, Venezuela

Re: GTWvg GUI Sample

Post by ASESORMIX »

+1
Gracias Sr. Mustafa Por esta una valiosa contribución.
User avatar
serge_girard
Posts: 3158
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: GTWvg GUI Sample

Post by serge_girard »

Thanks, Mustafa !

Serge
There's nothing you can do that can't be done...
User avatar
mustafa
Posts: 1158
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Contact:

Re: GTWvg GUI Sample

Post by mustafa »

Hola atodos:
Si algún compañero está experimentado con el "Sample" que incorporé
"GTWvg_Sample.zip" vereis que hay algún error al cerrar alguna
ventana y un problema muy grave que no he podido encontrar solución
es la desmesurado gasto de CPU cuando se habre cualquier ventana Modal <- :?:

Ver -> http://www.pctoledo.com.br/forum/viewto ... 43&t=14790

Saludos
Mustafa
*------------------------------ Google ---------------------------------------*
Hello everyone:
If a partner is experienced with the "Sample" that I incorporated
"GTWvg_Sample.zip" you will see that there is an error in closing some
window and a very serious problem that I could not find solution
is the excessive CPU expense when any Modal window is opened <- :?:

View -> http://www.pctoledo.com.br/forum/viewto ... 43&t=14790

Regards
Mustafa
User avatar
mustafa
Posts: 1158
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Contact:

Re: GTWvg GUI Sample

Post by mustafa »

Hello friends:
At last I have detected the problem of the high consumption of CPU memory
was caused by the sequence of SHOWTIME (), which I think comes from
of the CA-CLIPPER TOOLS.

I was able to replace this sequence of SHOWTIME () with:

Code: Select all

    DO WHILE .T.
       IF Inkey (0.01) == K_ESC
          QUIT
       ENDIF
     SetColor ("GR + / B")
     @ 23, 69 SAY Time () // <- New Clock   --> Error Memory SHOWTIME (23,69, .F., "GR + / B",. F.,. F.)
    ENDDO
the rest remains the same
I leave the new copy corrected and ready to Compile -> "GTWvg_Sample_New.zip"
 
It has been a new experience within the Clipper-Harbour world
Regards
Mustafa :lol:
Attachments
GTWvg_Sample_New.zip
(1.95 MiB) Downloaded 882 times
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: GTWvg GUI Sample

Post by AUGE_OHR »

hi.

the GTWvg GUI Sample is just "Hybrid" Part using INKEY().
when install full Version of harbour there is also

Code: Select all

c:\harbour\contrib\hbxbp\
c:\harbour\contrib\hbqt\
in c:\harbour\contrib\hbxbp\tests\xbpqtc.prg you will see Xbase++ Syntax.
Pritpal Bedi used Xbase++ before move to harbour and my Source use that Syntax.

---

now i try my Xbase++ Code using \hbxpp and \hbxbp and got a Problem with HMG IDE
hbmk2: Processing local make script: hbmk.hbm
Harbour 3.2.0dev (r1703241902)
Copyright (c) 1999-2016, http://harbour-project.org/
R:/Temp/hbmk_9awlhv.cpp:33:6: warning: 'void operator delete [](void*, size_t)' is a usual (non-placement) deallocation function in C++14 (or with -fsized-deallocation) [-Wc++14-compat]
void operator delete[]( void * ptr, size_t )
^
R:/Temp/hbmk_9awlhv.cpp:45:6: warning: 'void operator delete(void*, size_t)' is a usual (non-placement) deallocation function in C++14 (or with -fsized-deallocation) [-Wc++14-compat]
void operator delete( void * ptr, size_t )
^
c:/harbour/lib/win/mingw\libhbxbp.a(xbpgeneric.o):xbpgeneric.c:(.text+0xc0): multiple definition of `HB_FUN_MSGBOX'
R:/Temp/hbmk_ve6f85.dir/DLG8LCD.o:DLG8LCD.c:(.text+0x4c0): first defined here
C:/hmg.3.4.4/lib\libhmg.a(h_msgbox.o):h_msgbox.c:(.text+0xc0): multiple definition of `HB_FUN_MSGBOX'
R:/Temp/hbmk_ve6f85.dir/DLG8LCD.o:DLG8LCD.c:(.text+0x4c0): first defined here
collect2.exe: error: ld returned 1 exit status
hbmk2[DLG8LCD]: Error: Running linker. 1
gcc.exe R:/Temp/hbmk_ve6f85.dir/DLG8LCD.o R:/Temp/hbmk_ve6f85.dir/hbmk_saabtk.o R:/Temp/hbmk_ve6f85.dir/hbmk_9awlhv.o C:/harbour/contrib/gtwvg/LCD_UHR/_temp.o -pthread -static-libgcc -static-libstdc++ -static -lpthread -mwindows -Wl,--start-group -lgtwvg -lhbwin -lpng -lhbxpp -lhbxbp -lsupc++ -lhbqtcore -lQtCore4 -lhbqtgui -lQtGui4 -lgtqtc -lhmg -lcrypt -ledit -leditex -lgraph -lini -lreport -lhfcl -lmsvfw32 -lvfw32 -lhbmysql -lmysql -lhbfimage -lhbpgsql -lsddmy -lhbvpdf -lhbct -lhbmzip -lminizip -lhbmemio -lhbmisc -lhbtip -lsqlite3 -lhbsqlit3 -lsddodbc -lrddsql -lhbodbc -lodbc32 -lhbhpdf -lhbnetio -lxhb -llibhpdf -lhbzebra -lhbextern -lhbdebug -lhbvmmt -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainwin -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -liphlpapi -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -oDLG8LCD.exe -LC:/hmg.3.4.4/harbour/lib/win/mingw -Lc:/harbour/lib -Lc:/harbour/lib/win/mingw -LC:/hmg.3.4.4/lib
those "operator" Error also appear when try \hbxbp with HMG IDE but it build and start EXE

the second Problem is MSGBOX ... HMG have it and GTWVG (Xbase++) have it and i get no EXE :(
so what to do :?:
have fun
Jimmy
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: GTWvg GUI Sample

Post by bpd2000 »

I never used Xbase++
BPD
Convert Dream into Reality through HMG
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: GTWvg GUI Sample

Post by AUGE_OHR »

hi,

sorry i'm Offtopic while it is not direct HMG.

i like to work with harbour and GTWVG include Xbp.CH which contain Constante for Event Handling
this Style is my Xbase++ Source which i have used last 20 Years.

i have made some harbour v1.x Project with xMate and BCC but this long time ago.
now under harbour v3.x and MinGW i try these and have Problem ...

---

i start with "fresh" HMG 3.4.4 so i got a clean Install.

than i create a new Directory c:\hmg.3.4.4\HARBOUR\contrib\gtwvg\LCD_UHR\ and copy "my Files" to it

before i have run
c:\hmg.3.4.4\build.bat demowvg and it work

so i change to my dir and did same again

c:\hmg.3.4.4\build.bat DLG8LCD
hbmk2: Processing local make script: hbmk.hbm
Harbour 3.2.0dev (r1703241902)
Copyright (c) 1999-2016, http://harbour-project.org/
C:\ALASKA\XPPW32\INCLUDE\XBP.CH(386) Error E0030 Syntax error "syntax error at
C:\ALASKA\XPPW32\INCLUDE\XBP.CH(387) Error E0030 Syntax error "syntax error at
DLG8LCD.PRG(143) Warning W0001 Ambiguous reference 'XBEK_ALT_F4'
DLG8LCD.PRG(806) Warning W0001 Ambiguous reference 'GRA_BLT_BBO_IGNORE'
DLG8LCD.PRG(855) Warning W0001 Ambiguous reference 'GRA_BLT_BBO_IGNORE'
2 errors
hbmk2 try to use XBP.CH but this is not harbour so something missing :?:

i found out that HMG does not include

Code: Select all

\HARBOUR\contrib\hbxbp
\HARBOUR\contrib\hbqt
so i copy these Directory into HMG and start build again.
c:\hmg.3.4.4\build.bat DLG8LCD

EXE is build now (-w -es0 ) but when i include HMG Debugger (click on Icon) than i goto this
C:/hmg.3.4.4/lib\libhmg.a(h_msgbox.o):h_msgbox.c:(.text+0xc0): multiple definition of `HB_FUN_MSGBOX'
C:/hmg.3.4.4/harbour/lib/win/mingw\libhbxbp.a(xbpgeneric.o):xbpgeneric.c:(.text+0xc0): first defined here
C:/hmg.3.4.4/lib\libhmg.a(c_windows.o):c_windows.c:(.text+0x4340): multiple definition of `HB_FUN_SETLAYEREDWINDOWATTRIBUTES'
so how can i use HMG Debugger without that Error :?:
who can help me to get it work under harbour
Dlg8Uhr.jpg
Dlg8Uhr.jpg (29.55 KiB) Viewed 26242 times
LCD_UHR.ZIP
put it into c:\hmg.3.4.4\HARBOUR\contrib\gtwvg\LCD_UHR\
(63.89 KiB) Downloaded 555 times
p.s. even if EXE is build and run it does not work yet but i need Debugger to find out what is missing under harbour in my Code.
have fun
Jimmy
Post Reply