wxMaxima
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions
BTextCtrl Class Reference

A wxTextCtrl with parenthesis matching. More...

#include <BTextCtrl.h>

Inheritance diagram for BTextCtrl:
[legend]
Collaboration diagram for BTextCtrl:
[legend]

Public Member Functions

 BTextCtrl (wxWindow *parent, wxWindowID id, Configuration *cfg, const wxString &value=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0)
 
void SetSkipTab (bool skip)
 

Static Public Member Functions

static wxTextCtrl * LastActive ()
 The last BTextCtrl that got the keyboard focus, if it still exists.
 
static void ForgetLastActive ()
 Route sidebar button presses back to the worksheet again.
 

Detailed Description

A wxTextCtrl with parenthesis matching.

Member Function Documentation

◆ LastActive()

static wxTextCtrl * BTextCtrl::LastActive ( )
inlinestatic

The last BTextCtrl that got the keyboard focus, if it still exists.

The symbols sidebars use this to route their button presses: if a text control (e.g. a wizard field) had the focus last, the symbol is inserted there instead of into the worksheet.

Held as a wxWeakRef, which nulls itself when the control is destroyed: a closed wizard can therefore never leave a dangling pointer here, and no destructor needs to unregister the control anywhere (unregistering via the Configuration object crashed on shutdown when the Configuration died first, see issue #2027).


The documentation for this class was generated from the following files: