Autor Beitrag
raiha
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 152



BeitragVerfasst: Mo 29.08.05 09:25 
Hi,

ich füge zu Laufzeit ein TMaskEdit ein einen Frame ein.

mit MyCurrMaskEdit.Parent := Panel_Background;

leider kommt da ein Fehler:
ausblenden Quelltext
1:
Frame_inf.pas(103): Inkompatible Typen: 'TWidgetControl' und 'TPanel'					


mache ich das gleiche mit einem normalen TEdit geht es aber. Was mache ich falsch?

Danke Rainer
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Mo 29.08.05 10:03 
Bin mir nicht sicher (hab in der Arbeit kein Delphi), aber es kann sein, dass TPanel nicht von TWidgetControl oder einer anderen benötigten Klasse abstammt und daher nicht kompatibel ist. Obwohl normalerweise Parent TWinControl ist und sowohl TPanel als auch TEdit davon abstammen müssten...

AXMD
raiha Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 152



BeitragVerfasst: Mo 29.08.05 11:01 
... hab ein bisschen im Forum gestöbert und gefunden woran es lag. Statt der Unit QMask musste nur Mask eingebunden werden. Jetzt gehts hab aber k.A. warum.

Wäre schön wenn jemand das Rätsel auflösen könnte :-)

Tschüss Rainer
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: Mo 29.08.05 11:12 
Hallo,

TWidgetControl :arrow: Kylix :?:
das habe ich vor kurzem in der DP gelesen:
Problem mit Klasse und TImage
Ist QMask eine Unit von Kylix?
Ist das des Rätsels Lösung?

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



BeitragVerfasst: Mi 31.08.05 09:07 
weis offen gesagt nicht woher die unit kommt - habe alles aus der Delphi palette