<b>=============== Summary ===============</b><br>
<br>
Change Set:        mvcLineLengthDialogs<br>
Date:            5 April 2022<br>
Author:            Christoph Thiede<br>
<br>
Adds a line-length limit to MVC dialogs. Complements Morphic-mt.1935. Due to the recent elimination of #withCRs in many places, this change has been overdue for an even longer time.<br>
<br>
Example (to be run in an MVC project):<br>
    self inform: Object comment<br>
<br>
<br>
<b>=============== Diff ===============</b><br>
<br>
<b>MVCUIManager>>informUser:during: {ui requests} · ct 4/5/2022 19:14 (changed)</b><br>
<s><font color="#0000FF">- informUser: aString during: aBlock<br>
</font></s><font color="#FF0000">+ informUser: aStringOrText during: aBlock<br>
</font>    "Display a message above (or below if insufficient room) the cursor <br>
    during execution of the given block.<br>
<s><font color="#0000FF">-         UIManager default informUser: 'Just a sec!' during: [(Delay forSeconds: 1) wait].<br>
</font></s><font color="#FF0000">+         Project uiManager informUser: 'Just a sec!' during: [1 second wait].<br>
</font>    "<br>
    (SelectionMenu labels: '')<br>
        displayAt: Sensor cursorPoint<br>
<s><font color="#0000FF">-         withCaption: aString<br>
</font></s><font color="#FF0000">+         withCaption: (aStringOrText ifNotNil: [aStringOrText withNoLineLongerThan: 100])<br>
</font>        during: aBlock<br>
<br>
<b>PopUpMenu>>mvcStartUpWithCaption:icon:at:allowKeyboard: {*ST80-Menus} · ct 4/5/2022 19:10 (changed)</b><br>
mvcStartUpWithCaption: captionOrNil icon: aForm at: location allowKeyboard: aBoolean<br>
    "Display the menu, with caption if supplied. Wait for the mouse button to go down, then track the selection as long as the button is pressed. When the button is released,<br>
    Answer the index of the current selection, or zero if the mouse is not released over  any menu item. Location specifies the desired topLeft of the menu body rectangle. The final argument indicates whether the menu should seize the keyboard focus in order to allow the user to navigate it via the keyboard."<br>
<br>
    frame ifNil: [self computeForm].<br>
    Cursor normal showWhile:<br>
        [self<br>
            displayAt: location<br>
<s><font color="#0000FF">-             withCaption: captionOrNil<br>
</font></s><font color="#FF0000">+             withCaption: (captionOrNil ifNotNil: [captionOrNil withNoLineLongerThan: 100])<br>
</font>            during: [self controlActivity]].<br>
    ^ selection<br>
<br>
<font color="#808080">---<br>
</font><font color="#808080"><i>Sent from </i></font><font color="#808080"><i><a href="https://github.com/hpi-swa-lab/squeak-inbox-talk"><u><font color="#808080">Squeak Inbox Talk</font></u></a></i></font><br>
["mvcLineLengthDialogs.1.cs"]<br>
["mvcLineLengthDialogs.png"]