Autor Beitrag
Ironwulf
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 733
Erhaltene Danke: 2



BeitragVerfasst: Sa 19.08.06 16:44 
ist es möglich als passwortchar ein zeichen zunehmen das im 2.teil vom assci code steht?
da ich dort gern die #149 hät
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Sa 19.08.06 16:53 
Klar. geht dann bloß nicht mehr so einfach im Objektinspektor, sondern du machst im OnCreate des Formulars
ausblenden Delphi-Quelltext
1:
Edit1.PasswordChar:= #149;					

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
Ironwulf Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 733
Erhaltene Danke: 2



BeitragVerfasst: Sa 19.08.06 17:05 
naja so kommt das selbe raus als wenn ichs in den oi schreib, ich hab mich vllt. undeutlich ausgedrückt bei allen die größer sind als #125 kommt dann nur ein "|" statt des zeichens
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Sa 19.08.06 17:25 
Oha, mein Fehler. Das kommt davon, wenn man ungetesteten Code postet. Tja, scheint damit zu gehen, zumindest ist mir nichts bekannt. Allerdings muss es irgendwie gehen, denn winXP benutzt ja dieses Zeichen als PasswordChar.

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
Ironwulf Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 733
Erhaltene Danke: 2



BeitragVerfasst: So 20.08.06 17:25 
*push* :D
n-regen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 202
Erhaltene Danke: 2



BeitragVerfasst: So 20.08.06 17:29 
Schaut euch mal genau die Font-Eigenschaften von TEdit an:
...
Name=MS Sans Serif
...
Einfach Arial nehmen und #149 eintippen.
Schon klappts ;-)
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: So 20.08.06 17:34 
Das is die unschöne Lösung.
Das Problem ist, mit dem veröffentlichten Eigenschaften in der VCL die Passwort-Funktionalität nur zusammen mit einem veränderten PasswordChar aktivieren lässt.
Deshalb hab ich ne vom Edit abgeleitete Komponente geschrieben, bei der es eine neue Eigenschaft Password gibt, die, wenn sie auf true steht, nur die Passwort-Funktionalität aktiviert. Als PasswordChar wird dann das Standard-Symbol verwendet (wenn man den gefüllten Kreis will braucht man noch ein XPManifest, sonst gibts die Sternchen)

Die Komponente is im Anhang.
Einloggen, um Attachments anzusehen!
_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: So 20.08.06 17:36 
Hallo,

oder setz die Schrift auf Marlett und nimm als Passwortchar das 'h'.

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: So 20.08.06 17:39 
Dann hat man aber immer den gefüllten Kreis, auch wenn der User den klassischen Style aktiviert hat. :wink:
Wenn man das unbedingt haben will, dann kann man ja die Schriftart-Variante wählen. Aber das Prog hebt sich dann halt von allen anderen ab.

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
Ironwulf Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 733
Erhaltene Danke: 2



BeitragVerfasst: So 20.08.06 17:40 
jab danke ich habs jetzt über die schriftart gelöst, welche ich nehm weiß ich noch nich.
die möglichkeit von user profile iconjakobwenzel kann ich nich wirklich verwenden da ich d3 hab und das noch nich wirklich das xpmanifest kennt, trotzdem danke :)