Regarding the G4P selectOption control.
I wanted multiple lines for the String message in a g4p_controls.G4P.selectOption message dialog window. I used the following:
int resp = g4p_controls.G4P.selectOption (this,
“First Line\nSecond Line\nThird Line”,
"Confirm Ok To Run Or Cancel",
G4P.WARN_MESSAGE,
G4P.OK_CANCEL
);
The resulting message was:
First Line (but just this line is in small typeface)
Second Line
Third Line</p>
(Yes, the text </p>
shows in the message dialog. Boy was it hard to get this post to show it.)
Thinking I would have to live with the small typeface first line and thinking that the added </p>
text looked like an ort inline html tag I eventually discovered inline html tags in the message string seem to work their purpose. I could get what I wanted and eliminate that added </p>
text using this:
int resp = g4p_controls.G4P.selectOption (this,
“<b>First Line<br>Second Line<br>Third Line”,
"Confirm Ok To Run Or Cancel",
G4P.WARN_MESSAGE,
G4P.OK_CANCEL
);
Where is this documented?