Added some makefiles, cured some wxMotif bugs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -13,5 +13,5 @@ PROGRAM=bombs
|
||||
|
||||
OBJECTS = bombs.o bombs1.o game.o
|
||||
|
||||
include ../../../src/makeprog.env
|
||||
include ../../src/makeprog.env
|
||||
|
||||
|
17
samples/image/makefile.unx
Normal file
17
samples/image/makefile.unx
Normal file
@@ -0,0 +1,17 @@
|
||||
#
|
||||
# File: makefile.unx
|
||||
# Author: Julian Smart
|
||||
# Created: 1998
|
||||
# Updated:
|
||||
# Copyright: (c) 1998 Julian Smart
|
||||
#
|
||||
# "%W% %G%"
|
||||
#
|
||||
# Makefile for image example (UNIX).
|
||||
|
||||
PROGRAM=image
|
||||
|
||||
OBJECTS=$(PROGRAM).o
|
||||
|
||||
include ../../src/makeprog.env
|
||||
|
@@ -44,9 +44,11 @@ bool MyApp::OnInit(void)
|
||||
frame = new MyFrame((wxFrame*) NULL, -1, (char *) "Notebook", wxPoint(-1, -1), wxSize(365, 390), wxDEFAULT_FRAME_STYLE);
|
||||
|
||||
// Problem with generic wxNotebook implementation whereby it doesn't size properly unless
|
||||
// you set the size again (to a different size than before, since SetSize is optimized)
|
||||
#if defined(__WXMOTIF__) || defined(__WIN16__)
|
||||
frame->SetSize(-1, -1, 370, 390);
|
||||
// you set the size again
|
||||
#if defined(__WIN16__)
|
||||
int width, height;
|
||||
frame->GetSize(& width, & height);
|
||||
frame->SetSize(-1, -1, width, height);
|
||||
#endif
|
||||
|
||||
return TRUE;
|
||||
|
Reference in New Issue
Block a user