A
A Wieser
I've just started climbing the steep learning curve from VC6/MFC to Windows
forms and C++/CLI.
But I just can't find the documentation that describes the philosophy of
what's going on.
A simple example:
I want to create a popup menu class that can be reused on multiple forms,
and starts out with the some default items on it that I then add to.
I found the ContextMenuStrip component, but I can't see a way to derive a
class from this alone, and have the designers available for the class, and
have localization support.
Is there support for something like this:
public ref class MyContextMenuStrip : public
System::Windows::Forms::ContextMenuStrip
{
mypopup2(void)
{
// create all of my default menu stuff here, but have it updated by
the form designer!
}
// ... etc. etc.
};
and still having the ability to have localizable resources, and decent
editing, or must I start coding everything by hand if I want to factor out
common code in this way.
Tony
forms and C++/CLI.
But I just can't find the documentation that describes the philosophy of
what's going on.
A simple example:
I want to create a popup menu class that can be reused on multiple forms,
and starts out with the some default items on it that I then add to.
I found the ContextMenuStrip component, but I can't see a way to derive a
class from this alone, and have the designers available for the class, and
have localization support.
Is there support for something like this:
public ref class MyContextMenuStrip : public
System::Windows::Forms::ContextMenuStrip
{
mypopup2(void)
{
// create all of my default menu stuff here, but have it updated by
the form designer!
}
// ... etc. etc.
};
and still having the ability to have localizable resources, and decent
editing, or must I start coding everything by hand if I want to factor out
common code in this way.
Tony