Hi!
I want to override the Draw methode from my StaticTextWidget. So far I have wrote this in my .fr file:
...
//Class definition
Class
{
kMyPalTextWidgetBoss,
kStaticTextWidgetBoss,
{
IID_ICONTROLVIEW, kMyPalTextViewImpl,
}
}
...
//type definition
type MyPalTextWidget(kViewRsrcType) : StaticTextWidget(ClassID = kMyPalTextWidgetBoss)
{
CControlView;
};
//resource...
(I think here I missed something...)
MyPalTextWidget
(
// CControlView properties
kMyPalTextWidgetID, // WidgetId
kPMRsrcID_None, // RsrcId
kBindLeft | kBindRight, // Frame binding
0,0,160,19, // Frame
kTrue, kTrue, // Visible, Enabled
//StaticTextAttributes
kAlignRight, // fAlignmet
kDontEllipsize, // ellipse
//CTextControlData properties
"",
//AssociatedWidgetAttributes
kInvalidWidgetID,
),
...because the compiler jumps to the last bracket and gives me a "error R32697: # Error: Syntax error in expression."
Does anyone have a clue?
Thanks!
I want to override the Draw methode from my StaticTextWidget. So far I have wrote this in my .fr file:
...
//Class definition
Class
{
kMyPalTextWidgetBoss,
kStaticTextWidgetBoss,
{
IID_ICONTROLVIEW, kMyPalTextViewImpl,
}
}
...
//type definition
type MyPalTextWidget(kViewRsrcType) : StaticTextWidget(ClassID = kMyPalTextWidgetBoss)
{
CControlView;
};
//resource...
(I think here I missed something...)
MyPalTextWidget
(
// CControlView properties
kMyPalTextWidgetID, // WidgetId
kPMRsrcID_None, // RsrcId
kBindLeft | kBindRight, // Frame binding
0,0,160,19, // Frame
kTrue, kTrue, // Visible, Enabled
//StaticTextAttributes
kAlignRight, // fAlignmet
kDontEllipsize, // ellipse
//CTextControlData properties
"",
//AssociatedWidgetAttributes
kInvalidWidgetID,
),
...because the compiler jumps to the last bracket and gives me a "error R32697: # Error: Syntax error in expression."
Does anyone have a clue?
Thanks!