#include <RhinoSdkTextOut.h>
◆ output_mode
Enumerator |
---|
text_dialog | Display text in dialog box.
|
history_window | Display text in Rhino command history window.
|
text_file | Write text to file.
|
clipboard | Write text to Windows clipboard.
|
◆ CRhinoTextOut()
CRhinoTextOut::CRhinoTextOut |
( |
| ) |
|
◆ ~CRhinoTextOut()
virtual CRhinoTextOut::~CRhinoTextOut |
( |
| ) |
|
|
virtual |
◆ Data()
LPVOID CRhinoTextOut::Data |
( |
| ) |
const |
◆ Dialog()
class CRhRichTextDialog* CRhinoTextOut::Dialog |
( |
| ) |
const |
Description: Dialog box used to display text. Returns: Returns pointer to dialog box used to display text.
◆ DisplayText()
virtual CRhinoCommand::result CRhinoTextOut::DisplayText |
( |
bool |
is_interactive, |
|
|
const wchar_t * |
lpsWindowTitle, |
|
|
LPVOID |
pData = nullptr , |
|
|
HWND |
hWndParent = nullptr |
|
) |
| |
|
virtual |
Description: This will eventually call CRhinoTextOut::PrintText(). If is_interactive is true then the ON_TextLog passed to CRhinoTextOut::PrintText() will output text to a RichEditCtrl embedded in a text dialog otherwise the user will be prompted for a text file name to open and CRhinoTextOut::PrintText() will append the text file. Parameters: is_interactive [in] - If true then a text dialog is displayed otherwise text is output to a file. lpsWindowTitle [in] - Only valid if is_interactive == true, if so then the text dialog title is set to this string. pData [in] - Passed to CRhinoTextOut::PrintText as pData argument. hWndParent [in] - Optional argument which is only meaningful if is_interactive is true. If so then it is used as the parent window for the text dialog. Returns: CRhinoCommand::success = Text output successfully. CRhinoCommand::cancel = User pressed escape when promted for a file name to write to. CRhinoCommand::failure = Error opening text file.
◆ PrintBuffer()
◆ PrintText()
virtual void CRhinoTextOut::PrintText |
( |
ON_TextLog & |
text_log, |
|
|
LPVOID |
pData |
|
) |
| |
|
pure virtual |
Description: You must override this function to actually display your text. Parameters: text_log [in] - Log attached to text file, history window or text dialog. pData [in] - Data passed to CRhinoTextOut::DisplayText method.
Implemented in CRhinoTextDump.
◆ PrintToClipboard()
◆ PrintToDialog()
◆ PrintToFile()
◆ PrintToHistory()
◆ ScrollTextDialogToBottom() [1/2]
bool CRhinoTextOut::ScrollTextDialogToBottom |
( |
| ) |
const |
Description: If this is true and a text dialog is displayed then the edit control in the dialog will be scrolled to the bottom. Returns: Returns true if edit control should be scrolled to the bottom
◆ ScrollTextDialogToBottom() [2/2]
void CRhinoTextOut::ScrollTextDialogToBottom |
( |
bool |
b | ) |
|
Description: If this is true and a text dialog is displayed then the edit control in the dialog will be scrolled to the bottom. Parameters: b [in] If true then edit control is scrolled to the bottom in the text dialog. Returns: Returns true if edit control should be scrolled to the bottom
◆ SetTextOutputMode()
void CRhinoTextOut::SetTextOutputMode |
( |
output_mode |
mode | ) |
|
Description: Direct output to a specific context. Parameters: mode [in] - Place to direct output
◆ SetUseFileDialog()
bool CRhinoTextOut::SetUseFileDialog |
( |
bool |
b | ) |
|
Description: Specify whether or not to use the file dialog when specifying a text file to write to. Parameters: b [in] If true then file dialog will be displayed when choosing the file option otherwise users will be prompted for a file name via the command line. Returns: Returns previous value
◆ TextOutputMode()
Description: Place to direct output.
◆ UseFileDialog()
bool CRhinoTextOut::UseFileDialog |
( |
| ) |
const |
Description: Specify whether or not to use the file dialog when specifying a text file to write to. Returns: Returns true if the file dialog when specifying a text file to write to.
◆ WindowTitle()
const wchar_t* CRhinoTextOut::WindowTitle |
( |
| ) |
const |
For internal use
Description: String to use as dialog box title. Returns: Returns string to use as dialog box title.
◆ m_dialog
class CRhRichTextDialog* CRhinoTextOut::m_dialog |
|
protected |
◆ m_hWnd
HWND CRhinoTextOut::m_hWnd |
|
protected |
◆ m_output_mode
◆ m_pData
LPVOID CRhinoTextOut::m_pData |
|
protected |
◆ m_scroll_dialog_to_bottom
bool CRhinoTextOut::m_scroll_dialog_to_bottom |
|
protected |
◆ m_use_file_dialog
bool CRhinoTextOut::m_use_file_dialog |
|
protected |
◆ m_wbuffer
class CRhTextOutWStringTextLog* CRhinoTextOut::m_wbuffer |
◆ m_window_title