Set FONT in MENU the screen paint strange

Set FONT in MENU the screen paint strange

Postby dutch » 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.
Image
Regards,
Dutch

FWH 19.01 / 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)
User avatar
dutch
 
Posts: 1554
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: Set FONT in MENU the screen paint strange

Postby cnavarro » Wed Jul 22, 2015 4: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
User avatar
cnavarro
 
Posts: 6552
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Set FONT in MENU the screen paint strange

Postby dutch » Thu Jul 23, 2015 7: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: Select all  Expand view  RUN
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 19.01 / 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)
User avatar
dutch
 
Posts: 1554
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: Set FONT in MENU the screen paint strange

Postby cnavarro » Thu Jul 23, 2015 10:55 am

Dear Dutch

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

Code: Select all  Expand view  RUN


                         //  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
User avatar
cnavarro
 
Posts: 6552
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Set FONT in MENU the screen paint strange

Postby cnavarro » Thu Jul 23, 2015 6:03 pm

Dear Dutch

Fixed and Solved

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

Code: Select all  Expand view  RUN

      nhlf = lf.lfWeight * 2;
 


replace with

Code: Select all  Expand view  RUN

      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
User avatar
cnavarro
 
Posts: 6552
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Set FONT in MENU the screen paint strange

Postby dutch » Fri Jul 24, 2015 4: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: Select all  Expand view  RUN
@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: Select all  Expand view  RUN
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: Select all  Expand view  RUN
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: Select all  Expand view  RUN

      nhlf = lf.lfWeight * 2;
 


replace with

Code: Select all  Expand view  RUN

      nhlf = lf.lfHeight * 2;
 


Thanks
Regards,
Dutch

FWH 19.01 / 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)
User avatar
dutch
 
Posts: 1554
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: Set FONT in MENU the screen paint strange

Postby Antonio Linares » Fri Jul 24, 2015 8:41 am

Dutch,

Are you using FWH 15.06 build 2 ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42203
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Set FONT in MENU the screen paint strange

Postby dutch » Sat Jul 25, 2015 3: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 19.01 / 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)
User avatar
dutch
 
Posts: 1554
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: Set FONT in MENU the screen paint strange

Postby dutch » Sat Jul 25, 2015 5: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 19.01 / 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)
User avatar
dutch
 
Posts: 1554
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: Set FONT in MENU the screen paint strange

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42203
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Set FONT in MENU the screen paint strange

Postby dutch » 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 19.01 / 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)
User avatar
dutch
 
Posts: 1554
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: Set FONT in MENU the screen paint strange

Postby dutch » Tue Jul 28, 2015 8: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 19.01 / 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)
User avatar
dutch
 
Posts: 1554
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 32 guests