FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Bug FWH2402 - Botones
Posts: 1816
Joined: Wed Oct 26, 2005 02:49 PM
Bug FWH2402 - Botones
Posted: Tue Mar 05, 2024 08:13 PM
Buenas tardes para todos

Intentamos compilar la aplicaci贸n con FWH2402, pero sale mal el texto en algunos botones, si no estamos mal parece ser que es solo en los botones definidos por recursos.

Saludos
LEANDRO AREVALO
Bogot谩 (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 25.01 ] [ xHarbour 64 bits) ]
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bug FWH2402 - Botones
Posted: Wed Mar 06, 2024 06:38 AM

Estimado Leandro,

Muchas gracias por el feedback

Lo estamos revisando

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bug FWH2402 - Botones
Posted: Wed Mar 06, 2024 08:58 AM

Leandro,

Puedes proporcionarnos el RC de uno de esos di谩logos y el c贸digo para probarlos aqui ?

muchas gracias!

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Bug FWH2402 - Botones
Posted: Wed Mar 06, 2024 12:13 PM
We tried to reproduce this problem at our end, but could not.

We tried this program:
Code (fw): Select all Collapse
#include "FiveWin.ch"

REQUEST HB_CODEPAGE_ESWIN

//----------------------------------------------------------------------------//

function Main()

聽 聽local oDlg, oFont, oBtn

聽 聽HB_CDPSELECT( "ESWIN" )

聽 聽DEFINE FONT oFont NAME "Segoe UI" SIZE 0,-14
聽 聽DEFINE DIALOG oDlg RESOURCE "Main" FONT oFont TITLE FWVERSION

聽 聽REDEFINE BTNBMP oBtn ID 110 PROMPT "Cancelar" ;
聽 聽 聽 FILE "..\bitmaps\32x32\cut.bmp" OF oDlg LEFT

聽 聽REDEFINE BTNBMP ID 120 PROMPT "Aggregar" OF oDlg CENTER

聽 聽REDEFINE BTNBMP ID 130 PROMPT "Desgarcar Ultima" OF oDlg CENTER

聽 聽ACTIVATE DIALOG oDlg CENTERED
聽 聽RELEASE FONT oFont

return nil
rc file
Code (fw): Select all Collapse
main DIALOG 50, 67, 162, 76
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "FiveWin Class TBtnBmp"
FONT 12, "MS Sans Serif"
{
聽CONTROL "", 110, "TBtnBmp", 0 | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 9, 46, 43, 16
聽CONTROL "", 120, "TBtnBmp", 0 | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 60, 46, 43, 16
聽CONTROL "", 130, "TBtnBmp", 0 | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 110, 46, 42, 16
}
Reslut:


How can you provide us with a small sample and rc file to reproduce the problem you are experiencing?
Regards



G. N. Rao.

Hyderabad, India
Posts: 1789
Joined: Tue Oct 11, 2005 05:01 PM
Re: Bug FWH2402 - Botones
Posted: Wed Mar 06, 2024 12:36 PM

Una pregunta, que resoluci贸n usa tu pantalla con las pruebas? HD, fhd, 2k o 4k.?

Salu2

Carlos Vargas

Desde Managua, Nicaragua (CA)
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Bug FWH2402 - Botones
Posted: Wed Mar 06, 2024 01:12 PM
nageswaragunupudi wrote:We tried to reproduce this problem at our end, but could not.

We tried this program:
Code (fw): Select all Collapse
#include "FiveWin.ch"

REQUEST HB_CODEPAGE_ESWIN

//----------------------------------------------------------------------------//

function Main()

聽 聽local oDlg, oFont, oBtn

聽 聽HB_CDPSELECT( "ESWIN" )

聽 聽DEFINE FONT oFont NAME "Segoe UI" SIZE 0,-14
聽 聽DEFINE DIALOG oDlg RESOURCE "Main" FONT oFont TITLE FWVERSION

聽 聽REDEFINE BTNBMP oBtn ID 110 PROMPT "Cancelar" ;
聽 聽 聽 FILE "..\bitmaps\32x32\cut.bmp" OF oDlg LEFT

聽 聽REDEFINE BTNBMP ID 120 PROMPT "Aggregar" OF oDlg CENTER

聽 聽REDEFINE BTNBMP ID 130 PROMPT "Desgarcar Ultima" OF oDlg CENTER

聽 聽ACTIVATE DIALOG oDlg CENTERED
聽 聽RELEASE FONT oFont

return nil
rc file
Code (fw): Select all Collapse
main DIALOG 50, 67, 162, 76
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "FiveWin Class TBtnBmp"
FONT 12, "MS Sans Serif"
{
聽CONTROL "", 110, "TBtnBmp", 0 | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 9, 46, 43, 16
聽CONTROL "", 120, "TBtnBmp", 0 | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 60, 46, 43, 16
聽CONTROL "", 130, "TBtnBmp", 0 | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 110, 46, 42, 16
}
Reslut:


How can you provide us with a small sample and rc file to reproduce the problem you are experiencing?
Hi Mr. Rao,

I have the same problem. I could not compiled your sample.
Code (fw): Select all Collapse
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.9.2
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x86'
Compiling...
Harbour 3.2.0dev (r2304211101)
Copyright (c) 1999-2021, https://harbour.github.io/
Compiling 'raotest1.prg' and generating preprocessed output to 'raotest1.ppo'...
Lines 5050, Functions/Procedures 1
Generating C source output to 'raotest1.c'... Done.
raotest1.c
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Copyright (C) Microsoft Corporation. 聽All rights reserved.

raotest1.RC(2) : error RC2104 : undefined keyword or key name: DS_MODALFRAME
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Copyright (C) Microsoft Corporation. 聽All rights reserved.

raotest1.RC(2) : error RC2104 : undefined keyword or key name: DS_MODALFRAME
* Application successfully built *
But Can you please delete the font defination of DEFINE DIALOG.
Code (fw): Select all Collapse
DEFINE DIALOG oDlg RESOURCE "Main" TITLE FWVERSION
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Bug FWH2402 - Botones
Posted: Wed Mar 06, 2024 02:05 PM
carlos vargas wrote:Una pregunta, que resoluci贸n usa tu pantalla con las pruebas? HD, fhd, 2k o 4k.?
FHD : 1920x1080
Regards



G. N. Rao.

Hyderabad, India
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Bug FWH2402 - Botones
Posted: Wed Mar 06, 2024 02:12 PM
But Can you please delete the font definition of DEFINE DIALOG.
I removed the font and still it is working correctly.
I tried with FW_SetUnicode() .F. and .T. and still it is working correctly.
Regards



G. N. Rao.

Hyderabad, India
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Bug FWH2402 - Botones
Posted: Wed Mar 06, 2024 02:20 PM
raotest1.RC(2) : error RC2104 : undefined keyword or key name: DS_MODALFRAME
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Copyright (C) Microsoft Corporation. All rights reserved.
Please try including this line at the top of RC file.
Code (fw): Select all Collapse
#include "..\include\WinApi.ch"
Regards



G. N. Rao.

Hyderabad, India
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Bug FWH2402 - Botones
Posted: Wed Mar 06, 2024 02:21 PM
carlos vargas wrote:Una pregunta, que resoluci贸n usa tu pantalla con las pruebas? HD, fhd, 2k o 4k.?
Did you try this sample with 2402?
Any feedback?
Regards



G. N. Rao.

Hyderabad, India
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bug FWH2402 - Botones
Posted: Wed Mar 06, 2024 05:09 PM

Here it is working fine using Borland and MSVC 32 an 64

Same screenshots as posted here

Puedes probarlo usando FWH\samples:

buildh.bat botones

buildh32.bat botones

buildh64.bat botones

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1816
Joined: Wed Oct 26, 2005 02:49 PM
Re: Bug FWH2402 - Botones
Posted: Wed Mar 06, 2024 08:49 PM
Gracias a todos por responder, compile el ejemplo y funciona sin problemas. Pero como dice Rao, no reproduce el error.
En este POST tambien reportaron el mismo problema
https://forums.fivetechsupport.com/viewtopic.php?f=3&t=44319&sid=30ba5f6df3bc5f59fdeb2dec6b93d70f

No se si el problema pueda pasar por que nosotros no usamos rc si no archivos res, para la edici贸n de los recursos. Los creamos con pelles c.
Puedes proporcionarnos el RC de uno de esos di谩logos y el c贸digo para probarlos aqui ?
Te envi贸 el RES, de todas formas?
Saludos
LEANDRO AREVALO
Bogot谩 (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 25.01 ] [ xHarbour 64 bits) ]
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bug FWH2402 - Botones
Posted: Wed Mar 06, 2024 09:34 PM

Leandro,

> Te envi贸 el RES, de todas formas?

Si por favor, gracias

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Bug FWH2402 - Botones
Posted: Thu Mar 07, 2024 01:37 PM
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion