Quantcast
Channel: Adobe Community : Popular Discussions - InDesign SDK
Viewing all articles
Browse latest Browse all 78596

How to implement own ControlView on a StaticTextWidget?

$
0
0
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!

Viewing all articles
Browse latest Browse all 78596

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>