Autor Beitrag
Hendi48
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 271



BeitragVerfasst: Sa 02.06.07 22:48 
Hi,
also da mein Programm 2 Sprachen hat sind auf der mainform 2 radiobuttons für deutsch und englisch. Wenn man die drückt werden jeweils sämtliche labels und buttons in die sprache geändert. Jetzt will ich aber auch was in einer anderen Form ändern und habe dazu das gemacht:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
if mainform.radiobutton1.checked then
Caption:='iCheat Einstellungen';
Label23.Caption:='CT laden wenn AutoCT gedrückt wird:';
Button2.Caption:='Abbrechen';

if mainform.radiobutton2.checked then
Caption:='iCheat Settings';
Label23.Caption:='Set the CT that gets loaded when you press AutoCT';
Button2.Caption:='Cancel';

(das habe ich ins formcreate von der Form gemacht)
aber wenn ich jetz den RadioButton1 drück (Deutsch) wechselt alles auf der MainForm in Deutsch, aber in der anderen Form nur die Caption (Settings -> Einstellungen) (bei den anderen bleibt es Englisch). Wie kann ich machen dass der das auch für die übrigen objekte macht?


Moderiert von user profile iconUGrohne: Topic aus VCL (Visual Component Library) verschoben am So 03.06.2007 um 10:38
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: Sa 02.06.07 23:25 
Hallo,

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
if mainform.radiobutton1.checked then
Caption:='iCheat Einstellungen';
Label23.Caption:='CT laden wenn AutoCT gedrückt wird:';//wird immer ausgeführt
Button2.Caption:='Abbrechen';                          //wird immer ausgeführt

if mainform.radiobutton2.checked then
Caption:='iCheat Settings';
Label23.Caption:='Set the CT that gets loaded when you press AutoCT';//wird immer ausgeführt
Button2.Caption:='Cancel';                             //wird immer ausgeführt

:arrow: begin | end

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
Hendi48 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 271



BeitragVerfasst: Sa 02.06.07 23:44 
Wenn ich's so
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
if mainform.radiobutton1.checked then
begin
Caption:='iCheat Einstellungen';
Label23.Caption:='CT laden wenn AutoCT gedrückt wird:';
Button2.Caption:='Abbrechen';
end;

if mainform.radiobutton2.checked then
begin
Caption:='iCheat Settings';
Label23.Caption:='Set the CT that gets loaded when you press AutoCT';
Button2.Caption:='Cancel';
end;

mach ändert sich nichts

Edit: AH ich habs, ich habs einfach nochmal über registry auslesen lassen was checked is
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 03.06.07 12:31 
Hallo,
user profile iconHendi48 hat folgendes geschrieben:
Wenn ich's so
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
if mainform.radiobutton1.checked then
begin
Caption:='iCheat Einstellungen';
Label23.Caption:='CT laden wenn AutoCT gedrückt wird:';
Button2.Caption:='Abbrechen';
end;

if mainform.radiobutton2.checked then
begin
Caption:='iCheat Settings';
Label23.Caption:='Set the CT that gets loaded when you press AutoCT';
Button2.Caption:='Cancel';
end;

mach ändert sich nichts
:roll: dann stimmt in Deiner Anwendung etwas anderes nicht, oder Dein Delphi hat eine Macke.

user profile iconHendi48 hat folgendes geschrieben:
Edit: AH ich habs, ich habs einfach nochmal über registry auslesen lassen was checked is
so gehts auch :hair:

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )