Autor Beitrag
Wolle92
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: So 14.10.07 08:25 
Hallo,

ist es möglich einen einzelnen Button in einer RadioGroup zu deaktivieren, also Enabled auf false?
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 14.10.07 09:07 
Hallo,

da gehts weiter

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

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: So 14.10.07 09:28 
Ne, ich will ja keinen weg haben, der soll da stehen, damit User erkennen, dass man den eventuell benutzten kann, wenn vorher irgendwas anderes passiert... oder so...
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 14.10.07 10:03 
Hallo,

user profile iconLannes hat folgendes geschrieben:
//entsprechend Rahmen0, ein Item deaktivieren:
ausblenden Delphi-Quelltext
1:
TRadioButton(RadioGroup.Controls[4]).Enabled := False;					


Du hast Dir das durchgelesen :?: :mahn:

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

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: So 14.10.07 10:24 
habs gelesen, aber anscheinen nicht bewusst den Cast entdeckt
angos
Hält's aus hier
Beiträge: 9


Delphi 7, TurboDelphi, PHP
BeitragVerfasst: Mi 17.10.07 13:04 
Hi,

der Vollständigkeit halber. es ginge auch so:
ausblenden Delphi-Quelltext
1:
Radiogroup1.Buttons[4].Enabled := False;					
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: Mi 17.10.07 13:22 
Hallo,

damit es noch vollständiger wird :wink:
Der Code mit dem Cast und Controls[x] funktioniert auch in D3, D4 und später.
Mit welcher Version das Array Buttons[x] eingeführt wurde entzieht sich meiner Kenntnis.

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