FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Set FONT in MENU the screen paint strange
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Set FONT in MENU the screen paint strange
Posted: Wed Jul 22, 2015 11:43 AM
Dear Anotonio,

I use FONT 'Tahoma' in oMenu FONT. The screen paint very slow display and strange screen.
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Set FONT in MENU the screen paint strange
Posted: Wed Jul 22, 2015 04:13 PM

You can put the code that you use?

You have an example .. \ samples \ prucmenu.prg

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: Set FONT in MENU the screen paint strange
Posted: Thu Jul 23, 2015 07:28 AM
Dear Canavaro,

The problem is FONT I use CHARSET = 222 (THAI_CHARSET or ANSI_CHARSET), the screen will paint menu by menu very slowly and display strange.

I try prucmenu.prg, it got the same problem.
Code (fw): Select all Collapse
aFonts := { -16, 0, 0, 0, 400, .F., .F., .F., 0, 3, 2, 1, 34, 'Tahoma' }
DEFINE FONT oFontMenu NAME cFont SIZE 0, -16
oFontMenu:hFont := CreateFont( aFonts )
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Set FONT in MENU the screen paint strange
Posted: Thu Jul 23, 2015 10:55 AM
Dear Dutch

The problem is in clausule [ WEIGHT <nWeight> ]
Try

Code (fw): Select all Collapse
                         //  400
   aFonts := { -16, 0, 0, 0, 0, .F., .F., .F., 222, 3, 2, 1, 34, 'Tahoma' }
   //oFontMenu := TFont():New( "Tahoma", 0, -16,,,,, 400,,,, 178, 3, 2, 1, )
  DEFINE FONT oFontMenu NAME cFont SIZE 0, -16 //CHARSET 222 WEIGHT 400 //cFont // [ WEIGHT <nWeight> ] ;
   oFontMenu:hFont := CreateFont( aFonts )


I will investigate whether it is a problem of the Menu function or object TFont
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Set FONT in MENU the screen paint strange
Posted: Thu Jul 23, 2015 06:03 PM
Dear Dutch

Fixed and Solved

Line 1064
File: \Fwh\source\winapi\menudraw.c

Code (fw): Select all Collapse
      nhlf = lf.lfWeight * 2;


replace with

Code (fw): Select all Collapse
      nhlf = lf.lfHeight * 2;


Thanks
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: Set FONT in MENU the screen paint strange
Posted: Fri Jul 24, 2015 04:30 AM
Dear Canavaro,

Thank you for your solved this problem but I try to compile menudraw.c as below but not successful.
Is the menudraw.c in FIVEHC32.LIB?
Code (fw): Select all Collapse
@echo off
SET FWH=D:\FWH1506
SET XHB=D:\xHarbour1506
SET BCC=D:\BCC7
%BCC%\bin\bcc32 /O2 /c /D__HARBOUR__ /I%BCC%\include;%fwh%\include;%XHB%\include menudraw.c >comp.log
IF ERRORLEVEL 1 GOTO COMPILERROR

IF EXIST menudraw.obj   %BCC%\bin\Tlib %FWH%\LIB\fivehc32 +menudraw.obj     > Lib.log

ECHO Fivehc32.lib was successful
GOTO END
:COMPILERROR
ECHO Borland Compiler error see comp.log
:END

comp.log
Code (fw): Select all Collapse
Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc.
menudraw.c:
Warning W8065 menudraw.c 712: Call to function 'hb_parvnl' with no prototype in function HB_FUN_SET2013SKINMENU
Warning W8065 menudraw.c 714: Call to function 'hb_parvnl' with no prototype in function HB_FUN_SET2013SKINMENU
Warning W8065 menudraw.c 722: Call to function 'hb_parvnl' with no prototype in function HB_FUN_SET2013SKINMENU
Warning W8065 menudraw.c 724: Call to function 'hb_parvnl' with no prototype in function HB_FUN_SET2013SKINMENU
Warning W8065 menudraw.c 728: Call to function 'hb_parvnl' with no prototype in function HB_FUN_SET2013SKINMENU
Warning W8065 menudraw.c 730: Call to function 'hb_parvnl' with no prototype in function HB_FUN_SET2013SKINMENU
Warning W8065 menudraw.c 734: Call to function 'hb_parvnl' with no prototype in function HB_FUN_SET2013SKINMENU
Warning W8065 menudraw.c 736: Call to function 'hb_parvnl' with no prototype in function HB_FUN_SET2013SKINMENU
Warning W8065 menudraw.c 740: Call to function 'hb_parvnl' with no prototype in function HB_FUN_SET2013SKINMENU
Warning W8065 menudraw.c 742: Call to function 'hb_parvnl' with no prototype in function HB_FUN_SET2013SKINMENU
Warning W8065 menudraw.c 748: Call to function 'hb_parvnl' with no prototype in function HB_FUN_SET2013SKINMENU
Warning W8065 menudraw.c 750: Call to function 'hb_parvnl' with no prototype in function HB_FUN_SET2013SKINMENU
Warning W8065 menudraw.c 755: Call to function 'hb_parvnl' with no prototype in function HB_FUN_SET2013SKINMENU
Warning W8065 menudraw.c 757: Call to function 'hb_parvnl' with no prototype in function HB_FUN_SET2013SKINMENU
Warning W8065 menudraw.c 761: Call to function 'hb_parvnl' with no prototype in function HB_FUN_SET2013SKINMENU
Warning W8065 menudraw.c 763: Call to function 'hb_parvnl' with no prototype in function HB_FUN_SET2013SKINMENU
Warning W8065 menudraw.c 927: Call to function 'hb_parvnl' with no prototype in function HB_FUN_SETFWSKINMENU
Warning W8065 menudraw.c 928: Call to function 'hb_parvnl' with no prototype in function HB_FUN_SETFWSKINMENU
Warning W8065 menudraw.c 929: Call to function 'hb_parvnl' with no prototype in function HB_FUN_SETFWSKINMENU
Warning W8065 menudraw.c 932: Call to function 'hb_parvnl' with no prototype in function HB_FUN_SETFWSKINMENU
Warning W8065 menudraw.c 933: Call to function 'hb_parvnl' with no prototype in function HB_FUN_SETFWSKINMENU
Warning W8065 menudraw.c 934: Call to function 'hb_parvnl' with no prototype in function HB_FUN_SETFWSKINMENU
Warning W8065 menudraw.c 2001: Call to function 'hb_storvni' with no prototype in function HB_FUN_GETDRAWISR
Warning W8065 menudraw.c 2002: Call to function 'hb_storvni' with no prototype in function HB_FUN_GETDRAWISR
Warning W8065 menudraw.c 2003: Call to function 'hb_storvni' with no prototype in function HB_FUN_GETDRAWISR
Warning W8065 menudraw.c 2004: Call to function 'hb_storvni' with no prototype in function HB_FUN_GETDRAWISR
Warning W8065 menudraw.c 2005: Call to function 'hb_storvni' with no prototype in function HB_FUN_GETDRAWISR
Warning W8065 menudraw.c 2006: Call to function 'hb_storvni' with no prototype in function HB_FUN_GETDRAWISR
Warning W8065 menudraw.c 2007: Call to function 'hb_storvni' with no prototype in function HB_FUN_GETDRAWISR
Warning W8065 menudraw.c 2008: Call to function 'hb_storvni' with no prototype in function HB_FUN_GETDRAWISR
Warning W8065 menudraw.c 2009: Call to function 'hb_storvni' with no prototype in function HB_FUN_GETDRAWISR
Warning W8065 menudraw.c 2010: Call to function 'hb_storvni' with no prototype in function HB_FUN_GETDRAWISR
Warning W8065 menudraw.c 2011: Call to function 'hb_storvni' with no prototype in function HB_FUN_GETDRAWISR
Warning W8065 menudraw.c 2012: Call to function 'hb_storvnd' with no prototype in function HB_FUN_GETDRAWISR
Warning W8065 menudraw.c 2028: Call to function 'hb_storvni' with no prototype in function HB_FUN_GETMEAUSUR
Warning W8065 menudraw.c 2029: Call to function 'hb_storvni' with no prototype in function HB_FUN_GETMEAUSUR
Warning W8065 menudraw.c 2030: Call to function 'hb_storvni' with no prototype in function HB_FUN_GETMEAUSUR
Warning W8065 menudraw.c 2031: Call to function 'hb_storvni' with no prototype in function HB_FUN_GETMEAUSUR
Warning W8065 menudraw.c 2032: Call to function 'hb_storvni' with no prototype in function HB_FUN_GETMEAUSUR
Warning W8065 menudraw.c 2033: Call to function 'hb_storvnd' with no prototype in function HB_FUN_GETMEAUSUR
Warning W8065 menudraw.c 2178: Call to function 'hb_storvni' with no prototype in function HB_FUN_MINFOMIMENU
Warning W8065 menudraw.c 2179: Call to function 'hb_storvni' with no prototype in function HB_FUN_MINFOMIMENU
Warning W8065 menudraw.c 2180: Call to function 'hb_storvni' with no prototype in function HB_FUN_MINFOMIMENU
Warning W8065 menudraw.c 2181: Call to function 'hb_storvni' with no prototype in function HB_FUN_MINFOMIMENU

lib.log
Code (fw): Select all Collapse
TLIB 6.4 Copyright (c) 1987-2014 Embarcadero Technologies, Inc.

Error: Bad header in input LIB

cnavarro wrote:Dear Dutch

Fixed and Solved

Line 1064
File: \Fwh\source\winapi\menudraw.c

Code (fw): Select all Collapse
      nhlf = lf.lfWeight * 2;


replace with

Code (fw): Select all Collapse
      nhlf = lf.lfHeight * 2;


Thanks
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Set FONT in MENU the screen paint strange
Posted: Fri Jul 24, 2015 08:41 AM

Dutch,

Are you using FWH 15.06 build 2 ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: Set FONT in MENU the screen paint strange
Posted: Sat Jul 25, 2015 03:37 AM
I'm not quite sure. I will re-download, If build 2 has fixed.

Thanks,
Antonio Linares wrote:Dutch,

Are you using FWH 15.06 build 2 ?
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: Set FONT in MENU the screen paint strange
Posted: Sat Jul 25, 2015 05:32 AM

Dear Antonio,

I've downloaded 15.06 (build 2), it is the version that I got problem. Will you fix in 15.06?

Thanks.

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Set FONT in MENU the screen paint strange
Posted: Sat Jul 25, 2015 12:35 PM

Dutch,

I email you modified FWH libs, please try it again with them, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: Set FONT in MENU the screen paint strange
Posted: Sat Jul 25, 2015 11:43 PM
my email : dutchez4 @ gmail.com
Thanks
Antonio Linares wrote:Dutch,

I email you modified FWH libs, please try it again with them, thanks
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: Set FONT in MENU the screen paint strange
Posted: Tue Jul 28, 2015 08:08 AM
Dear Antonio,

I did not get any mail yet.
Antonio Linares wrote:Dutch,

I email you modified FWH libs, please try it again with them, thanks


Thanks.
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)

Continue the discussion