wxEuphoria v0.9.0
Wrapper for wxWidgets
by Matt Lewis
matthewwalkerlewis@gmail.com
http://www14.brinkster.com/matthewlewis
wxEuphoria is an implementation of wxWidgets by Julian
Smart, et. al. for Euphoria. wxWidgets is a cross platform GUI library.
The wxWidgets library is compiled into a DLL/SO, and is linked
to by Euphoria code.
This version of wxEuphoria requires library build #9.
wxEuphoria is licensed under the wxWidgets license (see the license folder).
DISCLAIMER: THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFIT; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Permission is granted to anyone to use this software for any purpose on any computer system, and to alter it and redistribute it, subject to the following restrictions:
Files Included: * Documentation + wxEuphoria.htm + install.txt * Licenses + gpl + jpeg-readme.txt + lgpl.txt + licence.txt + tiff-copyright.txt * Library: + cplusplus.e + wxButton.e + wxCalendar.e + wxCheckBox.e + wxClassInfo.e + wxControl.e + wxData.e + wxDialog.e + wxEuphoria.e + wxFile.e + wxGraphics.e + wxGrid.e + wxHtml.e + wxList.e + wxLowLevel.e + wxMenu.e + wxNet.e + wxNotebook.e + wxScrollbar.e + wxSizer.e + wxStatic.e + wxStatusBar.e + wxText.e + wxTimer.e + wxToolBar.e + wxTreeCtrl.e * Demos: see the demo subdirectoryFiles not included (with library source) * wxeu.dll * wxeu.so * wxWidgets source code and documentation (go to www.wxwidgets.org) * wxEuphoria modifications to wxWidgets source code (see the wxEuphoria developers package) * Euphoria v2.5
Topic | Description |
Index | Alphabetical list of all items. |
Change History | Enhancements and bug fixes |
Classes | List of Classes and routines that apply to them |
Clipboard | Cut and paste |
Controls | A List of controls available in wxWidgets |
Cross Platform Tips | Helpful hints for coding for multiple platforms |
Developer's Notes | Changes, Bugs and TODO List |
Dialogs | Using dialogs with wxEuphoria |
Drag and Drop | Working with files and other controls |
Events | Using events with wxEuphoria |
Files | Working with files and directories |
Getting Started | How do I use wxEuphoria? |
Graphics | Drawing, Text, Fonts |
Known Bugs | Stuff that needs fixing |
Menus | Using menus |
Miscellaneous Routines | Random stuff |
Networking | Doing things across networks |
Printing | Using a printer |
Resource Management | These routines are supplied as a means to collect multiple memory handlers, for release with a single statment. |
Sizers | Automatically manage resizing controls |
Timers | Setting and using timers |
TODO | What's next? |
Utilities | Helper routines |
wxEuphoria Developers | Information about extending or debugging the library |
v0.9.0 - Made class_table local in cplusplus.e to avoid conflicts with embedded ooeu - Documented set_cursor() - Added convert_to_image() - Requires library build #9v0.8.1 - Fixed bug in wxWizardPage -- vtable offset was changed - Added wxSplashScreen - Added get_days_in_month() and get_cal_days_in_month() - Fixed bug that could prevent wxEVT_CLOSE_WINDOW events from being handled correctly - Fixed bug that would prevent translation to a dll, when wxEuphoria looks at the command_line()
v0.8.0 - Fixed bug in wxTreeCtrl creation for detecting optional parameters - New classes: wxFileName, wxHtmlWindow - New wrappers: select_tree_item(), delete_tree_children(), is_visible() - Both versions use build #8. - Added call_member_str() and call_cdecl_str() too allow easy wrapping of functions that return a wxString by value. - Added init_image_handlers() and fixed constructor for wxGIFHandler for Win32 - set_column_label() didn't work properly under Windows. - Added set_bmpbutton() to change the displayed bitmap of a wxBitmapButton - wxeu.so now belongs in "/usr/lib" - Added new accessor functions for wxFont. - Added choice_count(), combobox_count() - Global sequence PATH contains the path of the startup directory, if possible
v0.7.2 - Documentation was wrong for set_editor_choices() - Fixed bug in ftp_rename() (Thanks to Mario Steele) - set_ip_host() was using the wrong wxWidgets call under Linux (Thanks to Mario Steele)
v0.7.1 - Fixed get_list_string() to work for wxListCtrl on Linux - Fixed constructor for wxURL on Linux - Linux uses library build #7.
v0.7.0 - Fixed set_brush() and set_back_brush() to work with wxMemoryDC under GTK - New classes: wxMDIParentFrame, wxMDIClientWindow, wxMDIChildFrame, wxFontEnumerator, wxCursor - Added set_choice() for wxChoice - Can now insert a wxMenu at specified location in the wxMenuBar upon creation - Added get_label(), which should work for all controls. - Fixed get_list_string() under GTK. - Uses library build #6. - Several bugfixes for wxTreeCtrl under GTK. - Added Resource Management routines (thanks to Mario Steele)
v0.6.0 - Docs now in multiple file format - CK Lester helped updating demos - Added set_bitmap_size() and made get_bitmap_size() work under Linux - set_checked() didn't work for wxToggleButton (CK Lester) - Added get_text_number() - New classes: wxMask, wxFlexGridSizer, wxStaticBoxSizer - Added set_mask() to use a wxMask with a wxBitmap - Added global constant wxTrue - Uses build 5 - Added several new wxSizer functions. - Added get_key_state() (from wxMSW 2.5.5, and implemented in Euphoria for wxGTK, since the wxGTK implementation only works for shift, ctrl, alt keys) - Fixed bug in Linux where wxWidgets frees image handlers and that memory is reused, cplusplus.e still thought the object was of the old class' type (thanks to Eumario) - Added font_ok() to check for a valid wxFont
v0.5.0 - New classes: wxTextAttr, wxStaticLine, wxStaticBox, wxCalendarCtrl - Fixed constructor for wxTextCtrl so that default parameters can be used for id, text, size and position. - wxEuphoria will display an error message and abort if open_dll( wxWin_name ) fails - Cleaned up warnings - Size of wxColour was wrong under Windows - Can now destroy() controls - Added version constant wxEuphoria_Version = {0,5,0} - Can set the column labels in a wxListCtrl: set_column_label() - Fixed bug in constructor for wxToggleButton - Uses library build 4. The file is now named wxeu.[dll|so] - Allows you to change the location or name of the wxEuphoria library by declaring a global function wxEu_Lib that returns the path to the wxEuphoria library. - set_text_back_color() works correctly in Linux - Change instance memory handling to cooperate with wxWidgets under Win32 so that memory is freed in the correct place - cleanup() added. This should be manually called before your app exits if you don't use wxMain() ( wxMain() calls cleanup() automatically before exit) - set_status_text() now checks to make sure that you don't set a status field that doesn't exist (thanks to CK Lester) - Global constant wxFalse is now 0 (was a pointer to the actual value) (thanks to CK Lester) - Added set_button_label()
v0.4.0 - New classes: wxDir, wxDirTraverser, wxWizard, wxWizardPage, wxSocketClient, wxSocketServer, wxURL, wxInputStream, wxIPV4Address, wxHTTP, wxFTP - Fixed destructor for wxArrayString
v0.3.0 - New classes: + Controls: wxTreeCtrl, wxSplitterWindow, wxSpinCtrl, wxSlider, wxListCtrl + Dialogs: wxDirDialog, wxFontDialog (see also font_selector), wxPrintDialog, wxProgressDialog, wxColourDialog (see also color_selector) + Printing: wxPreviewFrame, wxPrintout, wxPrintPreview + wxGrid: wxGridCellAttr, wxGridCellEditor + wxImageList - wxDialog has been moved from wxEuphoria.e to the new file wxDialog.e - Support for popup- and sub- menus (See Menus) - create(), call_member(), call_member_s(), call_cdecl(), call_cdecl_s() will now take an atom if only one parameter is passed + A wxString can be created without wrapping the string in an extra set of braces: str = create( wxString, "A String" ) - Uses Libarary build 3 - Checks for Library build >= Required build (used to be =) - platform.pl ported to Euphoria (platform.exw) - blit() parameters were incorrect (src and dst coords were swapped) - wx_execute() is now a function, and takes flags
v0.2.0 - New classes: + Sizers: wxBoxSizer, wxGridSizer, wxNotebookSizer + wxNotebook + wxGrid + wxToolBar + wxBitmapButton + Clipboard, Drag'n'Drop: wxClipboard, wxDataObject, wxTextDataObject, wxFileDataObject, wxDropTarget, wxFileDropTarget - New functions: + file_selector() + get_sys_metric() + get_sys_color() - Uses Library build 2 + Both * Added string access routines ( wxChoice, wxComboBox, wxGrid, wxClipboard) * Moved implementation of some routines from grid.h to grid.cpp to allow them to be exported + Win32: * Added call to IDataObject::AddRef when adding data to the clipboard * GetColour added for use in get_sys_colour - Dumped fptr.e and added some code in src\common\utilscmn.cpp for calling functions. Random crashes have disapeared. Still seem to need string accessors, though.
v0.1.0 - Using wxWidgets 2.4.2 + Win32: Borland C++ v5.5 (free version) + Linux gcc v3.2 + Library build 1 for both platforms (WX_DLL_BUILD) - Overhauled and reengineered library development + All files are *.e with platform specific code wrapped with 'preprocessor' directives (see platform.pl) + Library exports managed through EuSQL databases + generate.exw, wxeu.exw, EDB forms included to assist db and file maintenance
7/3/2003 * Got rid of cross-platform + platform-specific includes. Combined into platform-specific format.
Each class should have at least two things defined, a constant identifying the class and a sizeof_ constant. In order to refer to class wxWindow, simply use its name, "wxWindow". To refer to the size in bytes of an object of type wxWindow, use sizeof_wxWindow.
There are a number of demos included with wxEuphoria. They should be located in the demos subdirectory of your wxEuphoria directory if you preserved the directory structure when you decompressed wxEuphoria. First, make sure that you properly installed wxEuphoria. This means that the dynamic or shared libary is located in the correct directory. Under Windows, it can be in either your euphoria/bin directory, or your %WINDIR%\system32 directory. Under Linux, it should be in your usr/lib/ directory. Also, ensure that the wxEuphoria source files are either in a directory that's included in your EUINC variable (see the Euphoria docs for information about changing this), or that any program that uses wxEuphoria is in the same directory as the wxEuphoria library. Then, to run the window_basic.exw demo from the command line, you can type:
Windows: > exw window_basic.exwIn Windows, if you have the ".exw" extension associated with the Euphoria interpreter, you may simply type:Linux: $ exu window_basic.exw
> window_basic.exwIn Linux, there is a similar feature available to you, but you will need to change the first line of the file, which is sometimes called the shebang. This line tells your shell that it should use the interpreter listed on the first line to execute the file. You may also need to change the permissions on the file using chmod to allow the file to execute. To see what the shebang should be, you could type:
> which exuThis will give the path to your copy of the Euphoria interpreter. It will probably look similar to the current shebang in the demos. The path must be preceded by "#!" to tell the shell that the line is actually the interpreter to be used:
Current shebang (based on my system): #!/home/matt/euphoria/bin/exuYou also need to make sure that the file does not have DOS style new lines (carriage returns + new line). Once you have done this, you can run the demo from the command line:Yours might look like: #!/home/myuserid/euphoria/bin/exu
> ./window_basic.exwNote that this assumes your current directory is the same directory where the file is located. Linux doesn't include the current directory in your executable PATH environment variable (like Windows does), so you need to tell Linux to look there using "./".
The windows DLL was built using the free Borland C++ compiler v5.5. The runtime library is statically linked, so it should run fine on any system (although for Win95, you may need to update your COMCTL32.DLL to version 5). It only increased the file size by about 200K (before UPX) to link statically, whereas the runtime as a DLL is about 1MB. I altered several source and header files (see patch.zip), and used a slightly different makefile (static link, compile & link resources). UPX'd, the DLL shrinks to under 2MB (from ~ 4.3MB), which I think is pretty good, and it zips to just over 1MB.
File Formats:
Similar classes are grouped together in their own include files. Each group of classes has
one file, which can be converted from one platform to the other using tools from
the developer's download. The format of each file is as follows:
--start of file.eI use some automated tools to insert the import strings into the files, and this is the format that the tools recognize, making it easy to add or remove classes from any given set of files. The "--begin autogenerated" and "-- end autogenerated" lines should never be touched. Anything between them will be deleted the next time the file is updated.global constant
-- begin autogenerated
-- begin class wxClass
-- (lots of wxClass_MemberName = "@@&&ZAXFGF" garbage)
-- end class wxClass
-- end autogenerated
-- end of file.eu or file.ew
I've tried to use namespaces to refer to all wxEuphoria symbols between files to prevent possible namespace clashes if wxEuphoria is combined with another library. All files include at least wxEuphoria.e (as wxeu) and cplusplus.e (as cpp).
Functions that return an object by value may not work. I believe that Borland and gcc both return the value on the stack, which I can't easily handle. To get around this, I've created some new functions that work with references or pointers. The Developers download has a patch for Windows and Linux to update your source tree if you want to build the library yourself.
If you look at the *.e files, you'll see at the top where there are constants defined that hold the size of the various objects (sizeof_wx*). Some objects in wxWidgets contain that information in their wxClassInfo member. However, those objects which are not derived from wxObject don't have this. The sizes for these objects are based on my combing through source and header files, and when that didn't work, trial and error. That's why you'll see things like:
sizeof_wxGridBoolCellEditor = 36,If you're able to figure out the exact size of some of these things, please let me know. Also, if you ever experience a strange crash that is somewhat repeatable, one of these objects may be the culprit. Try commenting out the lines that lead to the creation of these objects in order to track down the offender. Then you can increase the size of the object until you don't get the crash again. Please let me know if you find something!
You can change the name or location of the wxeu library by creating a global function named "wxEu_Lib" before wxEuphoria.e is created. The function should take no parameters, and should return a sequence that contains the text that will be passed to open_dll().
Event procedures take 4 arguments:
procedure onPaint( atom this, atom event_type, atom id, atom event ) atom dcdc = create( wxPaintDC, {this} ) begin_drawing(dc) -- ... do drawing here... end_drawing(dc) delete_instance(dc) end procedure
Key Events
Key events under Linux should be set with an id of -1. Also, no events will be passed until
the window has been clicked by the user.
Full listing of events as defined in wxEuphoria.e:
wxEuphoria is designed to be very similar to other Euphoria GUI libraries (i.e., Win32Lib). Although I recommend downloading the wxWidgets documentation, a program written in wxEuphoria will take a different form than a C++ program written using wxWidgets. In wxEuphoria, you don't have to worry about creating a class derived from wxApp, or overloading an OnInit() function. All you need to do is to create your controls, define and connect your event handlers, and start the wxEuphoria event loop. Below is a basic outline of what a wxEuphoria program might look like:
[include statements][create the controls]
[event handlers and other code]
wxMain()
Here is the classic 'Hello World!' program written in wxEuphoria (see hello_world.exw):
include wxEuphoria.e include wxGraphics.econstant HelloFrame = create( wxFrame, {0, -1, "My First Message", -1, -1, 200, 100} ), HelloWin = create( wxPanel, {HelloFrame})
procedure onPaint_HelloWin( atom this, atom event, atom it, atom event_type ) wx_puts( this, "Hello, World!") end procedure set_event_handler( HelloWin, get_id(HelloWin), wxEVT_PAINT, routine_id( "onPaint_HelloWin" ))
wxMain( HelloFrame )
One thing to remember is that similar classes are grouped together in their own include files. If you want to use a particular class, you need to include the correct file. The documentation for each class should indicate the name of its file. In this case, we used wx_puts(), which is found in the documentation under Graphics (Drawing, Text, Fonts), for which the include file is wxGraphics.e.
Notice the syntax of the calls to create(). This is the standard function that should be called to create an object of almost any wxEuphoria class that is wrapped. The class documentation should indicate what the second parameter (always a sequence) should be. Many classes have optional parameters. You can omit these parameters if the default values are acceptable. Note that if the third and fourth parameters are optional, you can't specify the fourth and not the third--i.e., you can't skip parameters in the middle of the list.
Unfortunately, all functions and classes haven't been documented as consistently or as thourough as they should be. If something in particular doesn't make sense, please ask (best is the Euphoria forum), and I'll try to correct the situation. Contributions, in the form of code and/or documentation is also welcomed and encouraged (please see the developer's download for guidelines).
This section details functions and classes that are used to draw on windows. This includes drawing text (when a wxTextCtrl or wxStaticText don't do what you need).
Most operations in wxEuphoria are done using this pointers to objects (the value returned
by create(). Some things, such as events, however, require that control IDs be used. It is
recommended that you create your controls with the default ID of -1, and allow wxWidgets to
automatically generate a unique id for you. IDs are generated starting at -201 and decrease
from there. You can use get_id() or get_menuitem_id() to determine IDs when necessary.
There are some IDs, however, that have been set aside for specific uses, and will often be
used for menu items or command buttons. Here is a list:
Standard menu IDs
Key Event Types:
Win32 |
|
Linux |
|
Both |
Menu Events:
Sizers take care of resizing and repositioning controls within a window whenever the window is resized. Sizers may be nested within each other to create complex relationships between the controls in a window.
The most common sizer used will be the wxBoxSizer.
I plan to upgrade wxWidgets to v2.6.2 after it is released. See the wxWidgets Home Page for details on how this might change wxEuphoria (one big change will be using GTK2).
Controls |
| Database | Low priority now that
odbc.e is cross platform
|
Networking |
|
Printing | These don't work well yet:
|
Documentation | (Please contribute!)
|
General |
|
You probably won't need to do much with this class. wxEuphoria creates a wxApp object automatically.
You should pass a sequence of strings:
ex: constant myArrayString = create( wxArrayString, { "One", "Two" })wxArrayStrings are mainly used within the library itself, and you should rarely need to directly create one, unless you are dealing with a class that hasn't been fully wrapped.
Creation parameters:
ex:procedure on_click( atom this, atom event_type, atom id, atom event ) -- do stuff here end procedure
set_event_handler( my_button, get_id(my_button), wxEVT_COMMAND_BUTTON_CLICKED, routine_id("on_click"))
Creation parameters:
Creation parameters: None
Creation parameters: None
Creation parameters
There are two methods:
The only creation parameter should be the data format:
Creation parameters: None
Dates will be sequences with values:
Params:
Creation parameters:
All of the tools and scripts mentioned below can be found in the developer's download from the download section of the wxEuphoria home page.
If you look at the files, you'll see that I'm trying to maintain only one set of files, with platform specific code bracketed and commented out as appropriate:
...platform independent code goes here...I have a Perl script (yeah, yeah, I'll probably rewrite it into Euphoria some day) called platform.pl, which comments and uncomments based on the target platform.--#WIN32 ...win32 specific stuff goes here... --#ENDWIN32
...platform independent code goes here...
--#LINUX ...linux specific stuff goes here... --#ENDLINUX
...platform independent code goes here...
Of course, you'll also have to regenerate the imports when switching platforms. This is done using generate.exw (which will run under Linux). It looks at the appropriate database for the platform you're interested in, and allows a choice of files to generate. If the file doesn't exist, it will create the file, but you won't have anything other than a file of imports (and a couple of standard include statements).
If you do want to contribute something, please send the source to me, with your additions or modifications clearly marked with your initials:
-- begin mwl 1/23/04...will be perfect. The same goes for modifications to wxWidgets source (which might be required in some cases). Also, please document your wrappers using the same format as the rest of the library, so that it can be easily included in the wxEuphoria documentation, which is automatically generated from the source files.-- new code....
-- end mwl 1/23/04
Creation parameters:
Creation parameters:
Creation parameters:
Creation parameters:
wxFontEnumerator enumerates either all available fonts on the system or only the ones with given attributes - either only fixed-width (suited for use in programs such as terminal emulators and the like) or the fonts available in the given encoding.
The routines for wxFontEnumerator create and destroy an enumeration object automatically, so there is no need to create your own.
ex: constant myFrame = create( wxFrame, {0, -- has no parent -1, -- wxWidgets will create an id "myFrame", -- will be dispayed as the caption -1, -- start at default x position -1, -- start at default y position 300, -- 300 wide 200}) -- 200 tall -- no style supplied means will be default styleIf there is only one child of a frame, that child will be automatically resized (by wxWidgets) to the client rect of the frame.
Creation parameters:
Creation parameters (two options):
You shouldn't create an object of this class directly. Instead, use the set_col_editor or set_cell_editor procedures.
See also: get_cell_editor, get_cell_editor_control
Creation parameters:
This class can be used to display HTML documents. It does not always handle badly formed html very well. Make sure that any lists are surrounded by <ul> </ul> or <ol> </ol> tags.
Creation Parameters:
Creation parameters: none
There may be multiple MDI parent frames in a single application, but this probably only makes sense within programming development environments.
Child frames may be of class wxMDIChildFrame (contained within the parent frame) or wxFrame (shown as a top-level frame).
An MDI parent frame always has a wxMDIClientWindow associated with it, which is the parent for MDI client frames. This client window may be resized to accommodate non-MDI windows, as seen in Microsoft Visual C++ (TM) and Microsoft Publisher (TM), where a documentation window is placed to one side of the workspace.
MDI remains popular despite dire warnings from Microsoft itself that MDI is an obsolete user interface style.
The implementation is native in Windows, and simulated under Motif. Under Motif, the child window frames will often have a different appearance from other frames because the window decorations are simulated.
Creation parameters:
wxMemoryDCs are used to draw to wxBitmap 's in memory. When creating, you may specify zero or one parameters. The parameter must be a pointer to a wxBitmap. After creation, the specified bitmap will be selected into the wxMemoryDC.
You must either delete the wxMemoryDC or call select_object( wxNullBitmap ) before selecting the bitmap into another wxMemoryDC.
Creation parameters:
Parameters for creating a new menuitem:
To set up event handlers for menus, use the wxEVT_COMMAND_MENU_SELECTED event type. Also, you should use the main frame, or some other control that is derived from wxWindow or wxEvtHandler, since the menu classes do not have their own event handlers. Under Linux, it is also required that you pass both the object which will act as the wxEvtHandler, and the parent menu of the wxMenuItem (Windows will work without this, but it's recommended that you always pass both the wxEvtHandler and the wxMenu for cross platform compatibility).
ex:procedure on_open_menu( atom this, atom event ) -- do stuff end procedure
-- if you used a specific wxID_ constant when you created the wxMenuItem, you could -- use that instead of get_menuitem_id: wxID_OPEN, wxID_NEW, etc
set_event_handler( {main, the_open_menu_parent}, get_menuitem_id( the_open_menu ), wxEVT_COMMAND_MENU_SELECTED, routine_id("on_open_menu"))
To use the class, create a wxNotebook object and call add_page, passing a window to be used as the page.
Creation parameters:
In order to query the size of notebook page, this page needs to have its own sizer, otherwise the wxNotebookSizer will ignore it.
Creation parameters:
Creation parameters:
ex: atom point1, point_array, void--creates a point with x=3, y=4 point = create( wxPoint, {3,4})
-- allocates space for an array of 2 wxPoints point_array = allocate(8 * 2)
-- create the points in place void = create( wxPoint, {3,4,point_array}) void = create( wxPoint, {5,6,point_array + sizeof_wxPoint})
Creation parameters:
Creation parameters:
Creation parameters:
Creation parameters:
Properly scaling the print preview is fairly simple. There are three pieces of data that are required:
You can get the scaling factor required by dividing the results of get_dc_size() by get_page_pixels(). Pass the result to set_user_scale(). Now, you can use coordinates in inches multiplied by the printer ppi (relative to the margins):procedure onPrintPage( atom this, atom page, atom dc ) sequence ppi, factorppi = get_ppi_printer( this ) if is_preview( this ) then factor = get_dc_size( dc ) / get_page_pixels( this ) set_user_scale( dc, factor[1], factor[2] ) else set_user_scale( dc, 1, 1) end if
-- print "Hello World" at 1", 1" wx_puts( 0 & ppi * {1,1} & dc, "Hello World" ) end procedure
Creation parameters:
Creation parameters:
Creation parameters:
Creation parameters
Creation parameters:
Creation parameters:
ex: server = create( wxSocketServer, address ) server_id = get_id( server ) set_socket_notify( server, {wxSOCKET_CONNECTION_FLAG, wxSOCKET_LOST_FLAG}) socket_event_handler( server, main_form, server_id )procedure main_socket_event( atom this, atom event_type, atom id, atom event ) sequence bytes atom socket
event_type = get_socket_event( event )
if id = server_id and event_type = wxSOCKET_CONNECTION then connection = socket_accept( server, 0 ) connection_id = get_id( connection ) set_socket_notify( connection, {wxSOCKET_INPUT_FLAG, wxSOCKET_LOST_FLAG}) socket_event_handler( connection_id, main_form, connection_id ) set_event_handler( main_form, connection_id, wxEVT_SOCKET, routine_id("main_socket_event"))
elsif event_type = wxSOCKET_LOST then delete_instance( socket_from_event( event ) )
elsif event_type = wxSOCKE_INPUT then bytes = socket_read( socket_from_event( event ) )
end if end procedure set_event_handler( main_form, server_id, wxEVT_SOCKET, routine_id("main_socket_event")
Creation parameters:
This control is used for creating a static label. The text in the label will be automatically refreshed (as opposed to using wx_puts).
Creation parameters:
ex: atom myString myString = create( wxString, {"Hello World"})I wrote my own destructor for wxString objects, which you may call directly to save some time: delete_string().
ex: myTextDataObject = create( wxTextDataObject, {"some text"})myTextDataObject = create( wxTextDataObject, {})
ex:constant main = create( wxFrame, {0,-1,"Timer"}), timer = create( wxTimer, {main})
procedure on_timer( atom this, atom event ) puts(1,"Timer\n") end procedure
-- NOTE: using the parent to identify the timer. set_event_handler( main, -1, wxEVT_TIMER, routine_id("on_timer"))
-- set the timer to fire every 1 second, repeatedly start_timer( timer, 1000, 0 )
wxMain( main )
Creation parameters:
When working with tree items, the id values returned are actually pointers to wxTreeItem pointers. They are not unique ids. The value returned is a new wxTreeItemId, which is a simple wxWidgets object. It is just a pointer to either a windows handle or a custom data pointer. It is the duty of the application to free the wxTreeItemId.
This is the class of the event that is passed to an event handler for a wxTree type event.
Creation parameters:
Sets a wxWindow up to accept drag and drop files. The routine specified by rid will be called when any files are dropped. The parameter should be a sequence, which will contain the list of file names that have been dropped on the window.
Activates a child frame.
See Also: maximize_child, restore_child
Add an image to an image list
Used to add an item into a wxListBox, wxComboBox or wxChoice.
See Also: clear_items, delete_item, destroy, enable, find_string, get_handle, get_label, get_list_string, get_rect, get_selection, get_string_selection, get_string_selection, is_visible, set_cursor, set_focus, set_selection, set_size, set_string, set_tip
Adds the wxWindow page to the notebook, with text on the its tab. select indicates whether the page should be selected, and image is the image index into an imagelist.
See Also: notebook_imagelist, set_page_text, show_page
resource_stack is the stack in which you want to store the memory handle on. If you do not create one through the new_resource() function, you can use the wxBaseResource as a general stack. If resource_stack is not valid, it does not track the memory handle at all. memory_handle can be either a single atom value of a Memory Pointer, or a sequence of Memory Pointers to be added to the list, for quick release. See also release_resources()
See Also: free_resource, new_resource, release_resources, wxBaseResource
See Also: add_tool, set_tool_bitmap_size, set_tool_margins, show_toolbar, toggle_tool
This adds sizer2 to sizer1.
See Also: add_window_to_sizer, fit_window, set_sizer, space_sizer
See Also: add_separator, set_tool_bitmap_size, set_tool_margins, show_toolbar, toggle_tool
See Also: add_tree_root, delete_tree_children, delete_tree_item, expand_tree_item, get_tree_parent, get_tree_root, get_tree_selected_text, get_tree_selection, get_tree_text, select_tree_item, set_tree_item_text, tree_imagelist, valid_tree_item
See Also: add_tree_item, delete_tree_children, delete_tree_item, expand_tree_item, get_tree_parent, get_tree_root, get_tree_selected_text, get_tree_selection, get_tree_text, select_tree_item, set_tree_item_text, tree_imagelist, valid_tree_item
This adds the specified window (i.e., control) to the sizer.
See Also: add_sizer_to_sizer, fit_window, set_sizer, space_sizer
Returns a local address. This function should be used instead of using 127.0.0.1 or localhost.
See Also: set_ip_host, set_ip_service
Appends cols columns to the grid.
See Also: append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
Appends rows rows to the grid.
See Also: append_cols, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
This appends text to the end of the wxTextCtrl buffer.
See Also: copy_text, cut_text, get_text_length, get_text_number, get_text_value, paste_text, select_all_text, set_default_text_style, set_text, set_text_selection, set_text_style, write_text
Arranges any iconized (minimized) MDI child windows
See Also: cascade_mdi, tile_mdi
See Also: arraystring_item, get_arraystring
See Also: arraystring_count, get_arraystring
Resizes each column to the minimum size required to display all the data in each column.
See Also: append_cols, append_rows, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
See Also: append_cols, append_rows, autosize_columns, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
Stops updates of the grid until end_batch() is called. This is useful for when you need to modify a large number of cells.
See Also: append_cols, append_rows, autosize_columns, batch_count, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
This must be called before you begin drawing to any window (i.e., not to a wxMemoryDC), and must be followed with a call to end_drawing() when finished.
See Also: blit, clear_dc, draw_bitmap, draw_icon, draw_line, draw_polygon, end_drawing, get_dc_size, get_dc_text_extent, get_first_region, get_next_region, get_regions, get_text_extent, get_user_scale, init_image_handlers, set_background_mode, set_back_brush, set_brush, set_default_font, set_font, set_pen, set_text_back_color, set_text_color, set_user_scale, wx_printf, wx_puts
Copy a bitmap from one DC to another.
See Also: begin_drawing, clear_dc, draw_bitmap, draw_icon, draw_line, draw_polygon, end_drawing, get_dc_size, get_dc_text_extent, get_first_region, get_next_region, get_regions, get_text_extent, get_user_scale, init_image_handlers, set_background_mode, set_back_brush, set_brush, set_default_font, set_font, set_pen, set_text_back_color, set_text_color, set_user_scale, wx_printf, wx_puts
Creates a callback with the appropriate calling convention and parameters by platform. This is no longer needed. You may use Euphoria's built-in call_back() function to create a cdecl callback:
my_callback = call_back( '+' & my_routine_id )
See Also: call_cdecl, call_cdecl_s, call_cdecl_str, call_member, call_member_s, call_member_str, create_func, define_class, deref_instance, derived_class, get_constructor, get_destructor, new_control, new_instance, register_instance, set_destructor
See Also: call_back_member, call_cdecl_s, call_cdecl_str, call_member, call_member_s, call_member_str, create_func, define_class, deref_instance, derived_class, get_constructor, get_destructor, new_control, new_instance, register_instance, set_destructor
See Also: call_back_member, call_cdecl, call_cdecl_str, call_member, call_member_s, call_member_str, create_func, define_class, deref_instance, derived_class, get_constructor, get_destructor, new_control, new_instance, register_instance, set_destructor
Calls a function using the appropriate calling convention by platform, and returns a wxString. If a function returns a wxString by value, you need to use this instead of call_member(), or else your application will crash. You are responsible for calling delete_instance() or delete_string() on the returned pointer.
See Also: call_back_member, call_cdecl, call_cdecl_s, call_member, call_member_s, call_member_str, create_func, define_class, deref_instance, derived_class, get_constructor, get_destructor, new_control, new_instance, register_instance, set_destructor
Calls a member function using the appropriate calling convention by platform, and returns an unsigned value.
See Also: call_back_member, call_cdecl, call_cdecl_s, call_cdecl_str, call_member_s, call_member_str, create_func, define_class, deref_instance, derived_class, get_constructor, get_destructor, new_control, new_instance, register_instance, set_destructor
Calls a member function using the appropriate calling convention by platform, and returns a signed value.
See Also: call_back_member, call_cdecl, call_cdecl_s, call_cdecl_str, call_member, call_member_str, create_func, define_class, deref_instance, derived_class, get_constructor, get_destructor, new_control, new_instance, register_instance, set_destructor
Calls a member function using the appropriate calling convention by platform, and returns a wxString. If a function returns a wxString by value, you need to use this instead of call_member(), or else your application will crash. You are responsible for calling delete_instance() or delete_string() on the returned pointer.
See Also: call_back_member, call_cdecl, call_cdecl_s, call_cdecl_str, call_member, call_member_s, create_func, define_class, deref_instance, derived_class, get_constructor, get_destructor, new_control, new_instance, register_instance, set_destructor
See Also: get_client_size, get_id, refresh_window, release_mouse, set_back_color, set_title
Arranges the MDI child windows in a cascade.
See Also: arrange_mdi_icons, tile_mdi
If check is 0, then the menuitem is unchecked. If check is 1, then the menuitem is checked.
See Also: enable_menuitem, get_menuevent_id, get_menuitem_id, insert_menuitem, is_menuitem_checked, remove_menuitem, set_menu_label
Used to count the number of items in a wxChoice.
See Also: clear_choice, find_choice_string, set_choice
This cleans up internal wxWidgets memory. wxMain() automatically calls this before it exits. If you do not use wxMain(), then you should manually call cleanup() before your app exits.
See Also: get_key_state, get_sys_color, get_sys_metric, message_box, wxEu_Lib, wxMain, wx_execute, wx_shell
See Also: choice_count, find_choice_string, set_choice
See Also: combobox_count, delete_combo_item, find_combo_string, get_combo_item_string, get_combo_string, set_combo_value
Clears the image currently in the dc.
See Also: begin_drawing, blit, draw_bitmap, draw_icon, draw_line, draw_polygon, end_drawing, get_dc_size, get_dc_text_extent, get_first_region, get_next_region, get_regions, get_text_extent, get_user_scale, init_image_handlers, set_background_mode, set_back_brush, set_brush, set_default_font, set_font, set_pen, set_text_back_color, set_text_color, set_user_scale, wx_printf, wx_puts
Deletes all data in the grid.
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
Clears all items from a wxListBox, wxListCtrl, wxChoice or wxComboBox.
See Also: add_item, delete_item, destroy, enable, find_string, get_handle, get_label, get_list_string, get_rect, get_selection, get_string_selection, get_string_selection, is_visible, set_cursor, set_focus, set_selection, set_size, set_string, set_tip
See Also: delete_list_item, find_list_string, list_count, list_ensure_visible, set_first_list_item, set_list_selection
See Also: get_clip_text, open_clip, set_clip_text
This is a wrapper for wxColourDialog. It returns a wxColour object, or zero, if the user clicked the cancel button.
See Also: file_selector, font_selector
Used to count the number of items in a wxChoice.
See Also: clear_combo, delete_combo_item, find_combo_string, get_combo_item_string, get_combo_string, set_combo_value
Takes a wxBitmap and returns a wxImage.
See Also: get_bitmap_size, set_bitmap_size, set_mask
See Also: remove_file
Copies the selected text to the clipboard.
See Also: append_text, cut_text, get_text_length, get_text_number, get_text_value, paste_text, select_all_text, set_default_text_style, set_text, set_text_selection, set_text_style, write_text
This function is used to create all classes included in wxEuphoria. You should check the documentation of the class to see what the required and optional parameters are.
See Also: delete_instance, is_kind, sizeof_class
This registers a function as the create function for a class, so that a user can call create() without having to know the specific function required to create an object of the class. Your create function should take one sequence as a parameter. The sequence will contain any required parameters. You should only use a create function if there is some manipulation required before creation, such as creating a wxString, wxSize or wxPoint, otherwise, create() can handle the creation of the object.
See Also: call_back_member, call_cdecl, call_cdecl_s, call_cdecl_str, call_member, call_member_s, call_member_str, define_class, deref_instance, derived_class, get_constructor, get_destructor, new_control, new_instance, register_instance, set_destructor
Copies the selected text to the clipboard and removes the selection.
See Also: append_text, copy_text, get_text_length, get_text_number, get_text_value, paste_text, select_all_text, set_default_text_style, set_text, set_text_selection, set_text_style, write_text
Used to wrap a C++ class.
See Also: call_back_member, call_cdecl, call_cdecl_s, call_cdecl_str, call_member, call_member_s, call_member_str, create_func, deref_instance, derived_class, get_constructor, get_destructor, new_control, new_instance, register_instance, set_destructor
Deletes n columns from the grid at position pos. If relabel is TRUE, the function OnChangeLabels is called to give the application the opportunity to relabel.
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
See Also: clear_combo, combobox_count, find_combo_string, get_combo_item_string, get_combo_string, set_combo_value
Destroys an object and frees the memory that held it. Can also be a sequence of objects to be destroyed.
See Also: create, is_kind, sizeof_class
Delete an item from a wxListBox, wxListCtrl, wxComboBox or wxChoice.
See Also: add_item, clear_items, destroy, enable, find_string, get_handle, get_label, get_list_string, get_rect, get_selection, get_string_selection, get_string_selection, is_visible, set_cursor, set_focus, set_selection, set_size, set_string, set_tip
See Also: clear_list, find_list_string, list_count, list_ensure_visible, set_first_list_item, set_list_selection
Deletes n rows from the grid at position pos. If relabel is TRUE, the function OnChangeLabels is called to give the application the opportunity to relabel.
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
This is a faster way to delete a string. It is the routine that is called by delete_instance(), but with a lot less overhead. If you need to delete many strings, it is better to use delete_string() rather than delete_instance(), however, you are unlikely to see much difference for one or two deletions.
See Also: deref_string
See Also: add_tree_item, add_tree_root, delete_tree_item, expand_tree_item, get_tree_parent, get_tree_root, get_tree_selected_text, get_tree_selection, get_tree_text, select_tree_item, set_tree_item_text, tree_imagelist, valid_tree_item
Deletes one or all items from a wxTreeCtrl.
If item is an empty sequence, then all items are deleted, otherwise, item can be either
an integer or a sequence of item ids to be deleted.
See Also: add_tree_item, add_tree_root, delete_tree_children, expand_tree_item, get_tree_parent, get_tree_root, get_tree_selected_text, get_tree_selection, get_tree_text, select_tree_item, set_tree_item_text, tree_imagelist, valid_tree_item
Dereferences an object so that it cannot be destroyed by wxEuphoria. Use this if wxWidgets takes ownership of an object, and will delete it automatically.
See Also: call_back_member, call_cdecl, call_cdecl_s, call_cdecl_str, call_member, call_member_s, call_member_str, create_func, define_class, derived_class, get_constructor, get_destructor, new_control, new_instance, register_instance, set_destructor
Decrements the reference count on a wxString. This will free the data held by the wxString, but will not free the wxString pointer itself. This is called automatically by delete_string().
See Also: delete_string
Used to derive a class from another. This is rarely (if ever) needed in wxEuphoria.
See Also: call_back_member, call_cdecl, call_cdecl_s, call_cdecl_str, call_member, call_member_s, call_member_str, create_func, define_class, deref_instance, get_constructor, get_destructor, new_control, new_instance, register_instance, set_destructor
You should use this instead of delete_instance() to destroy any object that handles events (generally, any control or window).
See Also: add_item, clear_items, delete_item, enable, find_string, get_handle, get_label, get_list_string, get_rect, get_selection, get_string_selection, get_string_selection, is_visible, set_cursor, set_focus, set_selection, set_size, set_string, set_tip
Suspends event handling calls to your event handlers until enable_events() is called.
See Also: enable_events, set_event_handler, skip
Draw a wxBitmap onto dc dest. Set trans to 1 if it has an associated mask, and should be drawn with transparency.
See Also: begin_drawing, blit, clear_dc, draw_icon, draw_line, draw_polygon, end_drawing, get_dc_size, get_dc_text_extent, get_first_region, get_next_region, get_regions, get_text_extent, get_user_scale, init_image_handlers, set_background_mode, set_back_brush, set_brush, set_default_font, set_font, set_pen, set_text_back_color, set_text_color, set_user_scale, wx_printf, wx_puts
Draws a wxIcon to the DC dc.
See Also: begin_drawing, blit, clear_dc, draw_bitmap, draw_line, draw_polygon, end_drawing, get_dc_size, get_dc_text_extent, get_first_region, get_next_region, get_regions, get_text_extent, get_user_scale, init_image_handlers, set_background_mode, set_back_brush, set_brush, set_default_font, set_font, set_pen, set_text_back_color, set_text_color, set_user_scale, wx_printf, wx_puts
Draws a line using the current wxPen. points should be a 4-element sequence:
draw_line( dc, {x1, y1, x2, y2})
See Also: begin_drawing, blit, clear_dc, draw_bitmap, draw_icon, draw_polygon, end_drawing, get_dc_size, get_dc_text_extent, get_first_region, get_next_region, get_regions, get_text_extent, get_user_scale, init_image_handlers, set_background_mode, set_back_brush, set_brush, set_default_font, set_font, set_pen, set_text_back_color, set_text_color, set_user_scale, wx_printf, wx_puts
Draws a polygon in the specified dc. points is a sequence containing all of the points to be drawn. It should be of the form {x1,y1,x2,y2,...,xn,yn}. x and y are offset coordinates. The last argument specifies the fill rule:
Note that wxWidgets automatically closes the first and last points.
See Also: begin_drawing, blit, clear_dc, draw_bitmap, draw_icon, draw_line, end_drawing, get_dc_size, get_dc_text_extent, get_first_region, get_next_region, get_regions, get_text_extent, get_user_scale, init_image_handlers, set_background_mode, set_back_brush, set_brush, set_default_font, set_font, set_pen, set_text_back_color, set_text_color, set_user_scale, wx_printf, wx_puts
See Also: add_item, clear_items, delete_item, destroy, find_string, get_handle, get_label, get_list_string, get_rect, get_selection, get_string_selection, get_string_selection, is_visible, set_cursor, set_focus, set_selection, set_size, set_string, set_tip
Resumes calls to event handlers after disable_events() has been called.
See Also: disable_events, set_event_handler, skip
1 enables a menuitem, 0 disables.
See Also: check_menuitem, get_menuevent_id, get_menuitem_id, insert_menuitem, is_menuitem_checked, remove_menuitem, set_menu_label
Resumes updating of the grid after a call to begin_batch(). This is useful for when you need to modify a large number of cells.
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
See Also: begin_drawing, blit, clear_dc, draw_bitmap, draw_icon, draw_line, draw_polygon, get_dc_size, get_dc_text_extent, get_first_region, get_next_region, get_regions, get_text_extent, get_user_scale, init_image_handlers, set_background_mode, set_back_brush, set_brush, set_default_font, set_font, set_pen, set_text_back_color, set_text_color, set_user_scale, wx_printf, wx_puts
Closes a modal dialog. ret is the value returned by show_modal().
See Also: show_modal
This is the procedure that should be used to exit the program. If you create an on close event for your main frame, this must be called from the event handler, or your application will not close. wxEuphoria automatically does this for you if you do not define an on close event.
See Also: add_tree_item, add_tree_root, delete_tree_children, delete_tree_item, get_tree_parent, get_tree_root, get_tree_selected_text, get_tree_selection, get_tree_text, select_tree_item, set_tree_item_text, tree_imagelist, valid_tree_item
Pops up a file selector box. In Windows, this is the common file selector dialog. In X, this is a file selector box with the same functionality. This function is used for both open and save dialogs.
Flags may be a combination of wxOPEN, wxSAVE, wxOVERWRITE_PROMPT, wxHIDE_READONLY, wxFILE_MUST_EXIST, wxMULTIPLE or 0.
Both the Unix and Windows versions implement a wildcard filter. Typing a filename containing wildcards (*, ?) in the filename text item, and clicking on Ok, will result in only those files matching the pattern being displayed.
The wildcard may be a specification for multiple types of file with a description for each, such as:
"BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
See Also: color_selector, font_selector
Returns the item number of the item in the list with the specified string.
See Also: choice_count, clear_choice, set_choice
See Also: clear_combo, combobox_count, delete_combo_item, get_combo_item_string, get_combo_string, set_combo_value
Returns the item number of the item in the list with the specified string.
See Also: clear_list, delete_list_item, list_count, list_ensure_visible, set_first_list_item, set_list_selection
Returns the item number of the item in the list with the specified string.
See Also: add_item, clear_items, delete_item, destroy, enable, get_handle, get_label, get_list_string, get_rect, get_selection, get_string_selection, get_string_selection, is_visible, set_cursor, set_focus, set_selection, set_size, set_string, set_tip
Tell the sizer to resize the window to match the sizer's minimal size. Returns the new size.
See Also: add_sizer_to_sizer, add_window_to_sizer, set_sizer, space_sizer
This is a wrapper for wxFontDialog. parent is the parent for the dialog (it may be null), and initial is the wxFont object that will be initially selected when the dialog is opened. If a font is selected (the user clicks OK), the new wxFont object is returned, otherwise the return value is zero.
See Also: color_selector, file_selector
Causes immediate repainting of the grid. Use this instead of the usual refresh_window.
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
This will remove an entire set from the Resource Management stack. If any handles are in in it, when you call this procedure, it will automatically free them, before removing it from usage. Once a resource has been used in this routine, it becomes invalid. If resource_stack is '0', all resource stacks are removed, freeing up any memory handles in them.
See Also: add_resource, new_resource, release_resources, wxBaseResource
See Also: ftp_close, ftp_input_stream, ftp_mkdir, ftp_mode, ftp_output_stream, ftp_pwd, ftp_pwd, ftp_rename, ftp_rm, ftp_rmdir, ftp_user
See Also: ftp_chdir, ftp_input_stream, ftp_mkdir, ftp_mode, ftp_output_stream, ftp_pwd, ftp_pwd, ftp_rename, ftp_rm, ftp_rmdir, ftp_user
See Also: ftp_chdir, ftp_close, ftp_mkdir, ftp_mode, ftp_output_stream, ftp_pwd, ftp_pwd, ftp_rename, ftp_rm, ftp_rmdir, ftp_user
See Also: ftp_chdir, ftp_close, ftp_input_stream, ftp_mode, ftp_output_stream, ftp_pwd, ftp_pwd, ftp_rename, ftp_rm, ftp_rmdir, ftp_user
Sets the transfer mode. mode can be either ASCII or BINARY.
See Also: ftp_chdir, ftp_close, ftp_input_stream, ftp_mkdir, ftp_output_stream, ftp_pwd, ftp_pwd, ftp_rename, ftp_rm, ftp_rmdir, ftp_user
See Also: ftp_chdir, ftp_close, ftp_input_stream, ftp_mkdir, ftp_mode, ftp_pwd, ftp_pwd, ftp_rename, ftp_rm, ftp_rmdir, ftp_user
See Also: ftp_chdir, ftp_close, ftp_input_stream, ftp_mkdir, ftp_mode, ftp_output_stream, ftp_pwd, ftp_rename, ftp_rm, ftp_rmdir, ftp_user
See Also: ftp_chdir, ftp_close, ftp_input_stream, ftp_mkdir, ftp_mode, ftp_output_stream, ftp_pwd, ftp_rename, ftp_rm, ftp_rmdir, ftp_user
See Also: ftp_chdir, ftp_close, ftp_input_stream, ftp_mkdir, ftp_mode, ftp_output_stream, ftp_pwd, ftp_pwd, ftp_rm, ftp_rmdir, ftp_user
Delete the file specified by path. Returns TRUE if successful.
See Also: ftp_chdir, ftp_close, ftp_input_stream, ftp_mkdir, ftp_mode, ftp_output_stream, ftp_pwd, ftp_pwd, ftp_rename, ftp_rmdir, ftp_user
See Also: ftp_chdir, ftp_close, ftp_input_stream, ftp_mkdir, ftp_mode, ftp_output_stream, ftp_pwd, ftp_pwd, ftp_rename, ftp_rm, ftp_user
See Also: ftp_chdir, ftp_close, ftp_input_stream, ftp_mkdir, ftp_mode, ftp_output_stream, ftp_pwd, ftp_pwd, ftp_rename, ftp_rm, ftp_rmdir
Walks the specified directory, returning all the files and/or directories as specified by flags.
See Also: has_files, has_subdirs, is_opened, open_dir
Returns all the strings in the array.
See Also: arraystring_count, arraystring_item
Returns sequence containing the width and height of the bitmap, respectively.
See Also: convert_to_image, set_bitmap_size, set_mask
Returns the number of days in the currently selected month.
See Also: get_date, get_date_time, set_date, set_date_back_color, set_date_border, set_date_border_color, set_date_font, set_date_holiday, set_date_text_color
Returns the wxGridCellEditor for the cell
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
Returns the Control belonging to the wxGridCellEditor
If editor is a sequence, then it specifies the { row, column } of the wxGridCellEditor to be fetched. Otherwise, it is a wxGridCellEditor (see get_cell_editor).
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
If the cell contains numeric data, you will need to use value(), since all values returned by get_cell_value() are strings (this is how wxGrid stores everything).
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
Returns 1 if checked, 0 otherwise. This function works for wxCheckBox and wxToggleButton.
See Also: set_checked
See Also: set_initial_font
See Also: capture_mouse, get_id, refresh_window, release_mouse, set_back_color, set_title
See Also: close_clip, open_clip, set_clip_text
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
Returns the string for item.
See Also: clear_combo, combobox_count, delete_combo_item, find_combo_string, get_combo_string, set_combo_value
Returns the string in the edit box of the combo box.
See Also: clear_combo, combobox_count, delete_combo_item, find_combo_string, get_combo_item_string, set_combo_value
Returns the constructor for the class.
See Also: call_back_member, call_cdecl, call_cdecl_s, call_cdecl_str, call_member, call_member_s, call_member_str, create_func, define_class, deref_instance, derived_class, get_destructor, new_control, new_instance, register_instance, set_destructor
Returns the selected date. See read_datetime() for format information.
See Also: get_cal_days_in_month, get_date_time, set_date, set_date_back_color, set_date_border, set_date_border_color, set_date_font, set_date_holiday, set_date_text_color
Returns a wxDateTime object for the selected date on the calendar.
See Also: get_cal_days_in_month, get_date, set_date, set_date_back_color, set_date_border, set_date_border_color, set_date_font, set_date_holiday, set_date_text_color
Returns the number of days in the specified month and year.
See Also: read_datetime, set_datetime
Returns the width and height of the dc in pixels.
See Also: begin_drawing, blit, clear_dc, draw_bitmap, draw_icon, draw_line, draw_polygon, end_drawing, get_dc_text_extent, get_first_region, get_next_region, get_regions, get_text_extent, get_user_scale, init_image_handlers, set_background_mode, set_back_brush, set_brush, set_default_font, set_font, set_pen, set_text_back_color, set_text_color, set_user_scale, wx_printf, wx_puts
See Also: begin_drawing, blit, clear_dc, draw_bitmap, draw_icon, draw_line, draw_polygon, end_drawing, get_dc_size, get_first_region, get_next_region, get_regions, get_text_extent, get_user_scale, init_image_handlers, set_background_mode, set_back_brush, set_brush, set_default_font, set_font, set_pen, set_text_back_color, set_text_color, set_user_scale, wx_printf, wx_puts
If the return value is negative, then its absolute value is the routine id of a user supplied destructor routine.
See Also: call_back_member, call_cdecl, call_cdecl_s, call_cdecl_str, call_member, call_member_s, call_member_str, create_func, define_class, deref_instance, derived_class, get_constructor, new_control, new_instance, register_instance, set_destructor
Returns a sequence of available encodings for the specified font face. Pass an empty sequence for fontname to get all available encodings.
See Also: get_facenames
Returns a sequence of font face names available. If params is empty, then all available fonts are returned. Otherwise, params should be a one or two element sequence:
See Also: get_encodings
See Also: begin_drawing, blit, clear_dc, draw_bitmap, draw_icon, draw_line, draw_polygon, end_drawing, get_dc_size, get_dc_text_extent, get_next_region, get_regions, get_text_extent, get_user_scale, init_image_handlers, set_background_mode, set_back_brush, set_brush, set_default_font, set_font, set_pen, set_text_back_color, set_text_color, set_user_scale, wx_printf, wx_puts
Returns the encoding of the specified font.
See Also: get_font_family, get_font_members, get_font_name, get_font_pointsize, get_font_style, get_font_underlined, get_font_weight, set_point_size
Returns the font family for the specified font.
See Also: get_font_encoding, get_font_members, get_font_name, get_font_pointsize, get_font_style, get_font_underlined, get_font_weight, set_point_size
Returns the font data in a sequence that can be used to create a new font:
{ pointSize, family, style, weight, underlined, faceName, encoding }
See Also: get_font_encoding, get_font_family, get_font_name, get_font_pointsize, get_font_style, get_font_underlined, get_font_weight, set_point_size
Returns the face name of the specified font.
See Also: get_font_encoding, get_font_family, get_font_members, get_font_pointsize, get_font_style, get_font_underlined, get_font_weight, set_point_size
Returns the point size for the specified font.
See Also: get_font_encoding, get_font_family, get_font_members, get_font_name, get_font_style, get_font_underlined, get_font_weight, set_point_size
Returns the style of the specified font.
See Also: get_font_encoding, get_font_family, get_font_members, get_font_name, get_font_pointsize, get_font_underlined, get_font_weight, set_point_size
Returns 1 if the specified font is underlined, 0 otherwise.
See Also: get_font_encoding, get_font_family, get_font_members, get_font_name, get_font_pointsize, get_font_style, get_font_weight, set_point_size
Returns the weight of the specified font.
See Also: get_font_encoding, get_font_family, get_font_members, get_font_name, get_font_pointsize, get_font_style, get_font_underlined, set_point_size
Returns the platform specific handle for objects derived from class wxWindow.
See Also: add_item, clear_items, delete_item, destroy, enable, find_string, get_label, get_list_string, get_rect, get_selection, get_string_selection, get_string_selection, is_visible, set_cursor, set_focus, set_selection, set_size, set_string, set_tip
Returns anchor within currently opened page (see get_html_page()). If no page is opened or if the displayed page wasn't produced by call to LoadPage, empty string is returned.
See Also: get_html_page, get_html_page_title, get_html_page_title, html_append, html_back, html_forward, load_html_file, load_html_page, set_html_page, set_link_event, set_open_url_event, set_related_frame
Returns full location of the opened page. If no page is opened or if the displayed page wasn't produced by call to LoadPage, empty string is returned.
See Also: get_html_anchor, get_html_page_title, get_html_page_title, html_append, html_back, html_forward, load_html_file, load_html_page, set_html_page, set_link_event, set_open_url_event, set_related_frame
Clears the history cache.
See Also: get_html_anchor, get_html_page, get_html_page_title, html_append, html_back, html_forward, load_html_file, load_html_page, set_html_page, set_link_event, set_open_url_event, set_related_frame
Returns the title of the currently opened page.
See Also: get_html_anchor, get_html_page, get_html_page_title, html_append, html_back, html_forward, load_html_file, load_html_page, set_html_page, set_link_event, set_open_url_event, set_related_frame
Returns an input stream that can be used with stream_read() to fetch the file from the url.
Returns the id for objects that are derived from class wxWindow. This includes frames, windows and most controls, but does not include menu items. You should use get_menuitem_id() for that.
See Also: capture_mouse, get_client_size, refresh_window, release_mouse, set_back_color, set_title
Returns the virtual key code. ASCII events return normal ASCII values, while non-ASCII events return values such as WXK_LEFT for the left cursor key.
See Also: key_event_altdown, key_event_controldown, key_event_shiftdown
Returns 1 if specified key (see Key Codes for a list of codes to use) is currently pressed down.
See Also: cleanup, get_sys_color, get_sys_metric, message_box, wxEu_Lib, wxMain, wx_execute, wx_shell
Returns the default label associated with the control. This would be the caption for a wxFrame or the label on a wxButton or the text of a wxStaticText.
See Also: add_item, clear_items, delete_item, destroy, enable, find_string, get_handle, get_list_string, get_rect, get_selection, get_string_selection, get_string_selection, is_visible, set_cursor, set_focus, set_selection, set_size, set_string, set_tip
This function works for both wxListCtrl and wxListBox.
See Also: add_item, clear_items, delete_item, destroy, enable, find_string, get_handle, get_label, get_rect, get_selection, get_string_selection, get_string_selection, is_visible, set_cursor, set_focus, set_selection, set_size, set_string, set_tip
Returns the id of the wxMenuItem that generated the event. This should only be called from within a wxEVT_COMMAND_MENU_SELECTED event procedure.
See Also: check_menuitem, enable_menuitem, get_menuitem_id, insert_menuitem, is_menuitem_checked, remove_menuitem, set_menu_label
Returns the id for a wxMenuItem. Since wxMenuItem is not derived from wxWindow, you should never use get_id() with a wxMenuItem.
See Also: check_menuitem, enable_menuitem, get_menuevent_id, insert_menuitem, is_menuitem_checked, remove_menuitem, set_menu_label
Returns a sequence with the x, y and width and height of the next region, or an empty sequence if the last region has already been accessed.
See Also: begin_drawing, blit, clear_dc, draw_bitmap, draw_icon, draw_line, draw_polygon, end_drawing, get_dc_size, get_dc_text_extent, get_first_region, get_regions, get_text_extent, get_user_scale, init_image_handlers, set_background_mode, set_back_brush, set_brush, set_default_font, set_font, set_pen, set_text_back_color, set_text_color, set_user_scale, wx_printf, wx_puts
Returns the size of the printer page in millimeters.
See Also: get_page_pixels, get_ppi_printer, get_ppi_screen, get_printout_dc, is_preview, set_page_info
Returns the size of the printer page in pixels. These may not be the same as the values returned from wxDC::GetSize if the printout is being used for previewing, since in this case, a memory device context is used, using a bitmap size reflecting the current preview zoom. The application must take this discrepancy into account if previewing is to be supported.
See Also: get_page_mm, get_ppi_printer, get_ppi_screen, get_printout_dc, is_preview, set_page_info
Returns the number of pixels per logical inch of the printer device context. Dividing the printer PPI by the screen PPI can give a suitable scaling factor for drawing text onto the printer. Remember to multiply this by a scaling factor to take the preview DC size into account.
See Also: get_page_mm, get_page_pixels, get_ppi_screen, get_printout_dc, is_preview, set_page_info
Returns the number of pixels per logical inch of the screen device context. Dividing the printer PPI by the screen PPI can give a suitable scaling factor for drawing text onto the printer. Remember to multiply this by a scaling factor to take the preview DC size into account.
See Also: get_page_mm, get_page_pixels, get_ppi_printer, get_printout_dc, is_preview, set_page_info
See Also: get_zoom, set_preview_frame
See Also: get_page_mm, get_page_pixels, get_ppi_printer, get_ppi_screen, is_preview, set_page_info
Return the 0-based index of the selected radio item in the wxRadioBox.
See Also: set_radiobox_selection
Returns the size and position of the control.
See Also: add_item, clear_items, delete_item, destroy, enable, find_string, get_handle, get_label, get_list_string, get_selection, get_string_selection, get_string_selection, is_visible, set_cursor, set_focus, set_selection, set_size, set_string, set_tip
Returns a wxRegionIterator, which can be used in conjunction with get_next_region() to get all of the regions to be updated in an on paint event. This should only be called from within an on paint event.
See Also: begin_drawing, blit, clear_dc, draw_bitmap, draw_icon, draw_line, draw_polygon, end_drawing, get_dc_size, get_dc_text_extent, get_first_region, get_next_region, get_text_extent, get_user_scale, init_image_handlers, set_background_mode, set_back_brush, set_brush, set_default_font, set_font, set_pen, set_text_back_color, set_text_color, set_user_scale, wx_printf, wx_puts
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
See Also: set_scrollbar, set_scroll_position
Used to get the index of the selected item of a wxListBox, wxListCtrl, wxComboBox or wxChoice. For the case of a wxListBox, the return is always a sequence, or an empty sequence, if nothing is selected. The other types of controls return -1 is no item is selected.
See Also: add_item, clear_items, delete_item, destroy, enable, find_string, get_handle, get_label, get_list_string, get_rect, get_string_selection, get_string_selection, is_visible, set_cursor, set_focus, set_selection, set_size, set_string, set_tip
Returns the minimal size of the sizer. This is either the combined minimal size of all the children and their borders or the minimal size set by SetMinSize, epending on which is bigger
See Also: get_sizer_position, get_sizer_size, sizer_calc_min
Returns the current position of the sizer.
See Also: get_sizer_minsize, get_sizer_size, sizer_calc_min
Returns the current size of the sizer.
See Also: get_sizer_minsize, get_sizer_position, sizer_calc_min
See Also: set_slide_value
See Also: is_connected, set_flags, set_socket_notify, socket_event_handler, socket_from_event, socket_read, socket_write, stream_write
Returns the current Value of a wxSpinCtrl
See Also: set_spin_value
Returns the position of the sash in the specified wxSplitterWindow in pixels.
See Also: set_min_pane_size, set_splitter_sash_position, split_window
Used to get the text of the selected item of a wxListBox, wxComboBox or wxChoice.
See Also: add_item, clear_items, delete_item, destroy, enable, find_string, get_handle, get_label, get_list_string, get_rect, get_selection, get_string_selection, is_visible, set_cursor, set_focus, set_selection, set_size, set_string, set_tip
Used to get the text of the selected item of a wxListBox, wxComboBox or wxChoice.
See Also: add_item, clear_items, delete_item, destroy, enable, find_string, get_handle, get_label, get_list_string, get_rect, get_selection, get_string_selection, is_visible, set_cursor, set_focus, set_selection, set_size, set_string, set_tip
Available system colors are:
See Also: cleanup, get_key_state, get_sys_metric, message_box, wxEu_Lib, wxMain, wx_execute, wx_shell
Available metrics are:
See Also: cleanup, get_key_state, get_sys_color, message_box, wxEu_Lib, wxMain, wx_execute, wx_shell
Returns the Background color of a wxTextAttr
See Also: get_text_attr_color, get_text_attr_font, set_text_attr_back_color, set_text_attr_color, set_text_attr_font
Returns the Color Attribute of a wxTextAttr
See Also: get_text_attr_back_color, get_text_attr_font, set_text_attr_back_color, set_text_attr_color, set_text_attr_font
Returns the Font stored in a wxTextAttr
See Also: get_text_attr_back_color, get_text_attr_color, set_text_attr_back_color, set_text_attr_color, set_text_attr_font
See Also: begin_drawing, blit, clear_dc, draw_bitmap, draw_icon, draw_line, draw_polygon, end_drawing, get_dc_size, get_dc_text_extent, get_first_region, get_next_region, get_regions, get_user_scale, init_image_handlers, set_background_mode, set_back_brush, set_brush, set_default_font, set_font, set_pen, set_text_back_color, set_text_color, set_user_scale, wx_printf, wx_puts
Returns the length of the text buffer currently in the Control.
See Also: append_text, copy_text, cut_text, get_text_number, get_text_value, paste_text, select_all_text, set_default_text_style, set_text, set_text_selection, set_text_style, write_text
Returns the value of the text control after passing it through Euphoria's value() function.
See Also: append_text, copy_text, cut_text, get_text_length, get_text_value, paste_text, select_all_text, set_default_text_style, set_text, set_text_selection, set_text_style, write_text
This retrives the text stored in a wxTextCtrl buffer. It will return the actual string, if you want the actual value, such as a numeric value, use get_text_number() instead.
See Also: append_text, copy_text, cut_text, get_text_length, get_text_number, paste_text, select_all_text, set_default_text_style, set_text, set_text_selection, set_text_style, write_text
See Also: add_tree_item, add_tree_root, delete_tree_children, delete_tree_item, expand_tree_item, get_tree_root, get_tree_selected_text, get_tree_selection, get_tree_text, select_tree_item, set_tree_item_text, tree_imagelist, valid_tree_item
See Also: add_tree_item, add_tree_root, delete_tree_children, delete_tree_item, expand_tree_item, get_tree_parent, get_tree_selected_text, get_tree_selection, get_tree_text, select_tree_item, set_tree_item_text, tree_imagelist, valid_tree_item
See Also: add_tree_item, add_tree_root, delete_tree_children, delete_tree_item, expand_tree_item, get_tree_parent, get_tree_root, get_tree_selection, get_tree_text, select_tree_item, set_tree_item_text, tree_imagelist, valid_tree_item
See Also: add_tree_item, add_tree_root, delete_tree_children, delete_tree_item, expand_tree_item, get_tree_parent, get_tree_root, get_tree_selected_text, get_tree_text, select_tree_item, set_tree_item_text, tree_imagelist, valid_tree_item
See Also: add_tree_item, add_tree_root, delete_tree_children, delete_tree_item, expand_tree_item, get_tree_parent, get_tree_root, get_tree_selected_text, get_tree_selection, select_tree_item, set_tree_item_text, tree_imagelist, valid_tree_item
Returns an input stream that can be used with stream_read() to fetch the file from the url.
Returns the scaling factors for the DC.
See Also: begin_drawing, blit, clear_dc, draw_bitmap, draw_icon, draw_line, draw_polygon, end_drawing, get_dc_size, get_dc_text_extent, get_first_region, get_next_region, get_regions, get_text_extent, init_image_handlers, set_background_mode, set_back_brush, set_brush, set_default_font, set_font, set_pen, set_text_back_color, set_text_color, set_user_scale, wx_printf, wx_puts
See Also: get_preview_frame, set_preview_frame
Call this inside of wxGrid event handlers to get the row and column where the event is taking place.
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
See Also: get_all_files, has_subdirs, is_opened, open_dir
See Also: get_all_files, has_files, is_opened, open_dir
This appends the HTML Source to the Control
See Also: get_html_anchor, get_html_page, get_html_page_title, get_html_page_title, html_back, html_forward, load_html_file, load_html_page, set_html_page, set_link_event, set_open_url_event, set_related_frame
See Also: get_html_anchor, get_html_page, get_html_page_title, get_html_page_title, html_append, html_forward, load_html_file, load_html_page, set_html_page, set_link_event, set_open_url_event, set_related_frame
See Also: get_html_anchor, get_html_page, get_html_page_title, get_html_page_title, html_append, html_back, load_html_file, load_html_page, set_html_page, set_link_event, set_open_url_event, set_related_frame
Initializes all image handlers for later use.
See Also: begin_drawing, blit, clear_dc, draw_bitmap, draw_icon, draw_line, draw_polygon, end_drawing, get_dc_size, get_dc_text_extent, get_first_region, get_next_region, get_regions, get_text_extent, get_user_scale, set_background_mode, set_back_brush, set_brush, set_default_font, set_font, set_pen, set_text_back_color, set_text_color, set_user_scale, wx_printf, wx_puts
See Also: insert_list_column, list_imagelist, set_column_label, set_list_item_back_color, set_list_item_image
See Also: insert_listctrl_item, list_imagelist, set_column_label, set_list_item_back_color, set_list_item_image
Insert a wxMenuItem at position in the specified menu.
See Also: check_menuitem, enable_menuitem, get_menuevent_id, get_menuitem_id, is_menuitem_checked, remove_menuitem, set_menu_label
See Also: get_socket_event, set_flags, set_socket_notify, socket_event_handler, socket_from_event, socket_read, socket_write, stream_write
Check to see if an object belongs to a certain class. kind is the sm_class... constant for the class in question.
See Also: create, delete_instance, sizeof_class
Returns 1 if the menuitem is checked, 0 otherwise.
See Also: check_menuitem, enable_menuitem, get_menuevent_id, get_menuitem_id, insert_menuitem, remove_menuitem, set_menu_label
See Also: get_all_files, has_files, has_subdirs, open_dir
Returns 1 if the printout is currently being used for previewing.
See Also: get_page_mm, get_page_pixels, get_ppi_printer, get_ppi_screen, get_printout_dc, set_page_info
See Also: add_item, clear_items, delete_item, destroy, enable, find_string, get_handle, get_label, get_list_string, get_rect, get_selection, get_string_selection, get_string_selection, set_cursor, set_focus, set_selection, set_size, set_string, set_tip
See Also: get_key_code, key_event_controldown, key_event_shiftdown
See Also: get_key_code, key_event_altdown, key_event_shiftdown
See Also: get_key_code, key_event_altdown, key_event_controldown
Used to count the number of items in a wxListBox.
See Also: clear_list, delete_list_item, find_list_string, list_ensure_visible, set_first_list_item, set_list_selection
See Also: clear_list, delete_list_item, find_list_string, list_count, set_first_list_item, set_list_selection
See Also: insert_listctrl_item, insert_list_column, set_column_label, set_list_item_back_color, set_list_item_image
Loads the specified file.
See Also: get_html_anchor, get_html_page, get_html_page_title, get_html_page_title, html_append, html_back, html_forward, load_html_page, set_html_page, set_link_event, set_open_url_event, set_related_frame
See Also: get_html_anchor, get_html_page, get_html_page_title, get_html_page_title, html_append, html_back, html_forward, load_html_file, set_html_page, set_link_event, set_open_url_event, set_related_frame
Calls wxLogMessage. The first call to log_message in an application will create a file named wlog.txt. You may change this by changing the global sequence log_file.
The arguments to log_message are the same as you would use with sprintf(). It is not necessary to add a newline to the message, as wxLogMessage does this automatically.
ex: log_message( "The value is %d", 5 )
Returns the class name for the object, as long as it was either created by new_instance() or registered by register_instance().
See Also: lookup_class_name, wx_alloc, wx_alloc_string, wx_free, wx_or_all, wx_peek_string
Returns the value of the associated class.
See Also: lookup_class, wx_alloc, wx_alloc_string, wx_free, wx_or_all, wx_peek_string
Scrolls the grid if necessary to make the cell visible.
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
Maximizes a child if bool = 1, or restores child is bool = 0.
See Also: activate_child, restore_child
Creates a message box dialog, with style ok. Allowable styles are:
wxOK wxYES_NO wxCANCEL wxYES wxNO wxNO_DEFAULT wxYES_DEFAULT wxICON_EXCLAMATION wxICON_HAND wxICON_WARNING wxICON_ERROR wxICON_QUESTION wxICON_INFORMATION wxICON_STOP wxICON_ASTERISK
See Also: cleanup, get_key_state, get_sys_color, get_sys_metric, wxEu_Lib, wxMain, wx_execute, wx_shell
Returns the coordinates of the mouse.
See Also: mouse_event_shiftdown
See Also: mouse_event_position
This is a generic create function that can be used by other create routines that use default arguments. It assumes that the arguments passed are:
See Also: call_back_member, call_cdecl, call_cdecl_s, call_cdecl_str, call_member, call_member_s, call_member_str, create_func, define_class, deref_instance, derived_class, get_constructor, get_destructor, new_instance, register_instance, set_destructor
Generates an integer identifier unique to this run of the program. This can be used to generate ids for menuitems or other controls.
Allocates space, calls the constructor and registers a new instance of a class.
See Also: call_back_member, call_cdecl, call_cdecl_s, call_cdecl_str, call_member, call_member_s, call_member_str, create_func, define_class, deref_instance, derived_class, get_constructor, get_destructor, new_control, register_instance, set_destructor
This creates a new Resource Stack, that allows you to store memory handles into. This is useful if you don't want to release all resources at one time.
See Also: add_resource, free_resource, release_resources, wxBaseResource
See Also: add_page, set_page_text, show_page
See Also: close_clip, get_clip_text, set_clip_text
See Also: get_all_files, has_files, has_subdirs, is_opened
Pastes the text from the clipboard to the text item.
See Also: append_text, copy_text, cut_text, get_text_length, get_text_number, get_text_value, select_all_text, set_default_text_style, set_text, set_text_selection, set_text_style, write_text
Can be used to continue with the dialog, after the user had chosen ABORT.
See Also: progress_update
Updates the dialog, setting the progress bar to the new value and, if given changes the message above it. Returns true unless the Cancel button has been pressed.
If FALSE is returned, the application can either immediately destroy the dialog or ask the user for the confirmation and if the abort is not confirmed the dialog may be resumed with Resume function.
See Also: progress_resume
Bring a window to the front of the screen.
See Also: set_icon, show_fullscreen, show_window
Returns a sequence describing the date and time. See wxDateTime for details on the format of the data returned.
See Also: get_days_in_month, set_datetime
Forces a wxWindow to repaint itself. params can take one of several forms:
See Also: capture_mouse, get_client_size, get_id, release_mouse, set_back_color, set_title
Registers an instance of a class, so that delete_instance() can be used to destroy it. This does not need to be done for objects created with new_instance().
See Also: call_back_member, call_cdecl, call_cdecl_s, call_cdecl_str, call_member, call_member_s, call_member_str, create_func, define_class, deref_instance, derived_class, get_constructor, get_destructor, new_control, new_instance, set_destructor
See Also: capture_mouse, get_client_size, get_id, refresh_window, set_back_color, set_title
This releases the accumilated list of pointers of a stack, in one single statement. Once all memory handles are released, the resource_stack list is cleared, and all handles that was released become invalid. If resource_stack is an invalid stack, nothing is done, and control is returned immediately to the caller.
example:
sequence holders for x = 1 to 4 do -- Create the Actual wxTreeCtrl Items holders &={ add_tree_item(MyTree,MainParent,sprintf("Item %d",x),-1,-1), {} } for y = 1 to 3 do -- Add some Sub-Items holders[x][2] &= add_tree_item(MyTree,holders[x][1],sprintf("Sub-Item %d",x),-1,-1) end for -- Add the pointers to be free'd when we're done. add_resources(wxBaseResource,holders[x][1] & holders[x][2]) -- Get the actual Unique ID's for said holders holders[x][1] = peek4u(holders[x][1]) for y = 1 to 3 do holders[x][2][y] = peek4u(holders[x][2][y]) end for end for -- Release all the accumulated memory handlers, since we now have actual unique id's for all the wxTreeCtrl items release_resources(wxBaseResource)
See Also: add_resource, free_resource, new_resource, wxBaseResource
Removes (deletes) the specified file, returns true if successful.
See Also: copy_file
Removes a wxMenuItem from a wxMenu and deletes the wxMenuItem.
See Also: check_menuitem, enable_menuitem, get_menuevent_id, get_menuitem_id, insert_menuitem, is_menuitem_checked, set_menu_label
Restores (unmaximizes a child frame)
See Also: activate_child, maximize_child
Set's the highlight area for the wxTextCtrl to the entire buffer. Similarly, you can do: set_text_selection(myEdit,0,-1) or set_text_selection(myEdit,0,get_text_length(myEdit))
See Also: append_text, copy_text, cut_text, get_text_length, get_text_number, get_text_value, paste_text, set_default_text_style, set_text, set_text_selection, set_text_style, write_text
Moves the cursor and selection to the cell specified.
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
Selects a bitmap into the wxMemoryDC. If obj is wxNullBitmap, then the bitmap currently selected into the DC is deselected.
See Also: add_tree_item, add_tree_root, delete_tree_children, delete_tree_item, expand_tree_item, get_tree_parent, get_tree_root, get_tree_selected_text, get_tree_selection, get_tree_text, set_tree_item_text, tree_imagelist, valid_tree_item
mode may be either wxSOLID (text is drawn with a background color) or wxTRANSPARENT (text is drawn without a background color).
See Also: begin_drawing, blit, clear_dc, draw_bitmap, draw_icon, draw_line, draw_polygon, end_drawing, get_dc_size, get_dc_text_extent, get_first_region, get_next_region, get_regions, get_text_extent, get_user_scale, init_image_handlers, set_back_brush, set_brush, set_default_font, set_font, set_pen, set_text_back_color, set_text_color, set_user_scale, wx_printf, wx_puts
Sets background brush to be the current wxBrush for dc wxDC.
See Also: begin_drawing, blit, clear_dc, draw_bitmap, draw_icon, draw_line, draw_polygon, end_drawing, get_dc_size, get_dc_text_extent, get_first_region, get_next_region, get_regions, get_text_extent, get_user_scale, init_image_handlers, set_background_mode, set_brush, set_default_font, set_font, set_pen, set_text_back_color, set_text_color, set_user_scale, wx_printf, wx_puts
See Also: capture_mouse, get_client_size, get_id, refresh_window, release_mouse, set_title
See Also: convert_to_image, get_bitmap_size, set_mask
Sets the displayed bitmap of the bitmap button.
Sets brush to be the current wxBrush for dc wxDC.
See Also: begin_drawing, blit, clear_dc, draw_bitmap, draw_icon, draw_line, draw_polygon, end_drawing, get_dc_size, get_dc_text_extent, get_first_region, get_next_region, get_regions, get_text_extent, get_user_scale, init_image_handlers, set_background_mode, set_back_brush, set_default_font, set_font, set_pen, set_text_back_color, set_text_color, set_user_scale, wx_printf, wx_puts
Changes the label on a button.
Moves the cursor to the current cell being edited. Does not alter the selection (see select_grid_cell)
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
Set the vertical of horizontal alignment of a cell:
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
Allows entries other than the standard text based editor to be used.
The only editors currently supported are:
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
Makes the cell read only if readonly is 1, or allows editing if readonly is 0.
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
Sets the contents of a cell. If val is an atom, then the contents of the cell will be sprint(val).
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
This procedure works for wxCheckBox and wxToggleButton.
See Also: get_checked
See Also: choice_count, clear_choice, find_choice_string
See Also: close_clip, get_clip_text, open_clip
Changes the label of the specified column (0-based).
See Also: insert_listctrl_item, insert_list_column, list_imagelist, set_list_item_back_color, set_list_item_image
Set the vertical of horizontal alignment of a column:
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
Allows entries other than the standard text based editor to be used.
The only editors currently supported are:
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
Changes the label of a column.
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
Use wxLEFT, wxRIGHT and wxTOP, wxBOTTOM (or zero for center)
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
Sets the specified col in the specified grid to be read only if readonly is 1. Editing will be allowed if readonly is 0.
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
Change the size of a grid column. This function does not refresh the grid. If you are calling it outside of a BeginBatch EndBatch block you can use force_refresh_grid to see the changes
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
See Also: clear_combo, combobox_count, delete_combo_item, find_combo_string, get_combo_item_string, get_combo_string
Changes the mouse cursor for the specified window to be the specified cursor. See wxCursor for the available cursor shapes.
See Also: add_item, clear_items, delete_item, destroy, enable, find_string, get_handle, get_label, get_list_string, get_rect, get_selection, get_string_selection, get_string_selection, is_visible, set_focus, set_selection, set_size, set_string, set_tip
See wxDateTime for the proper format of Date.
See Also: get_cal_days_in_month, get_date, get_date_time, set_date_back_color, set_date_border, set_date_border_color, set_date_font, set_date_holiday, set_date_text_color
See wxDateTime for the format of date_time.
See Also: get_days_in_month, read_datetime
day can be either a single day (integer) or a sequence containing multiple days. It should be in the range of 1..31.
See Also: get_cal_days_in_month, get_date, get_date_time, set_date, set_date_border, set_date_border_color, set_date_font, set_date_holiday, set_date_text_color
day can be either a single day (integer) or a sequence containing multiple days. It should be in the range of 1..31
border:
See Also: get_cal_days_in_month, get_date, get_date_time, set_date, set_date_back_color, set_date_border_color, set_date_font, set_date_holiday, set_date_text_color
day can be either a single day (integer) or a sequence containing multiple days. It should be in the range of 1..31
See Also: get_cal_days_in_month, get_date, get_date_time, set_date, set_date_back_color, set_date_border, set_date_font, set_date_holiday, set_date_text_color
day can be either a single day (integer) or a sequence containing multiple days. It should be in the range of 1..31
See Also: get_cal_days_in_month, get_date, get_date_time, set_date, set_date_back_color, set_date_border, set_date_border_color, set_date_holiday, set_date_text_color
day can be either a single day (integer) or a sequence containing multiple days. It should be in the range of 1..31.
holiday should be 1 if the day is a holiday, or 0 if not a holiday.
See Also: get_cal_days_in_month, get_date, get_date_time, set_date, set_date_back_color, set_date_border, set_date_border_color, set_date_font, set_date_text_color
day can be either a single day (integer) or a sequence containing multiple days. It should be in the range of 1..31
See Also: get_cal_days_in_month, get_date, get_date_time, set_date, set_date_back_color, set_date_border, set_date_border_color, set_date_font, set_date_holiday
Sets the default font for a window.
See Also: begin_drawing, blit, clear_dc, draw_bitmap, draw_icon, draw_line, draw_polygon, end_drawing, get_dc_size, get_dc_text_extent, get_first_region, get_next_region, get_regions, get_text_extent, get_user_scale, init_image_handlers, set_background_mode, set_back_brush, set_brush, set_font, set_pen, set_text_back_color, set_text_color, set_user_scale, wx_printf, wx_puts
Sets the default cell editor control for the grid.
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
Changes the default style to use for the new text which is going to be added to the control using write_text().
See Also: append_text, copy_text, cut_text, get_text_length, get_text_number, get_text_value, paste_text, select_all_text, set_text, set_text_selection, set_text_style, write_text
Sets the destructor for the class to dtor, where dtor is the routine id of a user supplied procedure that will be called instead of a wxWidgets supplied destructor. The procedure should take one atom (this pointer) as its arguments, and should free the memory allocated by the object (because wxEuphoria won't).
ex: global procedure delete_string( atom string ) deref_string( string ) free(string) end procedure set_destructor( wxString, routine_id("delete_string"))
See Also: call_back_member, call_cdecl, call_cdecl_s, call_cdecl_str, call_member, call_member_s, call_member_str, create_func, define_class, deref_instance, derived_class, get_constructor, get_destructor, new_control, new_instance, register_instance
If cell is an integer, then it refers to an entire column, and the choices will be set for the column editor. If cell is a sequence, it refers to the cell by {row, column}, and that cell's editor will be set.
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
Set up an event handler.
ex: procedure onclose( atom win, atom event ) exit_main() end procedure set_event_handler( myWindow, wxID_EXIT, wxEVT_MENU_SELECTED, routine_id("onclose"))See class documentation for valid event constants.
See Also: disable_events, enable_events, skip
See Also: clear_list, delete_list_item, find_list_string, list_count, list_ensure_visible, set_list_selection
See Also: get_socket_event, is_connected, set_socket_notify, socket_event_handler, socket_from_event, socket_read, socket_write, stream_write
See Also: add_item, clear_items, delete_item, destroy, enable, find_string, get_handle, get_label, get_list_string, get_rect, get_selection, get_string_selection, get_string_selection, is_visible, set_cursor, set_selection, set_size, set_string, set_tip
Sets the font for a specified wxDC or wxPaintDC assiciated with a window. To set the default font for a window or control, you should use set_default_font().
See Also: begin_drawing, blit, clear_dc, draw_bitmap, draw_icon, draw_line, draw_polygon, end_drawing, get_dc_size, get_dc_text_extent, get_first_region, get_next_region, get_regions, get_text_extent, get_user_scale, init_image_handlers, set_background_mode, set_back_brush, set_brush, set_default_font, set_pen, set_text_back_color, set_text_color, set_user_scale, wx_printf, wx_puts
Makes the entire grid uneditable by the user is editable is 0, or allows editing if editable is 1.
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
Change the color of the lines in the grid.
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_size, set_row_label, set_row_label_align, set_row_label_size
Adds or deletes columns or rows as required.
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_row_label, set_row_label_align, set_row_label_size
This sets the source of the displayed page to source.
See Also: get_html_anchor, get_html_page, get_html_page_title, get_html_page_title, html_append, html_back, html_forward, load_html_file, load_html_page, set_link_event, set_open_url_event, set_related_frame
See Also: raise_window, show_fullscreen, show_window
See Also: get_chosen_font
Set the address to hostname, which can be a host name or an IP-style address in dot notation (a.b.c.d)
See Also: any_address, set_ip_service
Sets the port according to the specified service. If service is a sequence, then the port is set to the corresponding service, otherwise, the port is set to service.
See Also: any_address, set_ip_host
Set a callback for when the user clicks on a link in a wxHtmlWindow. The callback must be a procedure that takes 3 parameters:
See Also: get_html_anchor, get_html_page, get_html_page_title, get_html_page_title, html_append, html_back, html_forward, load_html_file, load_html_page, set_html_page, set_open_url_event, set_related_frame
Sets the background color of a wxListCtrl item.
See Also: insert_listctrl_item, insert_list_column, list_imagelist, set_column_label, set_list_item_image
Changes the image displayed for the item. You must have previously assigned a wxImageList to the list using list_imagelist().
See Also: insert_listctrl_item, insert_list_column, list_imagelist, set_column_label, set_list_item_back_color
If select is a sequence, the list selection is set to the item with that string, otherwise, select denotes the item index.
See Also: clear_list, delete_list_item, find_list_string, list_count, list_ensure_visible, set_first_list_item
Sets the specified mask to be the associated wxMask for the specified bmp.
See Also: convert_to_image, get_bitmap_size, set_bitmap_size
Use to change the text of a menu item. id should be the id of the menuitem.
See Also: check_menuitem, enable_menuitem, get_menuevent_id, get_menuitem_id, insert_menuitem, is_menuitem_checked, remove_menuitem
The default minimum pane size is zero, which means that either pane can be reduced to zero by dragging the sash, thus removing one of the panes. To prevent this behaviour (and veto out-of-range sash dragging), set a minimum size, for example 20 pixels. If the wxSP_PERMIT_UNSPLIT style is used when a splitter window is created, the window may be unsplit even if minimum size is non-zero
See Also: get_splitter_sash_position, set_splitter_sash_position, split_window
See Also: set_prev_wizard_page
Set a call_back to be called when an URL is being opened (either when the user clicks on a link or an image is loaded). The URL will be opened only if the call back returns wxHTML_OPEN. This method is called by wxHtmlParser::OpenURL. You can use the call back to selectively block some URLs (e.g. for security reasons) or to redirect them elsewhere. Default behaviour is to always return wxHTML_OPEN.
Parameters
Call back return value:
See Also: get_html_anchor, get_html_page, get_html_page_title, get_html_page_title, html_append, html_back, html_forward, load_html_file, load_html_page, set_html_page, set_link_event, set_related_frame
This routine sets the max and min pages for a printout object. If you need to have the DC of the printer in order to determine the number of pages,
See Also: get_page_mm, get_page_pixels, get_ppi_printer, get_ppi_screen, get_printout_dc, is_preview
See Also: add_page, notebook_imagelist, show_page
Sets pen to be the current wxPen for dc wxDC.
See Also: begin_drawing, blit, clear_dc, draw_bitmap, draw_icon, draw_line, draw_polygon, end_drawing, get_dc_size, get_dc_text_extent, get_first_region, get_next_region, get_regions, get_text_extent, get_user_scale, init_image_handlers, set_background_mode, set_back_brush, set_brush, set_default_font, set_font, set_text_back_color, set_text_color, set_user_scale, wx_printf, wx_puts
See Also: get_font_encoding, get_font_family, get_font_members, get_font_name, get_font_pointsize, get_font_style, get_font_underlined, get_font_weight
See Also: get_preview_frame, get_zoom
See Also: set_next_wizard_page
See Also: get_radio_selection
Sets the frame in which page title will be displayed. format is format of frame title, e.g. "HtmlHelp : %s". It must contain exactly one %s. This %s is substituted with HTML page title. status_slot is the slot in the status bar where messages will be displayed (-1 means no messages).
See Also: get_html_anchor, get_html_page, get_html_page_title, get_html_page_title, html_append, html_back, html_forward, load_html_file, load_html_page, set_html_page, set_link_event, set_open_url_event
Changes the label of a row.
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label_align, set_row_label_size
Use wxLEFT, wxRIGHT and wxTOP, wxBOTTOM (or zero for center)
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_size
See Also: append_cols, append_rows, autosize_columns, batch_count, begin_batch, clear_grid, delete_cols, delete_rows, end_batch, force_refresh_grid, get_cell_editor, get_cell_editor_control, get_cell_value, get_col_label, get_col_label_size, get_row_label_size, grid_event_cell, grid_pos, grid_size, make_cell_visible, select_grid_cell, set_cell, set_cell_alignment, set_cell_editor, set_cell_readonly, set_cell_value, set_col_alignment, set_col_editor, set_col_label, set_col_label_align, set_col_label_size, set_col_readonly, set_col_size, set_default_grid_editor, set_editor_choices, set_grid_editable, set_grid_line_color, set_grid_size, set_row_label, set_row_label_align
See Also: get_scroll_position, set_scroll_position
See Also: get_scroll_position, set_scrollbar
To unselect a wxListBox item, the item parameter should be a sequence: {item_number, -1}. To unselect a wxListCtrl item, item should be {item_number, 0}.
See Also: add_item, clear_items, delete_item, destroy, enable, find_string, get_handle, get_label, get_list_string, get_rect, get_selection, get_string_selection, get_string_selection, is_visible, set_cursor, set_focus, set_size, set_string, set_tip
See Also: add_item, clear_items, delete_item, destroy, enable, find_string, get_handle, get_label, get_list_string, get_rect, get_selection, get_string_selection, get_string_selection, is_visible, set_cursor, set_focus, set_selection, set_string, set_tip
This must be called before a sizer will resize its children. window is the parent window of the controls to be resized. The sizer will resize and reposition its children based on window.
See Also: add_sizer_to_sizer, add_window_to_sizer, fit_window, space_sizer
See Also: get_slide_value
Works for both wxSocketServer and wxSocketClient. Specifies which socket events are to be sent to the event handler. The flags parameter may be combination of flags ORed together. The following flags can be used:
See Also: get_socket_event, is_connected, set_flags, socket_event_handler, socket_from_event, socket_read, socket_write, stream_write
Set's the current Value of a wxSpinCtrl to val.
See Also: get_spin_value
Sets the sash position of the wxSplitterWindow at pos pixels. The windows will not be redrawn unless redraw is 1.
See Also: get_splitter_sash_position, set_min_pane_size, split_window
widths: An array of n integers, each of which is a status field width in pixels. A value of -1 indicates that the field is variable width; at least one field must be -1.
See Also: set_status_text
Set the status text of field field (zero based). This routine does nothing if field refers to a non-existant status field.
See Also: set_status_fields
Set the string of an item in a wxListBox, wxComboBox or wxChoice.
See Also: add_item, clear_items, delete_item, destroy, enable, find_string, get_handle, get_label, get_list_string, get_rect, get_selection, get_string_selection, get_string_selection, is_visible, set_cursor, set_focus, set_selection, set_size, set_tip
Replaces the text in the control with val.
See Also: append_text, copy_text, cut_text, get_text_length, get_text_number, get_text_value, paste_text, select_all_text, set_default_text_style, set_text_selection, set_text_style, write_text
Stores the Background color in a wxTextAttr
See Also: get_text_attr_back_color, get_text_attr_color, get_text_attr_font, set_text_attr_color, set_text_attr_font
Stores the Text color in a wxTextAttr
See Also: get_text_attr_back_color, get_text_attr_color, get_text_attr_font, set_text_attr_back_color, set_text_attr_font
Stores the Font in a wxTextAttr
See Also: get_text_attr_back_color, get_text_attr_color, get_text_attr_font, set_text_attr_back_color, set_text_attr_color
See Also: begin_drawing, blit, clear_dc, draw_bitmap, draw_icon, draw_line, draw_polygon, end_drawing, get_dc_size, get_dc_text_extent, get_first_region, get_next_region, get_regions, get_text_extent, get_user_scale, init_image_handlers, set_background_mode, set_back_brush, set_brush, set_default_font, set_font, set_pen, set_text_color, set_user_scale, wx_printf, wx_puts
Set the current text foreground color. color can be either an RGB sequence, or a pointer to a wxColour object.
See Also: begin_drawing, blit, clear_dc, draw_bitmap, draw_icon, draw_line, draw_polygon, end_drawing, get_dc_size, get_dc_text_extent, get_first_region, get_next_region, get_regions, get_text_extent, get_user_scale, init_image_handlers, set_background_mode, set_back_brush, set_brush, set_default_font, set_font, set_pen, set_text_back_color, set_user_scale, wx_printf, wx_puts
Set the highlight area in a wxTextCtrl
See Also: append_text, copy_text, cut_text, get_text_length, get_text_number, get_text_value, paste_text, select_all_text, set_default_text_style, set_text, set_text_style, write_text
See Also: append_text, copy_text, cut_text, get_text_length, get_text_number, get_text_value, paste_text, select_all_text, set_default_text_style, set_text, set_text_selection, write_text
Sets the tooltip for an object derived from class wxWindow.
See Also: add_item, clear_items, delete_item, destroy, enable, find_string, get_handle, get_label, get_list_string, get_rect, get_selection, get_string_selection, get_string_selection, is_visible, set_cursor, set_focus, set_selection, set_size, set_string
See Also: capture_mouse, get_client_size, get_id, refresh_window, release_mouse, set_back_color
Sets the size of the images to be loaded into the toolbar. The default is 32 x 32. This does not seem to have an effect under Linux (my investigation of wxWidgets source doesn't ever show these properties being used by wxGTK).
See Also: add_separator, add_tool, set_tool_margins, show_toolbar, toggle_tool
See Also: add_separator, add_tool, set_tool_bitmap_size, show_toolbar, toggle_tool
See Also: add_tree_item, add_tree_root, delete_tree_children, delete_tree_item, expand_tree_item, get_tree_parent, get_tree_root, get_tree_selected_text, get_tree_selection, get_tree_text, select_tree_item, tree_imagelist, valid_tree_item
Sets the scaling factors for the DC.
See Also: begin_drawing, blit, clear_dc, draw_bitmap, draw_icon, draw_line, draw_polygon, end_drawing, get_dc_size, get_dc_text_extent, get_first_region, get_next_region, get_regions, get_text_extent, get_user_scale, init_image_handlers, set_background_mode, set_back_brush, set_brush, set_default_font, set_font, set_pen, set_text_back_color, set_text_color, wx_printf, wx_puts
See Also: raise_window, set_icon, show_window
See Also: end_modal
See Also: add_page, notebook_imagelist, set_page_text
Must be called after tools are added.
See Also: add_separator, add_tool, set_tool_bitmap_size, set_tool_margins, toggle_tool
See Also: raise_window, set_icon, show_fullscreen
Returns the size, in bytes, for class sm. This must be a dynamic class (if you look in the wxWidgets source code, you'll see things like IMPLEMENT_DYNAMIC_CLASS). You can use this function if there is an sm_classwxXXX constant defined for the class.
ex: ? sizeof_class( sm_classwxObject )
See Also: create, delete_instance, is_kind
Here, the sizer will do the actual calculation of its children minimal sizes. The size is returned as a sequence.
See Also: get_sizer_minsize, get_sizer_position, get_sizer_size
Called by an event handler to tell the event system that the event handler should be skipped, and the next valid handler used instead.
See Also: disable_events, enable_events, set_event_handler
Accepts an incoming connection request, and creates a new wxSocketBase object which represents the server-side of the connection.
If wait is TRUE and there are no pending connections to be accepted, it will wait for the next incoming connection to arrive. Warning: This will block the GUI.
If wait is FALSE, it will try to accept a pending connection if there is one, but it will always return immediately without blocking the GUI. If you want to use Accept in this way, you can either check for incoming connections with WaitForAccept or catch wxSOCKET_CONNECTION events, then call Accept once you know that there is an incoming connection waiting to be accepted.
Connects to a server using the specified address.
If wait is TRUE, Connect will wait until the connection completes. Warning: This will block the GUI.
If wait is FALSE, Connect will try to establish the connection and return immediately, without blocking the GUI. When used this way, even if Connect returns FALSE, the connection request can be completed later. To detect this, use WaitOnConnect, or catch wxSOCKET_CONNECTION events (for successful establishment) and wxSOCKET_LOST events (for connection failure).
When calling set_event_handler() for a wxEVT_SOCKET event, for the 'this' parameter, you must pass a sequence consisting of the object to handle the events and the socket:
socket_event_handler( socket, form, socket_id ) set_event_handler( {form, socket}, -1, wxEVT_SOCKET, routine_id("socket_event"))
See Also: get_socket_event, is_connected, set_flags, set_socket_notify, socket_from_event, socket_read, socket_write, stream_write
Returns the pointer to the socket that sent the wxSocketEvent.
See Also: get_socket_event, is_connected, set_flags, set_socket_notify, socket_event_handler, socket_read, socket_write, stream_write
Works for wxSocketServer, wxSocketClient, wxHTTP and wxFTP.
See Also: get_socket_event, is_connected, set_flags, set_socket_notify, socket_event_handler, socket_from_event, socket_write, stream_write
Works for both wxSocketServer and wxSocketClient.
See Also: get_socket_event, is_connected, set_flags, set_socket_notify, socket_event_handler, socket_from_event, socket_read, stream_write
Adds a blank region to the sizer in order to space controls within a sizer.
See Also: add_sizer_to_sizer, add_window_to_sizer, fit_window, set_sizer
See Also: get_splitter_sash_position, set_min_pane_size, set_splitter_sash_position
Starts the printing process. Provide a parent window, a user-defined wxPrintout object which controls the printing of a document, and whether the print dialog should be invoked first.
Print could return FALSE if there was a problem initializing the printer device context (current printer not set, for example) or the user cancelled printing. Call wxPrinter::GetLastError to get detailed information about the kind of the error.
Set the timer to fire every msec millisecond ( 1000msec = 1sec ). oneshot indicates whether the timer should stop firing after the first time, or fire repeatedly until stop_timer() is called.
See Also: stop_timer
Stops a timer from firing until reset using start_timer().
See Also: start_timer
See Also: get_socket_event, is_connected, set_flags, set_socket_notify, socket_event_handler, socket_from_event, socket_read, socket_write
Arranges the MDI child windows in a tile pattern.
See Also: arrange_mdi_icons, cascade_mdi
See Also: add_separator, add_tool, set_tool_bitmap_size, set_tool_margins, show_toolbar
See Also: add_tree_item, add_tree_root, delete_tree_children, delete_tree_item, expand_tree_item, get_tree_parent, get_tree_root, get_tree_selected_text, get_tree_selection, get_tree_text, select_tree_item, set_tree_item_text, valid_tree_item
See Also: add_tree_item, add_tree_root, delete_tree_children, delete_tree_item, expand_tree_item, get_tree_parent, get_tree_root, get_tree_selected_text, get_tree_selection, get_tree_text, select_tree_item, set_tree_item_text, tree_imagelist
Returns the direction of the page change. For a forward change, the return value is 1, and the value is 0 for a backward change.
See Also: wizard_event_page
Returns the pointer to the wxWizardPage that the event refers to.
See Also: wizard_event_direction
Writes the text at the current insertion point.
See Also: append_text, copy_text, cut_text, get_text_length, get_text_number, get_text_value, paste_text, select_all_text, set_default_text_style, set_text, set_text_selection, set_text_style
This is the base stack, that you can use by default, without having to allocate a new resource stack. It is provided as the default stack, and cannot be removed through free_resource()
See Also: add_resource, free_resource, new_resource, release_resources
This is a global function that you can declare before you include wxEuphoria.e. If it is present, the return value of the function will be used as the name of the wxEuphoria library when calling open_dll(). The default names are:
Win32: wxeu.dll Linux: $EUDIR/bin/wxeu.so
See Also: cleanup, get_key_state, get_sys_color, get_sys_metric, message_box, wxMain, wx_execute, wx_shell
This starts the event loop and your main application.
See Also: cleanup, get_key_state, get_sys_color, get_sys_metric, message_box, wxEu_Lib, wx_execute, wx_shell
Allocates a bytes long chunk of memory and sets it to all zeroes.
See Also: lookup_class, lookup_class_name, wx_alloc_string, wx_free, wx_or_all, wx_peek_string
Allocates a sequence as a C-style string. This function currently calls Euphoria's built-in allocate_string() To create a wxString, you should use the create() function.
See Also: lookup_class, lookup_class_name, wx_alloc, wx_free, wx_or_all, wx_peek_string
flag can be a combination of:
See Also: cleanup, get_key_state, get_sys_color, get_sys_metric, message_box, wxEu_Lib, wxMain, wx_shell
Frees an allocated chunk of memory.
See Also: lookup_class, lookup_class_name, wx_alloc, wx_alloc_string, wx_or_all, wx_peek_string
Executes a bitwise or operation on a sequence of atoms. Use this to convert from a C/C++ style:
THING1|THING2|THING3wx_or_all( THING1 & THING2 & THING3 )
See Also: lookup_class, lookup_class_name, wx_alloc, wx_alloc_string, wx_free, wx_peek_string
Returns a sequence of the string stored in a wxString object. Do not pass the pointer to a string allocated by wx_alloc_string().
See Also: lookup_class, lookup_class_name, wx_alloc, wx_alloc_string, wx_free, wx_or_all
Works similar to printf().
win can take several forms:
See Also: begin_drawing, blit, clear_dc, draw_bitmap, draw_icon, draw_line, draw_polygon, end_drawing, get_dc_size, get_dc_text_extent, get_first_region, get_next_region, get_regions, get_text_extent, get_user_scale, init_image_handlers, set_background_mode, set_back_brush, set_brush, set_default_font, set_font, set_pen, set_text_back_color, set_text_color, set_user_scale, wx_puts
Works similar to puts().
See Also: begin_drawing, blit, clear_dc, draw_bitmap, draw_icon, draw_line, draw_polygon, end_drawing, get_dc_size, get_dc_text_extent, get_first_region, get_next_region, get_regions, get_text_extent, get_user_scale, init_image_handlers, set_background_mode, set_back_brush, set_brush, set_default_font, set_font, set_pen, set_text_back_color, set_text_color, set_user_scale, wx_printf
See Also: cleanup, get_key_state, get_sys_color, get_sys_metric, message_box, wxEu_Lib, wxMain, wx_execute
proc
] proc
] func
] proc
] proc
] proc
] proc
] proc
] func
] func
] func
] proc
] proc
] proc
] proc
] proc
] proc
] func
] func
] proc
] func
] proc
] proc
] proc
] func
] func
] func
] func
] func
] func
] func
] proc
] proc
] proc
] func
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] func
] func
] func
] func
] proc
] func
] proc
] proc
] func
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] func
] proc
] func
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] func
] func
] func
] func
] func
] func
] func
] proc
] proc
] func
] proc
] func
] func
] proc
] func
] proc
] proc
] func
] func
] func
] proc
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] proc
] proc
] func
] func
] func
] func
] func
] func
] func
] func
] Using menusfunc
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] proc
] proc
] proc
] proc
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] func
] proc
] proc
] proc
] proc
] proc
] func
] func
] proc
] proc
] func
]
] func
] func
] func
] func
] func
] proc
] proc
] func
] func
] proc
] proc
] func
] proc
] func
] proc
] proc
] proc
] proc
] func
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] func
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] func
] func
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] A list of controls available in wxWidgetsproc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] proc
] func
] proc
] proc
] proc
] func
] func
] proc
] func
] func
] proc
] func
] proc
] proc
] proc
] proc
] func
] proc
] proc
] proc
] proc
] Simplistic Routines to manage memoryproc
] proc
] func
] func
] func
] proc
] const
] func
] proc
] Changes, Bugs and TODO Listfunc
] func
] proc
] func
] func
] func
] proc
] proc
] proc
]