back to gui 

wxCaret

generated from ../src/mod_gui/misc/caret.cpp

A caret is a blinking cursor showing the position where the typed text will appear. The text controls usually have a caret but wxCaret class also allows to use a caret in other windows.

Constants

Class Properties

Name Type Description
blinkTime Integer The blink time which is measured in milliseconds and is the time elapsed between 2 inversions of the caret.

Constructor

wxCaret

wxCaret()
 
wxCaret(Window, 
        Width, 
        Height)
 
Name Type Default Description
Window wxWindow
Width Integer
Height Integer
wxCaret(Window, 
        Size)
 
Name Type Default Description
Window wxWindow
Size wxSize

Constructs a new wxCaret object.

Properties

Name Type Description
ok read only Boolean Returns true if the caret was created successfully.
position read only wxPoint The caret position in pixels
size wxSize Get/Set the caret size
visible read only Boolean Returns true if the caret is visible and false if it is permanently hidden (if it is is blinking and not shown currently but will be after the next blink, this property still returns true).
window read only wxWindow Get the window the caret is associated with.

Methods

create

create()
 
create(Window, 
       Width, 
       Height)
 
Name Type Default Description
Window wxWindow
Width Integer
Height Integer
create(Window, 
       Size)
 
Name Type Default Description
Window wxWindow
Size wxSize

Constructs a new wxCaret object.

hide

hide()
 

move

move(Point)
 
Name Type Default Description
Point wxPoint

Move the caret to given position.

show

show(Sw = true)
 
Name Type Default Description
Sw Boolean true

Show/hide the caret



SourceForge.net Logo Support This Project

Table of Contents

Class Properties

blinkTime

Constructor

wxCaret

Properties

ok
position
size
visible
window

Methods

create
hide
move
show


Design downloaded from Zeroweb.org: Free website templates, layouts, and tools.