FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC Controls alignment bug
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Controls alignment bug
Posted: Wed Jan 11, 2006 03:53 PM
The following sample shows that SAYs and GETs don't get aligned throughout the display:

#include "Fwce.ch"


FUNCTION MAIN()

    LOCAL oWnd

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

    DEFINE WINDOW oWnd

    @ 1, 1 SAY "Name 1:";
           SIZE 70, 20

    @ 1, 10 GET cVar1;
            SIZE 70, 20

    @ 5, 1 SAY "Name 2:";
           SIZE 70, 20

    @ 5, 10 GET cVar2;
            SIZE 70, 20

    ACTIVATE WINDOW oWnd

    RETURN NIL


EMG
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Controls alignment bug
Posted: Wed Jan 11, 2006 07:33 PM
Enrico,

Yes, thats normal in FW, as we calculate each row based on the control height. With this little modification it shows ok:

    @ 5.7, 10 GET cVar2; 
            SIZE 70, 20
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Controls alignment bug
Posted: Wed Jan 11, 2006 08:35 PM
Unfortunately it is not linear:

#include "Fwce.ch"


FUNCTION MAIN()

    LOCAL oWnd

    LOCAL cVar1 := SPACE( 20 )
    LOCAL cVar2 := SPACE( 20 )
    LOCAL cVar3 := SPACE( 20 )

    DEFINE WINDOW oWnd

    @ 1, 1 SAY "Name 1:";
           SIZE 70, 20

    @ 1, 10 GET cVar1;
            SIZE 70, 20

    @ 5, 1 SAY "Name 2:";
           SIZE 70, 20

    @ 5.7, 10 GET cVar2;
              SIZE 70, 20

    @ 10, 1 SAY "Name 3:";
            SIZE 70, 20

    @ 10.7, 10 GET cVar3;
               SIZE 70, 20

    ACTIVATE WINDOW oWnd

    RETURN NIL


Any workaround other than using a calculation?

EMG
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Controls alignment bug
Posted: Wed Jan 11, 2006 09:00 PM

Enrico,

The only solution is to modify include\constant.ch and recompile all PRG classes.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Controls alignment bug
Posted: Wed Jan 11, 2006 10:55 PM

Is it something that you can change in the standard FWPPC build?

EMG

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Controls alignment bug
Posted: Wed Jan 11, 2006 11:41 PM

Enrico,

We may modify it here, but we have to decide, all together, what values to use. Should the SAYs be the reference ? the GETs ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Controls alignment bug
Posted: Thu Jan 12, 2006 08:29 AM

Ok, let me do some experiment...

EMG

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Controls alignment bug
Posted: Thu Jan 12, 2006 01:49 PM
Antonio Linares wrote:Enrico,

We may modify it here, but we have to decide, all together, what values to use. Should the SAYs be the reference ? the GETs ?


I think that we don't have to care what controls should be the reference. We just need that row "n" is the same for all the controls. Don't you agree?

EMG
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Controls alignment bug
Posted: Thu Jan 12, 2006 08:10 PM

Enrico,

Yes, thats a solution, but still we have to decide the value for each row and column.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Controls alignment bug
Posted: Thu Jan 12, 2006 08:40 PM

GETs could be a good reference as they are the most used controls.

I think that now is the right time for this fix due to the little backward compatibility problems. After it would be late exactly like for Fivewin.

EMG

Continue the discussion