Watch, Follow, &
Connect with Us

Welcome, Guest
Guest Settings
Help

Thread: TBitBtn Text



Permlink Replies: 15 - Last Post: May 12, 2017 10:33 PM Last Post By: Robert Penoyer Threads: [ Previous | Next ]
Robert Penoyer

Posts: 14
Registered: 2/14/06
TBitBtn Text
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 23, 2017 8:48 PM
I have a simple 64-bit Windows project with just two forms. One of the forms
uses a TBitBtn of Kind bkOK. Everything looks good at design time, but at
runtime there is a character that might be Korean where the OK should be.

I've tried other TBitBtn on the form but I get similar results. If I use
a TButton with Caption OK, it looks fine at runtime.

Everything is correct if the project is compiled for 32-bit Windows.

I'm using 10.2 Tokyo.
Remy Lebeau (Te...


Posts: 8,641
Registered: 12/23/01
Re: TBitBtn Text
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 24, 2017 8:02 AM   in response to: Robert Penoyer in response to: Robert Penoyer
Robert wrote:

I have a simple 64-bit Windows project with just two forms. One of
the forms uses a TBitBtn of Kind bkOK. Everything looks good at
design time, but at runtime there is a character that might be Korean
where the OK should be.

What do you mean? Can you show a screenshot?

--
Remy Lebeau (TeamB)
Antonio Estevez

Posts: 595
Registered: 4/12/00
Re: TBitBtn Text
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 24, 2017 12:48 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
El 24/03/2017 a las 16:02, Remy Lebeau (TeamB) escribió:
Robert wrote:

I have a simple 64-bit Windows project with just two forms. One of
the forms uses a TBitBtn of Kind bkOK. Everything looks good at
design time, but at runtime there is a character that might be Korean
where the OK should be.

What do you mean? Can you show a screenshot?

The issue occurs only on Win64 platform, Release configuration, linking without runtime packages.

Linking with runtime packages works fine.

This is a screenshot:
https://forums.embarcadero.com/thread.jspa?threadID=248188&tstart=0

Robert Penoyer

Posts: 14
Registered: 2/14/06
Re: TBitBtn Text
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 24, 2017 8:08 PM   in response to: Antonio Estevez in response to: Antonio Estevez
Hello Antonio,

El 24/03/2017 a las 16:02, Remy Lebeau (TeamB) escribió:

Robert wrote:

I have a simple 64-bit Windows project with just two forms. One of
the forms uses a TBitBtn of Kind bkOK. Everything looks good at
design time, but at runtime there is a character that might be
Korean where the OK should be.
What do you mean? Can you show a screenshot?
The issue occurs only on Win64 platform, Release configuration,
linking without runtime packages.

Linking with runtime packages works fine.

This is a screenshot:
https://forums.embarcadero.com/thread.jspa?threadID=248188&tstart=0

Antonio, your description is exactly right: Win64 platform, Release configuration,
linking without runtime packages.

But your screenshot is not what I see. Your little squares appear as Asian
text characters.

So, Remy, does that suggest a bug in Win64 without runtime packages? Or,
is there a simple workaround aside from avoiding TBitBtn under the condition
described?
Antonio Estevez

Posts: 595
Registered: 4/12/00
Re: TBitBtn Text
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 25, 2017 3:02 AM   in response to: Robert Penoyer in response to: Robert Penoyer
El 25/03/2017 a las 4:08, Robert Penoyer escribió:
Hello Antonio,

El 24/03/2017 a las 16:02, Remy Lebeau (TeamB) escribió:

Robert wrote:

I have a simple 64-bit Windows project with just two forms. One of
the forms uses a TBitBtn of Kind bkOK. Everything looks good at
design time, but at runtime there is a character that might be
Korean where the OK should be.
What do you mean? Can you show a screenshot?
The issue occurs only on Win64 platform, Release configuration,
linking without runtime packages.

Linking with runtime packages works fine.

This is a screenshot:
https://forums.embarcadero.com/thread.jspa?threadID=248188&tstart=0

Antonio, your description is exactly right: Win64 platform, Release configuration,
linking without runtime packages.

But your screenshot is not what I see. Your little squares appear as Asian
text characters.

So, Remy, does that suggest a bug in Win64 without runtime packages? Or,
is there a simple workaround aside from avoiding TBitBtn under the condition
described?

I just upload another screenshot taken from a real PC. The first one was taken from a virtual machine.

The image suggests that an Ansi string is being written as if it were an Unicode string (note that the text shown is
half the length of the actual text). Or perhaps the resource file where those strings are is corrupt.

A temporary workaround is to add a white space at the end of the Caption property.

You should submit a bug report to the quality portal. I can do it if you want.
Robert Penoyer

Posts: 14
Registered: 2/14/06
Re: TBitBtn Text
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 26, 2017 11:14 PM   in response to: Antonio Estevez in response to: Antonio Estevez
Hello Antonio,

El 25/03/2017 a las 4:08, Robert Penoyer escribió:

Hello Antonio,

El 24/03/2017 a las 16:02, Remy Lebeau (TeamB) escribió:

Robert wrote:

I have a simple 64-bit Windows project with just two forms. One of
the forms uses a TBitBtn of Kind bkOK. Everything looks good at
design time, but at runtime there is a character that might be
Korean where the OK should be.
What do you mean? Can you show a screenshot?
The issue occurs only on Win64 platform, Release configuration,
linking without runtime packages.

Linking with runtime packages works fine.

This is a screenshot:
https://forums.embarcadero.com/thread.jspa?threadID=248188&tstart=0
Antonio, your description is exactly right: Win64 platform, Release
configuration, linking without runtime packages.

But your screenshot is not what I see. Your little squares appear as
Asian text characters.

So, Remy, does that suggest a bug in Win64 without runtime packages?
Or,
is there a simple workaround aside from avoiding TBitBtn under the
condition
described?
I just upload another screenshot taken from a real PC. The first one
was taken from a virtual machine.

The image suggests that an Ansi string is being written as if it were
an Unicode string (note that the text shown is half the length of the
actual text). Or perhaps the resource file where those strings are is
corrupt.

A temporary workaround is to add a white space at the end of the
Caption property.

You should submit a bug report to the quality portal. I can do it if
you want.

Your fix worked. Thanks for that. You're welcome to make the bug report if
you like.
Andy Walker

Posts: 47
Registered: 1/20/01
Re: TBitBtn Text
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 26, 2017 3:27 PM   in response to: Robert Penoyer in response to: Robert Penoyer
Robert Penoyer wrote:
I have a simple 64-bit Windows project with just two forms. One of the forms
uses a TBitBtn of Kind bkOK. Everything looks good at design time, but at
runtime there is a character that might be Korean where the OK should be.

I've tried other TBitBtn on the form but I get similar results. If I use
a TButton with Caption OK, it looks fine at runtime.

Everything is correct if the project is compiled for 32-bit Windows.

I'm using 10.2 Tokyo.

So this is 64-bit only and has nothing to do with Release or Debug. It happens for either build if "Link with Runtime Packages" is un-ticked.

A workaround is to set the Caption at runtime but if you could log a QC report and post the link here that would be great. We can all vote for it then.

Andy
Andy Walker

Posts: 47
Registered: 1/20/01
Re: TBitBtn Text
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 27, 2017 1:35 PM   in response to: Robert Penoyer in response to: Robert Penoyer
Robert Penoyer wrote:
I have a simple 64-bit Windows project with just two forms. One of the forms
uses a TBitBtn of Kind bkOK. Everything looks good at design time, but at
runtime there is a character that might be Korean where the OK should be.

I've tried other TBitBtn on the form but I get similar results. If I use
a TButton with Caption OK, it looks fine at runtime.

Everything is correct if the project is compiled for 32-bit Windows.

I'm using 10.2 Tokyo.

Raised in QP https://quality.embarcadero.com/browse/RSP-17196
Antonio Estevez

Posts: 595
Registered: 4/12/00
Re: TBitBtn Text
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 27, 2017 2:27 PM   in response to: Andy Walker in response to: Andy Walker
El 27/03/2017 a las 22:35, Andy Walker escribió:
Robert Penoyer wrote:
I have a simple 64-bit Windows project with just two forms. One of the forms
uses a TBitBtn of Kind bkOK. Everything looks good at design time, but at
runtime there is a character that might be Korean where the OK should be.

I've tried other TBitBtn on the form but I get similar results. If I use
a TButton with Caption OK, it looks fine at runtime.

Everything is correct if the project is compiled for 32-bit Windows.

I'm using 10.2 Tokyo.

Raised in QP https://quality.embarcadero.com/browse/RSP-17196

Thanks.
I voted for it and I added a comment with a sample project
Oliver Weinheimer

Posts: 72
Registered: 8/20/04
Re: TBitBtn Text
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 6, 2017 3:39 AM   in response to: Antonio Estevez in response to: Antonio Estevez
Any news about this problem?

I was running into the same problem, see
https://forums.embarcadero.com/message.jspa?messageID=881456#881456

Embarcadero should release a hotfix!
Antonio Estevez

Posts: 595
Registered: 4/12/00
Re: TBitBtn Text
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 6, 2017 4:23 AM   in response to: Oliver Weinheimer in response to: Oliver Weinheimer
El 06/04/2017 a las 12:39, Oliver Weinheimer escribió:
Any news about this problem?

I was running into the same problem, see
https://forums.embarcadero.com/message.jspa?messageID=881456#881456

Embarcadero should release a hotfix!

Feel free to vote for this issues:

https://quality.embarcadero.com/browse/RSP-17121
https://quality.embarcadero.com/browse/RSP-17196
https://quality.embarcadero.com/browse/RSP-17722
Oliver Weinheimer

Posts: 72
Registered: 8/20/04
Re: TBitBtn Text
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 12, 2017 1:27 AM   in response to: Antonio Estevez in response to: Antonio Estevez

I have voted - still no bug fix around ... I can not upload a required update of my tools on our research workstations.
Aleksey Simonov

Posts: 1
Registered: 4/11/08
Re: TBitBtn Text
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 22, 2017 4:03 AM   in response to: Andy Walker in response to: Andy Walker
Still no news regarding fixing of this very annoying issue?
Antonio Estevez

Posts: 595
Registered: 4/12/00
Re: TBitBtn Text
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 3, 2017 1:43 PM   in response to: Aleksey Simonov in response to: Aleksey Simonov
El 22/04/2017 a las 13:03, Aleksey Simonov escribió:
Still no news regarding fixing of this very annoying issue?

Just released a hotfix:
https://community.embarcadero.com/blogs/entry/april-2017-rad-studio-10-2-hotfix-for-toolchain-issues
Oliver Weinheimer

Posts: 72
Registered: 8/20/04
Re: TBitBtn Text
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 3, 2017 2:00 PM   in response to: Antonio Estevez in response to: Antonio Estevez
Antonio Estevez wrote:
El 22/04/2017 a las 13:03, Aleksey Simonov escribió:
Still no news regarding fixing of this very annoying issue?

Just released a hotfix:
https://community.embarcadero.com/blogs/entry/april-2017-rad-studio-10-2-hotfix-for-toolchain-issues

My problem is solved :-)
Robert Penoyer

Posts: 14
Registered: 2/14/06
Re: TBitBtn Text
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 12, 2017 10:33 PM   in response to: Andy Walker in response to: Andy Walker
Hello Andy,

Robert Penoyer wrote:
I have a simple 64-bit Windows project with just two forms. One of
the forms
uses a TBitBtn of Kind bkOK. Everything looks good at design time,
but at
runtime there is a character that might be Korean where the OK should
be.
I've tried other TBitBtn on the form but I get similar results. If I
use a TButton with Caption OK, it looks fine at runtime.

Everything is correct if the project is compiled for 32-bit Windows.

I'm using 10.2 Tokyo.
Raised in QP https://quality.embarcadero.com/browse/RSP-17196

The Hotfix solved the problem. Thanks.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02