TOracleLogon component password character

clivew

Member²
I just compiled my first EXE on a Windows7 64-bit machine with DelphiXE.
When I run the application and click the button that eventually runs TOracleLogon.Execute I get the usual dialog and large round dots in the password field instead of the old asterisks.
So far so good.
However, when I test the EXE on my 32-bit Windows XP machine I get neither the round dots nor the old asterisks. I get vertical bars.
Is there a cure for this?
DOA 4.1.2.0

Thanks,
Clive
 
The PasswordChar of the PasswordEdit of the TLogonForm is set to '*'. The PasswordEdit control is a standard TEdit control.

Perhaps you can verify what happens if you create a form with a TEdit control with PasswordChar = '*'?
 
I created a form with a TEdit and set passwordchar to '*'
It produced the large round dots on both my Windows7 64-bit machine AND my 32-bit XP machine.

I then tried running three different applications recently compiled on the new machine and all displayed the same behaviour when I ran them on the XP machine. Vertical lines. Very strange.

I gather you have had no similar reports.
I will take a look at the source code. I don't see any properties for resetting the passwordChar, so I don't think I can be doing that.

Clive
 
I don't know if either of these are relevant but:
1. Package installed reports itself as 4.1.2.2 but Session.Info reports 4.1.2.0

2. I see all your DFM files are still binary, not text. Not that I can see that making any difference to the EXE.
 
OK. I found a discussion of a similar issue in the forums.
Here is a comment that seems to address it. It is also realted to having Themes enabled.
===============
I had a similar problem that was related to the font used. MS Sans Serif
doesn't have the password 'dot' character on some machines (I never figured
out why.) Switching the font to Tahoma solved the issue for me. Good luck.
================
Of course, my test form was using Tahoma as it is the new default; but I see that the oracleLogonForm.dfm has font set to MS Sans Serif.

I could change the source and re-compile. Should I do that?

Clive
 
FIXED
========
Opened the dfm and saved as text and edited:
font to Tahoma
size to -11
(Same as defaults on a new form in XE)
Saved as text format.

Compiled my EXE and ran in XP. Got my big round dots.

Hope this helps someone else.

Clive
 
Back
Top