# G4P multiline message in selectOption control

**URL:** https://discourse.processing.org/t/g4p-multiline-message-in-selectoption-control/34893
**Category:** Libraries
**Created:** [January 30, 2022, 3:37am UTC](https://discourse.processing.org/t/g4p-multiline-message-in-selectoption-control/34893 "2022-01-30T03:37:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![aksaks](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@aksaks](https://discourse.processing.org/u/aksaks)
#### Post date: [January 30, 2022, 3:37am UTC](https://discourse.processing.org/t/g4p-multiline-message-in-selectoption-control/34893/1 "2022-01-30T03:37:46Z")

</div>

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:

```auto
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:

```auto
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?
