dcgetoptions ... SCALEFACTOR and TABpages

This forum is for eXpress++ general support.
Message
Author
User avatar
rdonnay
Site Admin
Posts: 4762
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: dcgetoptions ... SCALEFACTOR and TABpages

#21 Post by rdonnay »

This would drive me crazy too.

Show me the code for that window.
The eXpress train is coming - and it has more cars.

User avatar
rdonnay
Site Admin
Posts: 4762
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: dcgetoptions ... SCALEFACTOR and TABpages

#22 Post by rdonnay »

I would expect that the xsample_144 should also pass by the same function in _dcgetbx.prg?
I don't know where you put the WTF, but xsample_144 does not have scaling.
The eXpress train is coming - and it has more cars.

skiman
Posts: 1195
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: dcgetoptions ... SCALEFACTOR and TABpages

#23 Post by skiman »

Hi Roger,

I did put the WTF in _dcgetbx.prg on line 2988. And I added a scalefactor to sample144.

Meanwhile I succeeded to modify the sample 144 to create the same problem. Now you can get crazy. :whistle:

In attachment xsample5.prg with the modification. It is something in the dcgetoptions which I have as default. If you click on the button 'klantzoek20' in the sample, you will get that window.
Attachments
Xsample5.zip
(14.18 KiB) Downloaded 685 times
Best regards,

Chris.
www.aboservice.be

skiman
Posts: 1195
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: dcgetoptions ... SCALEFACTOR and TABpages

#24 Post by skiman »

Hi,

The problem with the screen is found. When there is a windowheight and windowwidth in the getoptionsdefault, this gives a problem as below. I deleted these two parameters in the default getoption, and the problem went away.
scalefactor.png
scalefactor.png (44.16 KiB) Viewed 9507 times
Now the problem with the growing font on the tabpages still remains.
Best regards,

Chris.
www.aboservice.be

skiman
Posts: 1195
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: dcgetoptions ... SCALEFACTOR and TABpages

#25 Post by skiman »

Hi Roger,

I found the cause of the problem with the growing font. This is my code as posted previously:

Code: Select all

// TABPAGE 1 //

@  0.1,0.1 DCTABPAGE aTabPages[1] TABWIDTH 17 CAPTION "~1. "+fMessage(2100) ;
   SIZE 92 , 18 ACCELKEY xbeK_ALT_1 FONT amain(9,5) ;
   GOTFOCUS {|a,b,oTab| oTab:tofront(), BuildGets(aTabPages,1,GetList,aBuildGets,aApp,oDialog) } ;
   PARENT oDlg ANGLE 20 color amain(15,13)

// TABPAGE 2 //

@  0,0 DCTABPAGE aTabPages[2] CAPTION "~2. "+fMessage(2200) ;
    relative aTabPages[1] ACCELKEY xbeK_ALT_2  ;
    GOTFOCUS {|a,b,oTab| oTab:tofront(), BuildGets(aTabpages,2,GetList,aBuildgets,aApp,oDialog) } ;
    PARENT oDlg  when {|| frights("ABCDFH") }  color amain(15,13)

// TABPAGE 3 //

@  0,0 DCTABPAGE aTabPages[3] CAPTION "~3. "+fMessage(2300) ;
    relative aTabPages[2] ACCELKEY xbeK_ALT_3 ;
    GOTFOCUS {|a,b,oTab| oTab:tofront(), BuildGets(aTabpages,3,GetList,aBuildgets,aApp,oDialog) } ;
    PARENT oDlg  when {|| frights("ABCDFH") } color amain(15,13)
Tabpage 1 has a FONT clause. If I remove this clause, the problem is solved. I have to do this in some places in my code, but this is no big deal.
Best regards,

Chris.
www.aboservice.be

User avatar
rdonnay
Site Admin
Posts: 4762
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: dcgetoptions ... SCALEFACTOR and TABpages

#26 Post by rdonnay »

Tabpage 1 has a FONT clause. If I remove this clause, the problem is solved.
Now that I know what causes the problem, I can probably fix it. Thanks.
The eXpress train is coming - and it has more cars.

User avatar
rdonnay
Site Admin
Posts: 4762
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: dcgetoptions ... SCALEFACTOR and TABpages

#27 Post by rdonnay »

Here is the fix:

Copy _DCGETBX.PRG to your ..\source\dclipx folder and run BUILD19_SL1.BAT or BUILD20.BAT to build DCLIPX.DLL.
Attachments
_dcgetbx.zip
(87.02 KiB) Downloaded 713 times
The eXpress train is coming - and it has more cars.

skiman
Posts: 1195
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: dcgetoptions ... SCALEFACTOR and TABpages

#28 Post by skiman »

Hi Roger,

Problem is solved. Thanks for the support.
Best regards,

Chris.
www.aboservice.be

Post Reply