It add some features to gtwvg.
I do not remember about post content, please check here
https://github.com/JoseQuintas/wvgtest
José M. C. Quintas
--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/harbour-users/9910b774-8642-4c5f-a623-1f60c02a6524n%40googlegroups.com.
Post is from april/2023, more than 2 years ago.
My current application is using multithread, GTWVG, FIVEWIN and
HWGUI, all together on same EXE.
Can't add HMG 3, HMG Extended, OOHG, because there are
functions/classes with same name as FIVEWIN.
José M. C. Quintas
To view this discussion visit https://groups.google.com/d/msgid/harbour-users/b13e38c2-73cb-4b9a-99bc-a987524df5f1n%40googlegroups.com.
Hi Jose,
I try to check you have add some gtwvg feature a GitHub
project wvgtest (link: https://github.com/JoseQuintas/wvgtest) —
when compile/run its tests, the generated output (e.g. the image tests, including tests\tstall.png)
doesn’t match the expected PNG (i.e. visual difference).

Harbour 3.2.0dev (r2503251254)
Compiler: MinGW GNU C 7.3 (32-bit)

There are some pending pull request may be some things depends on these requests.
Some considerations:
manifest can change visual style, this begans on windows XP.
You can create a file name.exe.manifest or you can built-in the manifest on EXE.
LoadIcon() and LoadImage() on GTWVG does not resize image, this feature is available since Windows Vista, using extra parameters.
button with text + image, this is not available without manifest
tooltip is not available without manifest
and others visual styles
Important:
GTWVG on harbour 3.2 does not works at same way as harbour 3.4, about windows handles/pointers. On 3.2 it uses numbers.
Source code is to harbour 3.2 only.
You can download updated gtwvg from here
https://github.com/JoseQuintas/harbour32_fork/tree/master/contrib/gtwvg
And/or check changes on commits, I allways move my changes to top, after update harbour 3.2
https://github.com/JoseQuintas/harbour32_fork/commit/4f7517b04cb1fae862ee01d898e2476e77013bb8
about to create gtwvg.ch and change gtwvg.hbc:
I am currently using GTWVG + FIVEWIN + HWGUI on same EXE.
previous gtwvg.hbc causes conflicts because adds headers of gtwvg to all files
with the changes, only gtwvg source code uses gtwvg headers
José M. C. Quintas
Hi Jose,
I try to check you have add some gtwvg feature a GitHub project wvgtest (link: https://github.com/JoseQuintas/wvgtest) —
when compile/run its tests, the generated output (e.g. the image tests, including tests\tstall.png) doesn’t match the expected PNG (i.e. visual difference).
- Text drawn over a transparent background
- Images loaded from .rc (resource) files not display
- The image should stretch to the full button width/height
- All controls (buttons, labels, etc.) should render with transparent backgrounds
To view this discussion visit https://groups.google.com/d/msgid/harbour-users/7f8da532-9335-4dc0-a333-7c0c19316316n%40googlegroups.com.
attached my default exe.manifest
create a rc file with this:
#define RT_MANIFEST 24
#define APP_MANIFEST 1
APP_MANIFEST RT_MANIFEST "exe.manifest"
AppIcon ICON "youricon.ico"
compile together with application
hbmk2 test.prg test.rc gtwvg.hbc
You will see another visual for windows controls, including edit, button, progressbar, calendar, and others.
José M. C. Quintas
To view this discussion visit https://groups.google.com/d/msgid/harbour-users/0780a4d2-84d6-42b7-a700-40f7d7d6c5e4n%40googlegroups.com.
I have tried using exe.manifest, which adds some visual effects to the controls, but it does not make the control backgrounds transparent.
How can I achieve background transparency for controls when using exe.manifest?
Also, I want to minimize the main window when a WvgCrt() modal window is open. I tried sending a message to minimize the parent of oCrt when clicking a button, but it’s not working.
Here’s the code I used:
{|| Wvg_SendMessage( oCrt:oParent:getHWND(), WM_SYSCOMMAND, SC_MINIMIZE, 0 ) }
Is this the correct message to minimize the main window?
What means background transparency ?
default windows controls uses windows default.
On some controls, icon with background transparency uses transparency to it
On some controls, set background color
On button, no option to background color, it is windows default
About send message:
You can use oCrt:SendMessage( ... ) without hwnd
About minimize
It is not part of my common usage
On search I found WS_MINIMIZE, WC_MINIMIZE, WIN_WS_MINIMIZE, HB_GTI_MINIMIZED (hbgtinfo.ch)
José M. C. Quintas
To view this discussion visit https://groups.google.com/d/msgid/harbour-users/d39caa93-b420-43b7-9820-3e29576c268bn%40googlegroups.com.