Changes for 16-bit BC++ (not there yet), GnuWin32; typetest sample
fixed; some documentation fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1271 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
19
samples/typetest/makefile.bcc
Normal file
19
samples/typetest/makefile.bcc
Normal 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=typetest
|
||||
OBJECTS=$(TARGET).obj
|
||||
|
||||
!include $(WXDIR)\src\makeprog.bcc
|
||||
|
@@ -235,10 +235,10 @@ void MyApp::DoVariantDemo(wxCommandEvent& WXUNUSED(event) )
|
||||
wxTextCtrl& textCtrl = * GetTextCtrl();
|
||||
|
||||
wxVariant var1 = "String value";
|
||||
textCtrl << "var1 = " << (wxString) var1 << "\n";
|
||||
textCtrl << "var1 = " << var1.MakeString() << "\n";
|
||||
|
||||
// Implicit conversion
|
||||
wxString str = var1;
|
||||
// Conversion
|
||||
wxString str = var1.MakeString();
|
||||
|
||||
var1 = 123.456;
|
||||
textCtrl << "var1 = " << var1.GetReal() << "\n";
|
||||
@@ -255,20 +255,20 @@ void MyApp::DoVariantDemo(wxCommandEvent& WXUNUSED(event) )
|
||||
wxStringList stringList;
|
||||
stringList.Add("one"); stringList.Add("two"); stringList.Add("three");
|
||||
var1 = stringList;
|
||||
textCtrl << "var1 = " << (wxString) var1 << "\n";
|
||||
textCtrl << "var1 = " << var1.MakeString() << "\n";
|
||||
|
||||
var1.ClearList();
|
||||
var1.Append(wxVariant(1.2345));
|
||||
var1.Append(wxVariant("hello"));
|
||||
var1.Append(wxVariant(54321L));
|
||||
|
||||
textCtrl << "var1 = " << (wxString) var1 << "\n";
|
||||
textCtrl << "var1 = " << var1.MakeString() << "\n";
|
||||
|
||||
size_t n = var1.GetCount();
|
||||
size_t i;
|
||||
for (i = (size_t) 0; i < n; i++)
|
||||
{
|
||||
textCtrl << "var1[" << (int) i << "] (type " << var1[i].GetType() << ") = " << (wxString) var1[i] << "\n";
|
||||
textCtrl << "var1[" << (int) i << "] (type " << var1[i].GetType() << ") = " << var1[i].MakeString() << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1,4 +1,3 @@
|
||||
* Last change: JS 11 Sep 98 1:22 pm
|
||||
NAME Typetest
|
||||
DESCRIPTION 'Typetest wxWindows application'
|
||||
EXETYPE WINDOWS
|
||||
|
Reference in New Issue
Block a user