[small bug] & is not recognized in a dialog text

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

[small bug] & is not recognized in a dialog text

Post by *Flint »

I define in the LNG file the following line

Code: Select all

1152="Target &path:"
Then I call the dialog where it is used (Background transfer manager -> Add selected files for copying/moving), and I get the full WISIWIG implementation - "what you see is what you get" :D That is, I see not Target path with p underlined, but Target &path with & sign.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Confirmed.

But as I understand it this is no bug because you can't access the 'target path' because it is no button.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

Sheepdog
You are not completely right. Yes, static text fields are not accessible themselves, but when you are trying to use them, Windows places the focus to the next control that can take focus.

For example, open the Find Files dialog and on the General page press Alt+I - the cursor will immediately jump into the Search in edit field.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

Windows places the focus to the next control that can take focus
Not Windows, but Delphi, and only if the text preceedes the control in the creation order.
I switched to Linux, bye and thanks for all the fish!
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2SanskritFritz
Not Windows, but Delphi, and only if the text preceedes the control in the creation order.
Windows :!: :)
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Flint wrote:[For example, open the Find Files dialog and on the General page press Alt+I - the cursor will immediately jump into the Search in edit field.
I don't know much about programming. But I have thought that the 'search &in' is a Label for the edit field while the 'target path' is only a common text field. But maybe I'm wrong.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

Sheepdog
Of course, I don't know, how it's made in Delphi, I use Visual C++... But in VC++ all text labels are made independent, as usual text boxes, without any linking to the next edit box or smth similar. The programer then needs to arrange these items so that tabulation would jump from the text field to the next edit box, else such & signs will not work (I have had such bugs several times in my own programs, when the tabulation order was wrong and &s did not work). Then he just sets the property of the text boxes so that tabulation did not stop at them. So, when a user presses the Alt+letter hotkey (Alt+I in my previous example), Windows tries to jump to this text box. But it has "no-TAB" property, so Windows should jump over it to the next TAB position - and this is the edit box where the user wanted to jump.

The same concerns, e.g. listboxes and some other controls. But the checkboxes and radio-buttons are made as single units (both checkmark and its text are a single control).
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
Post Reply