BBC BASIC for Windows
Programming >> User Interface >> PROC_editbox: read-only?
http://bb4w.conforums.com/index.cgi?board=ui&action=display&num=1397902024

PROC_editbox: read-only?
Post by g3nrw on Apr 19th, 2014, 10:07am

Still learning about BBC Windows GUI.

I want to use something like a PROC_editbox, but read-only. The box will be used to display program status messages on the fly, but I don't want the user to overwrite it.

How can I do this?

--
Ian

Re: PROC_editbox: read-only?
Post by rtr on Apr 19th, 2014, 1:54pm

on Apr 19th, 2014, 10:07am, g3nrw wrote:
I want to use something like a PROC_editbox, but read-only. The box will be used to display program status messages on the fly, but I don't want the user to overwrite it.

How can I do this?

Simply set the edit box to read-only (ES_READONLY style bit). You may want to familiarise yourself with the many styles available which modify the appearance and/or functionality of Windows controls. As always, the information can be found at MSDN; in the specific case of Edit Controls it's here:

http://msdn.microsoft.com/en-us/library/windows/desktop/bb775464.aspx

Richard.