To install click the Add extension button. That's it.

The source code for the WIKI 2 extension is being checked by specialists of the Mozilla Foundation, Google, and Apple. You could also do it yourself at any point in time.

4,5
Kelly Slayton
Congratulations on this excellent venture… what a great idea!
Alexander Grigorievskiy
I use WIKI 2 every day and almost forgot how the original Wikipedia looks like.
Live Statistics
English Articles
Improved in 24 Hours
Added in 24 Hours
Languages
Recent
Show all languages
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.
.
Leo
Newton
Brights
Milds

From Wikipedia, the free encyclopedia

wxBasic
Developer(s)David Cuny
Initial release2002; 22 years ago (2002)
Stable release
2.8.12.43[1] / November 13, 2016; 7 years ago (2016-11-13)[1]
Operating systemCross-platform
LicenseGNU Lesser General Public License
Websitewxbasic.net

wxBasic is a free software / open-source software, cross-platform BASIC interpreter. As it is based on syntax of the BASIC language, it is designed to be simple to learn and understand, and allow novice programmers to write applications for graphical environments like Windows and Linux with minimal effort. wxBasic is a bytecode based language, like Perl or Java. It is licensed under the LGPL, so proprietary software's source code can be linked against it.

It can create stand-alone executables by binding together source code with the interpreter. In contrast with executables created by similar commercial programs like Visual Basic, executables produced by wxBasic do not require any external DLL file, resource file, or installer to run. The executable is distributed alone and can be run immediately by end-users. As with programs written in any interpreted language, wxBasic programs may also be run straight from the source code on any platform, if wxBasic is present.

wxBasic is written primarily in C, with some C++ linking it to the wxWidgets library. wxWidgets supplies the cross-platform features. It runs on Microsoft Windows using native controls, and on Linux and macOS using the GTK+ library.[2] wxBasic is also the basis for the SdlBasic project.

YouTube Encyclopedic

  • 1/3
    Views:
    2 253
    358
    421
  • wxWebConnect - Browser Control Library for wxWidgets
  • vaporEditor Physics WIP
  • picmatch

Transcription

Example

The following program implements a text viewer:

  ' from http://wxbasic.sourceforge.net/phpBB2/viewtopic.php?t=554
  ' Simple Text Viewer written in wxBasic
  dim AppName = "Text Viewer"
  fileName = ""

  ' Main window
  dim frame = new wxFrame( Nothing, -1, AppName & " - Untitled Document" )
  ' Text edit control
  dim control = new wxTextCtrl( frame, -1, "", wxPoint( 0, 0 ),
  wxSize( 100, 100 ), wxTE_MULTILINE | wxTE_READONLY | wxTE_RICH)

  ' Status bar - The one at the bottom of the window
  dim status = frame.CreateStatusBar( 1 )
  frame.SetStatusText("Ready")
  '
  ' Dialog used for Open
  dim fileDialog = new wxFileDialog( frame )
  '
  ' add menubar to the frame
  dim mBar = new wxMenuBar()
  frame.SetMenuBar(mBar)
  '
  ' build the "File" dropdown menu
  dim mFile = new wxMenu()
  mBar.Append(mFile, "&File")

  ' make it
  '
  mFile.Append( wxID_OPEN, "&Open...", "Loads an existing file from disk" )
  '
  mFile.AppendSeparator()
  mFile.Append( wxID_EXIT, "E&xit\tAlt-X", "Exit Application" )

  Sub onFileOpen( event )
     fileDialog.SetMessage("Open File")
     fileDialog.SetStyle( wxOPEN )
     If fileDialog.ShowModal() = wxID_OK Then
       fileName = fileDialog.GetPath()
       Ext = fileDialog.GetFilename()
       control.Clear()
       control.LoadFile( fileName )
       frame.SetTitle( AppName & " - " & fileName )
       frame.SetStatusText(Ext)
    End If
  End Sub
  '
  Connect( frame, wxID_OPEN, wxEVT_COMMAND_MENU_SELECTED, "onFileOpen" )

  Sub onFileExit( event )
    frame.Close(True)
  End Sub
  '
  Connect( frame, wxID_EXIT, wxEVT_COMMAND_MENU_SELECTED, "onFileExit" )

  ' build the "Help" dropdown menu
  dim mHelp = new wxMenu()
  mBar.Append(mHelp, "&Help")
  mHelp.Append( wxID_HELP, "&About\tF1", "About this program" )
  '
  Sub onHelpAbout( event )
    Dim msg = "Text View allows any text file\n" &
    "to be viewed regardless of its extension.\n" &
    "If the file being opened isn't a text file\n" &
    "then it won't be displayed. There will be a\n" &
    "little garbage shown and that's all."
    wxMessageBox( msg, "About Text View", wxOK + wxICON_INFORMATION, frame )
  End Sub
  Connect( frame, wxID_HELP, wxEVT_COMMAND_MENU_SELECTED, "onHelpAbout" )

  frame.Show(True)

References

  1. ^ a b "News, November 2016". wxbasic.net. Retrieved 25 September 2017.
  2. ^ "Download". wxbasic.net. Retrieved 25 September 2017.

External links

This page was last edited on 23 March 2024, at 09:17
Basis of this page is in Wikipedia. Text is available under the CC BY-SA 3.0 Unported License. Non-text media are available under their specified licenses. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc. WIKI 2 is an independent company and has no affiliation with Wikimedia Foundation.