gtwvg button tooltip

212 views
Skip to first unread message

José Quintas

unread,
Nov 23, 2013, 9:28:28 AM11/23/13
to harbou...@googlegroups.com
About tooltip text for buttons in gtwvg:

If used mingw from harbour nightly, text is showed ok.
If used msvc2010, text is not showed.
If used mingw from qt5, text is not showed.

Now I am using mingw from harbour nightly, all ok.
But if changed Harbour default compiler, tooltip can be lost.

Jos� M. C. Quintas

JoséQuintas

unread,
Jul 7, 2014, 10:57:20 AM7/7/14
to harbou...@googlegroups.com
Any news about this?

José M. C. Quintas

Massimo Belgrano

unread,
Jul 7, 2014, 11:22:57 AM7/7/14
to Harbour Project Main Developer List.
post your reduced sample


--
You received this message because you are subscribed to the Google Groups "Harbour Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-deve...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Massimo Belgrano
Delta Informatica S.r.l. (Cliccami per scoprire 

José Quintas

unread,
Jul 7, 2014, 5:17:27 PM7/7/14
to harbou...@googlegroups.com
PROCEDURE Main
   LOCAL oThisButton, nCont
   CLS
   FOR nCont = 1 TO 10
      oThisButton := wvgPushButton():New()
      oThisButton:Caption := Ltrim( Str( nCont ) )
      oThisButton:PointerFocus := .F.
      oThisButton:Create( , , { -10, -nCont * 5 }, { -2, -4 } )
      oThisButton:ToolTipText( "This is button " + Str( nCont ) )
      oThisButton:Activate := { || wvg_MessageBox( , "Click on button" ) }
   NEXT
   Inkey(0)
   RETURN NIL

hbmk2 test gtwvg.hbc -comp=mingw
hbmk2 test gtwvg.hbc -comp=msvc

tooltip ok using mingw, but not using msvc2010


José M. C. Quintas

Massimo Belgrano

unread,
Jul 8, 2014, 3:44:42 AM7/8/14
to Harbour Project Main Developer List.
I not understand wich is the problem so your sample is very difficult for me
i use mingw from qt5 Harbour 3.2.0dev (r1406271520)

Immagine in linea 1

José Quintas

unread,
Jul 8, 2014, 7:21:45 AM7/8/14
to harbou...@googlegroups.com
This is the tooltip in mingw.


José M. C. Quintas



Em 08/07/2014 04:44, Massimo Belgrano escreveu:
I not understand wich is the problem so your sample is very difficult for me
i use mingw from qt5 Harbour 3.2.0dev (r1406271520)


tooltip.png

José Quintas

unread,
Jul 8, 2014, 7:26:06 AM7/8/14
to harbou...@googlegroups.com
Tooltip is a text displayed when mouse is over the button.
It is a help, when there are too many buttons.

José M. C. Quintas

Massimo Belgrano

unread,
Jul 8, 2014, 7:44:34 AM7/8/14
to Harbour Project Main Developer List.
i confirm the "problem" also using mingw 4.8.1 from qt5

Massimo Belgrano

unread,
Jul 8, 2014, 10:16:14 AM7/8/14
to Harbour Project Main Developer List.
 instead works with mingw 4.6.1

Immagine in linea 1

Pete

unread,
Jul 10, 2014, 3:28:48 PM7/10/14
to harbou...@googlegroups.com
Hi Jose,

you might want to take a look there:

https://github.com/vszakats/harbour-core/commit/cb888d0b87658062345b9b9a961e14b9cb315425

perhaps could  help you to resolve your issue..

---
Pete

José Quintas

unread,
Jul 10, 2014, 5:40:41 PM7/10/14
to harbou...@googlegroups.com
Thanks. Using information on link, in a first momment I made some tries.

1. change harbour_win.mft (3.2) by harbour.mft (3.4) and rebuild Harbour - I don't know if this was needed

2. Create a manifest file - jpa.exe.manifest

------------------------------------------
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
        <security>
            <requestedPrivileges>
                <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
            </requestedPrivileges>
        </security>
    </trustInfo>
    <dependency>
        <dependentAssembly>
            <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*" />
        </dependentAssembly>
    </dependency>
</assembly>
---------------------------------------

3. After a google search, change my jpa.rc using information in this link:
http://blogs.msdn.com/b/cheller/archive/2006/08/24/how-to-embed-a-manifest-in-an-assembly-let-me-count-the-ways.aspx

#define RT_MANIFEST 24
#define APP_MANIFEST 1

APP_MANIFEST RT_MANIFEST "resource\\jpa.exe.manifest"


Result is little modifications in buttons visual - thin border, blue background when mouse is over, tooltip in msvc2010.




Test using mingw and msvc2010. Both ok.

José M. C. Quintas
Reply all
Reply to author
Forward
0 new messages