Shiny Language Reference

Language Reference > User Interface > Memo Boxes


getmemoboxacceptret

bool getmemoboxacceptret(int ID);

 

Returns whether the memobox allows line feeds (newlines)

The GETMEMOBOXACCEPTRET statement returns how the memobox responds to the user pressing the Enter (Return) key. It is the counterpart to setmemoboxacceptret.

 

Parameters

ID

The control ID of the control you wish to retrieve the response type of

 

Return Value

None

 

Example Code

// Create the memo box X: 10, Y:10 and sized 150*70
int iMemoBoxID = creatememobox(1, 10, 10, 150, 70);

// Set the memobox text to "Hello World"
setcaption(iMemoBoxID, "Hello World");

// Find whether the memobox allows newlines
bool bAcceptRetState = getmemoboxacceptret(iMemoBoxID);