Bug FWH2402 - Botones

Bug FWH2402 - Botones

Postby leandro » Tue Mar 05, 2024 8: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.

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

[ Embarcadero C++ 7.60 for Win32 ] [ FiveWin 23.07 ] [ xHarbour 1.3.0 Intl. (SimpLex) (Build 20230914) ]
User avatar
leandro
 
Posts: 1676
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia

Re: Bug FWH2402 - Botones

Postby Antonio Linares » Wed Mar 06, 2024 6:38 am

Estimado Leandro,

Muchas gracias por el feedback

Lo estamos revisando
regards, saludos

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

Re: Bug FWH2402 - Botones

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

Re: Bug FWH2402 - Botones

Postby nageswaragunupudi » Wed Mar 06, 2024 12:13 pm

We tried to reproduce this problem at our end, but could not.

We tried this program:
Code: Select all  Expand view  RUN
#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: Select all  Expand view  RUN
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:
Image

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
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Bug FWH2402 - Botones

Postby carlos vargas » 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)
User avatar
carlos vargas
 
Posts: 1721
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua

Re: Bug FWH2402 - Botones

Postby Horizon » Wed Mar 06, 2024 1:12 pm

nageswaragunupudi wrote:We tried to reproduce this problem at our end, but could not.

We tried this program:
Code: Select all  Expand view  RUN
#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: Select all  Expand view  RUN
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:
Image

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: Select all  Expand view  RUN
**********************************************************************
** 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: Select all  Expand view  RUN
DEFINE DIALOG oDlg RESOURCE "Main" TITLE FWVERSION
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: Bug FWH2402 - Botones

Postby nageswaragunupudi » Wed Mar 06, 2024 2: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
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Bug FWH2402 - Botones

Postby nageswaragunupudi » Wed Mar 06, 2024 2: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
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Bug FWH2402 - Botones

Postby nageswaragunupudi » Wed Mar 06, 2024 2: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: Select all  Expand view  RUN
#include "..\include\WinApi.ch"
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Bug FWH2402 - Botones

Postby nageswaragunupudi » Wed Mar 06, 2024 2: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
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Bug FWH2402 - Botones

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

Re: Bug FWH2402 - Botones

Postby leandro » Wed Mar 06, 2024 8: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

[ Embarcadero C++ 7.60 for Win32 ] [ FiveWin 23.07 ] [ xHarbour 1.3.0 Intl. (SimpLex) (Build 20230914) ]
User avatar
leandro
 
Posts: 1676
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia

Re: Bug FWH2402 - Botones

Postby Antonio Linares » Wed Mar 06, 2024 9:34 pm

Leandro,

> Te envió el RES, de todas formas?

Si por favor, gracias
regards, saludos

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

Re: Bug FWH2402 - Botones

Postby nageswaragunupudi » Thu Mar 07, 2024 1:37 pm

Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: cmsoft, Google [Bot] and 74 guests