BBC BASIC for Windows
Programming >> User Interface >> Labels in Windows GUI
http://bb4w.conforums.com/index.cgi?board=ui&action=display&num=1397809490

Labels in Windows GUI
Post by g3nrw on Apr 18th, 2014, 08:24am

Looking at the DLGDEMO.BBC example program, it does everything I want, except for one thing: how do I add Labels to the display?

--
Ian

Re: Labels in Windows GUI
Post by rtr on Apr 18th, 2014, 08:51am

on Apr 18th, 2014, 08:24am, g3nrw wrote:
Looking at the DLGDEMO.BBC example program, it does everything I want, except for one thing: how do I add Labels to the display?

Can you clarify what you mean by 'labels'? That's not a term conventionally used in the context of the Windows GUI. Are you perhaps referring to static text controls, or to tooltips, or what?

If a static text control meets your requirements, then PROC_static in WINLIB2 (etc.) is used to create those.

Richard.
Re: Labels in Windows GUI
Post by g3nrw on Apr 18th, 2014, 09:14am

Richard

I was thinking in the context of a VBA "Label" control. That is, a piece of plain text that might, for example, appear alongside a combobox to explain what the combobox is for.

--
Ian

Re: Labels in Windows GUI
Post by g3nrw on Apr 18th, 2014, 11:09am

on Apr 18th, 2014, 08:51am, Richard Russell wrote:
If a static text control meets your requirements, then PROC_static in WINLIB2 (etc.) is used to create those.
Richard.


Forgot to say. PROC_static does indeed fit the bill. Thank you.

--
Ian