FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem in creating GETs
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Problem in creating GETs
Posted: Tue Aug 13, 2013 10:10 PM
In the sample below, you can note the visual difference between GETs created in different ways. Any ideas on how to make the second GET looking like the first?

Code (fw): Select all Collapse
#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oDlg

    LOCAL cVar1 := SPACE( 30 )
    LOCAL cVar2 := SPACE( 30 )

    DEFINE DIALOG oDlg;
           SIZE 800, 600

    @ 1, 1 GET cVar1 SIZE 200, 20

    @ 7, 1 BUTTON "Test";
           ACTION TEST( @cVar2 )

    ACTIVATE DIALOG oDlg;
             CENTER

    RETURN NIL


STATIC FUNCTION TEST( cVar )

    @ 7, 1 GET cVar SIZE 200, 30

    RETURN NIL


EMG
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Problem in creating GETs
Posted: Wed Aug 14, 2013 01:13 PM

Enrico

I confirm your observation .. the first get has a sunk border and the second get has a nice clean edge on Xp ( did not test on any other operating system )

Just to see what would happen, I added the xp manifest and the opposite appearance occurred .. the first get had a smooth edge and the second get has the sunk border.

I did review the .ppo and the two Tget lines are identical... :?

Rick Lipkin

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Problem in creating GETs
Posted: Wed Aug 14, 2013 01:19 PM
Rick,

Rick Lipkin wrote:Enrico

I confirm your observation


Thanks. Antonio?

EMG
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Problem in creating GETs
Posted: Thu Aug 15, 2013 01:58 PM

I also confirm the behavior. And even when the two GETs are defined with the same dimensions, they are not same size. I suspect that one is using dialog units and the other is using window units.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Problem in creating GETs
Posted: Thu Aug 15, 2013 03:19 PM
James,

James Bott wrote:I also confirm the behavior. And even when the two GETs are defined with the same dimensions, they are not same size. I suspect that one is using dialog units and the other is using window units.

James


Yes, this is normal. The problem I'd want mainly pointing out was the visual difference between the two GETs. Any workaround?

EMG
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Problem in creating GETs
Posted: Fri Aug 16, 2013 08:49 PM
Encrico,

Yes, this is normal. The problem I'd want mainly pointing out was the visual difference between the two GETs. Any workaround?


Yes, it may be normal, but it is not desirable. I was just suggesting that both things should (or could) be fixed at the same time.

As we have determined, this is a partly a theme issue. It may be that both the appearance and the size are related to the theme issue.

I don't know of a workaround. I think Antonio will have to address this.

James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 682
Joined: Tue Feb 14, 2006 09:48 AM
Re: Problem in creating GETs
Posted: Thu Nov 28, 2013 04:44 PM

Any news.
I have same effect when I build gets from ON INIT of dialog.

Saludos desde Mallorca
Biel Maimó
http://bielsys.blogspot.com/

Continue the discussion