1. wxCommand compilation fixes for Unix
2. added wxTextCtrl sample textctrl 3. fixed handling of wxTE_READONLY and wxTE_PASSWORD flags in wxTextCtrl git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -320,7 +320,14 @@ protected:
|
||||
// get the width of the longest line in pixels
|
||||
wxCoord GetMaxWidth() const;
|
||||
|
||||
// update the max width if the width of this line is greater than it
|
||||
// force recalculation of the max line width
|
||||
void RecalcMaxWidth()
|
||||
{
|
||||
m_widthMax = -1;
|
||||
(void)GetMaxWidth();
|
||||
}
|
||||
|
||||
// update the max width after the given line was modified
|
||||
void UpdateMaxWidth(long line);
|
||||
|
||||
// event handlers
|
||||
@@ -405,6 +412,9 @@ private:
|
||||
// the max line length in pixels
|
||||
wxCoord m_widthMax;
|
||||
|
||||
// the index of the line which has the length of m_widthMax
|
||||
long m_lineLongest;
|
||||
|
||||
// the object to which we delegate our undo/redo implementation
|
||||
wxTextCtrlCommandProcessor *m_cmdProcessor;
|
||||
|
||||
|
Reference in New Issue
Block a user