removing Makefile.ams (and minor additions/fixes to the samples)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-11-08 15:06:41 +00:00
parent ac99a98ff0
commit e66ad5c68d
18 changed files with 66 additions and 102 deletions

View File

@@ -210,10 +210,19 @@ enum
bool MyApp::OnInit()
{
// parse the cmd line
int x = 50,
y = 50;
if ( argc == 2 )
{
wxSscanf(argv[1], "%d", &x);
wxSscanf(argv[2], "%d", &y);
}
// Create the main frame window
MyFrame *frame = new MyFrame((wxFrame *) NULL,
"Controls wxWindows App",
50, 50, 530, 420);
x, y, 530, 420);
// Give it an icon
// The wxICON() macros loads an icon from a resource under Windows
@@ -705,6 +714,8 @@ void MyPanel::OnChangeColour(wxCommandEvent& WXUNUSED(event))
void MyPanel::OnListBox( wxCommandEvent &event )
{
GetParent()->Move(100, 100);
wxListBox *listbox = event.GetId() == ID_LISTBOX ? m_listbox
: m_listboxSorted;