Added own sample for text ctrl, char/key events, clipboard.

This can be removed from the controls sample.
  Made control tooltips yellow again.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-05-31 14:54:04 +00:00
parent 85eb36c267
commit 02e8b87f6f
17 changed files with 884 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
Linux
linux-gnu
linux
+1
View File
@@ -0,0 +1 @@
include ../../setup/general/makeapp
+26
View File
@@ -0,0 +1,26 @@
# WXXT base directory
WXBASEDIR=@WXBASEDIR@
# set the OS type for compilation
OS=@OS@
# compile a library only
RULE=bin
# define library name
BIN_TARGET=controls
# define library sources
BIN_SRC=\
controls.cpp
#define library objects
BIN_OBJ=\
controls.o
# additional things needed to link
BIN_LINK=
# additional things needed to compile
ADD_COMPILE=
# include the definitions now
include ../../../template.mak
File diff suppressed because it is too large Load Diff
+8
View File
@@ -0,0 +1,8 @@
NAME Controls
DESCRIPTION 'wxWindows controls sample'
EXETYPE WINDOWS
STUB 'WINSTUB.EXE'
CODE PRELOAD MOVEABLE DISCARDABLE
DATA PRELOAD MOVEABLE MULTIPLE
HEAPSIZE 4048
STACKSIZE 16000
+10
View File
@@ -0,0 +1,10 @@
mondrian ICON "mondrian.ico"
choice BITMAP "icons/choice.bmp"
combo BITMAP "icons/combo.bmp"
gauge BITMAP "icons/gauge.bmp"
list BITMAP "icons/list.bmp"
radio BITMAP "icons/radio.bmp"
text BITMAP "icons/text.bmp"
#include "wx/msw/wx.rc"
+16
View File
@@ -0,0 +1,16 @@
#
# File: makefile.b32
# Author: Julian Smart
# Created: 1999
# Updated:
# Copyright:
#
# Makefile : Builds sample for 32-bit BC++
WXDIR = $(WXWIN)
TARGET=controls
OBJECTS = $(TARGET).obj
!include $(WXDIR)\src\makeprog.b32
+19
View File
@@ -0,0 +1,19 @@
#
# File: makefile.bcc
# Author: Julian Smart
# Created: 1998
# Updated:
#
# Builds a BC++ 16-bit sample
!if "$(WXWIN)" == ""
!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
!endif
WXDIR = $(WXWIN)
TARGET=controls
OBJECTS=$(TARGET).obj
!include $(WXDIR)\src\makeprog.bcc
+17
View File
@@ -0,0 +1,17 @@
#
# File: makefile.dos
# Author: Julian Smart
# Created: 1998
# Updated:
#
# Makefile : Builds 16-bit sample, VC++ 1.5
# Use FINAL=1 argument to nmake to build final version with no debugging
# info
WXDIR = $(WXWIN)
TARGET=controls
OBJECTS=$(TARGET).obj
!include $(WXDIR)\src\makeprog.msc
+16
View File
@@ -0,0 +1,16 @@
#
# File: makefile.g95
# Author: Julian Smart
# Created: 1999
# Updated:
# Copyright: (c) Julian Smart, 1999
#
# Makefile for wxWindows sample (Cygwin/Mingw32).
WXDIR = ../..
TARGET=controls
OBJECTS = $(TARGET).o
include $(WXDIR)/src/makeprog.g95
+17
View File
@@ -0,0 +1,17 @@
#
# File: makefile.unx
# Author: Julian Smart
# Created: 1998
# Updated:
# Copyright: (c) 1998 Julian Smart
#
# "%W% %G%"
#
# Makefile for controls example (UNIX).
PROGRAM=controls
OBJECTS=$(PROGRAM).o
include ../../src/makeprog.env
+18
View File
@@ -0,0 +1,18 @@
#
# File: makefile.vc
# Author: Julian Smart
# Created: 1999
# Updated:
# Copyright: (c) Julian Smart
#
# Makefile : Builds sample (VC++, WIN32)
# Use FINAL=1 argument to nmake to build final version with no debug info.
# Set WXDIR for your system
WXDIR = $(WXWIN)
PROGRAM=controls
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.vc
+15
View File
@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = controls
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat
Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

+44
View File
@@ -0,0 +1,44 @@
/* XPM */
static char *mondrian_xpm[] = {
/* columns rows colors chars-per-pixel */
"32 32 6 1",
" c Black",
". c Blue",
"X c #00bf00",
"o c Red",
"O c Yellow",
"+ c Gray100",
/* pixels */
" ",
" oooooo +++++++++++++++++++++++ ",
" oooooo +++++++++++++++++++++++ ",
" oooooo +++++++++++++++++++++++ ",
" oooooo +++++++++++++++++++++++ ",
" oooooo +++++++++++++++++++++++ ",
" oooooo +++++++++++++++++++++++ ",
" oooooo +++++++++++++++++++++++ ",
" ",
" ++++++ ++++++++++++++++++ .... ",
" ++++++ ++++++++++++++++++ .... ",
" ++++++ ++++++++++++++++++ .... ",
" ++++++ ++++++++++++++++++ .... ",
" ++++++ ++++++++++++++++++ .... ",
" ++++++ ++++++++++++++++++ ",
" ++++++ ++++++++++++++++++ ++++ ",
" ++++++ ++++++++++++++++++ ++++ ",
" ++++++ ++++++++++++++++++ ++++ ",
" ++++++ ++++++++++++++++++ ++++ ",
" ++++++ ++++++++++++++++++ ++++ ",
" ++++++ ++++++++++++++++++ ++++ ",
" ++++++ ++++++++++++++++++ ++++ ",
" ++++++ ++++++++++++++++++ ++++ ",
" ++++++ ++++++++++++++++++ ++++ ",
" ++++++ ++++ ",
" ++++++ OOOOOOOOOOOO XXXXX ++++ ",
" ++++++ OOOOOOOOOOOO XXXXX ++++ ",
" ++++++ OOOOOOOOOOOO XXXXX ++++ ",
" ++++++ OOOOOOOOOOOO XXXXX ++++ ",
" ++++++ OOOOOOOOOOOO XXXXX ++++ ",
" ++++++ OOOOOOOOOOOO XXXXX ++++ ",
" "
};
+13
View File
@@ -63,7 +63,20 @@ void wxToolTip::Apply( wxWindow *win )
ss_bg.blue = 50000;
gdk_color_alloc( gtk_widget_get_default_colormap(), &ss_bg );
#if (GTK_MINOR_VERSION > 0)
gtk_tooltips_force_window( ss_tooltips );
GtkStyle *g_style =
gtk_style_copy(
gtk_widget_get_style( ss_tooltips->tip_window ) );
g_style->fg[GTK_STATE_NORMAL] = ss_fg;
g_style->bg[GTK_STATE_NORMAL] = ss_bg;
gtk_widget_set_style( ss_tooltips->tip_window, g_style );
#else
gtk_tooltips_set_colors( ss_tooltips, &ss_bg, &ss_fg );
#endif
}
m_window = win;
+13
View File
@@ -63,7 +63,20 @@ void wxToolTip::Apply( wxWindow *win )
ss_bg.blue = 50000;
gdk_color_alloc( gtk_widget_get_default_colormap(), &ss_bg );
#if (GTK_MINOR_VERSION > 0)
gtk_tooltips_force_window( ss_tooltips );
GtkStyle *g_style =
gtk_style_copy(
gtk_widget_get_style( ss_tooltips->tip_window ) );
g_style->fg[GTK_STATE_NORMAL] = ss_fg;
g_style->bg[GTK_STATE_NORMAL] = ss_bg;
gtk_widget_set_style( ss_tooltips->tip_window, g_style );
#else
gtk_tooltips_set_colors( ss_tooltips, &ss_bg, &ss_fg );
#endif
}
m_window = win;