[wx-dev] Question regarding how to create an apply button
usingwxWiggets
Cai, Xin
Xin.Cai at viasat.com
Tue Jun 3 17:15:11 PDT 2008
Basically I created my own class derived from wxPropertySheetDialog
class. And right now here is my constructor for my own class
MY_GUI::MY_GUI( const wxString & title )
: wxPropertySheetDialog(NULL, wxID_ANY, title, wxDefaultPosition,
wxSize(250,150))
{
CreateButtons(wxYES_NO);
// Add page
wxPanel* panel = new wxPanel(GetBookCtrl());
GetBookCtrl()->AddPage(panel, wxT("General"));
GetBookCtrl()->AddPage(panel, wxT("TEST"));
LayoutDialog();
}
Inside my OnInit function in main.c I simply create an instance of
MY_GUI class and call the show function. The ultimate goal is to be able
to
display a dialog similar to the "Display properties" dialog in windows.
Thanks
Xin Cai
________________________________
From: wx-dev-bounces at lists.wxwidgets.org
[mailto:wx-dev-bounces at lists.wxwidgets.org] On Behalf Of Edgar Omar
Sent: Tuesday, June 03, 2008 5:06 PM
To: wx-dev at lists.wxwidgets.org
Subject: Re: [wx-dev] Question regarding how to create an apply button
usingwxWiggets
I need more info than that, like are you in a wxDialog?, if so, you can
add your own buttons like in a normal wxFrame, with wxButton and a
connect event, the trick would be to make them look cool in a wxDialog,
I have some issues trying to fit a wxtextctrl and a label on it
On Tue, Jun 3, 2008 at 7:03 PM, Cai, Xin <Xin.Cai at viasat.com> wrote:
Hi guys
I am trying to create a program that shows a propertysheet and I need to
add an Apply button in addition to OK and cancel, and then I notice that
wxApply is no longer supported. In that case I would like to know how
can I add an apply button manually to my program? Thank you very much
Sincerely
Xin Cai
_______________________________________________
wx-dev mailing list
wx-dev at lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wx-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-dev/attachments/20080603/536aed2d/attachment.htm
More information about the wx-dev
mailing list