Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
GUIDE: is non-wrapping multiline edit possible?

Subject: GUIDE: is non-wrapping multiline edit possible?

From: Jeroen Boschma

Date: 11 May, 2010 07:03:07

Message: 1 of 3

Hi there,

Spend hours trying and searching to get the edit-control in multiline non-wrapping mode (so the next line only starts when the user hits <ENTER>). Must work in 2007b. Anyone a solution, work-around, java-hack, etc....? Must be absolutely fool-proof (do ActiveX components always work on any PC???)

Regards,

   Jeroen

Subject: GUIDE: is non-wrapping multiline edit possible?

From: Yair Altman

Date: 11 May, 2010 11:27:04

Message: 2 of 3

"Jeroen Boschma" <jeroen@boschma.com> wrote in message <hsavfa$peq$1@fred.mathworks.com>...
> Hi there,
>
> Spend hours trying and searching to get the edit-control in multiline non-wrapping mode (so the next line only starts when the user hits <ENTER>). Must work in 2007b. Anyone a solution, work-around, java-hack, etc....? Must be absolutely fool-proof (do ActiveX components always work on any PC???)
>
> Regards,
>
> Jeroen


This will create a regular (line-wrapping) multi-line edit-box:
h=uicontrol('style','edit','max',2,'units','pixel','pos',[10,10,100,50],'string',{'multi-line','string'})

To make the editbox non-wrapping: http://UndocumentedMatlab.com/blog/customizing-listbox-editbox-scrollbars/

Other undocumented editbox customizations: http://undocumentedmatlab.com/?s=editbox

Yair Altman
http://UndocumentedMatlab.com

Subject: GUIDE: is non-wrapping multiline edit possible?

From: Jeroen Boschma

Date: 12 May, 2010 08:43:04

Message: 3 of 3

"Yair Altman" <altmanyDEL@gmailDEL.comDEL> wrote in message
> To make the editbox non-wrapping: http://UndocumentedMatlab.com/blog/customizing-listbox-editbox-scrollbars/
>
> Other undocumented editbox customizations: http://undocumentedmatlab.com/?s=editbox

Thanks a lot Yair, very interesting links! I'll look further there.

   Jeroen

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us