BBC BASIC for Windows
« Changing the style of a dialog control »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 10:23pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Changing the style of a dialog control  (Read 3216 times)
Matt
Developer

member is offline

Avatar




PM

Gender: Male
Posts: 210
xx Re: Changing the style of a dialog control
« Reply #6 on: Jun 15th, 2013, 7:41pm »

on Jun 15th, 2013, 4:53pm, Richard Russell wrote:
To me it's a 'no brainer'

I wish it was that easy for me.

Quote:
There the details of the messages you need to send are listed in great detail, corresponding to these BBC BASIC statements:

Code:
SYS "SendMessage", hEditControl%, EM_SETREADONLY, 1, 0 : REM Set Read Only state
SYS "SendMessage", hEditControl%, EM_SETREADONLY, 0, 0 : REM Clear Read Only state 

Richard.


Thanks. Now all I have to do is find a way of making comboboxes and buttons(incl. radio buttons and checkboxes) RO as well.

Matt
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Changing the style of a dialog control
« Reply #7 on: Jun 15th, 2013, 10:12pm »

on Jun 15th, 2013, 7:41pm, Matt wrote:
I wish it was that easy for me.

If you are not familiar with the SendMessage function then you really shouldn't be attempting to program the Windows API. Spend some time learning the basics, then come back to the task.

Quote:
Now all I have to do is find a way of making comboboxes and buttons(incl. radio buttons and checkboxes) RO as well.

Since you can't ever 'write' to buttons, there's no concept of them being 'read only'! As far as comboboxes are concerned, a 'read only' combobox would simply be a List Box (remember that a combobox is a combination of a text box - which you can write to - and a list box - which you can't)!

Richard.
« Last Edit: Jun 15th, 2013, 10:33pm by admin » User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls