Author |
Topic: Changing the style of a dialog control (Read 3216 times) |
|
Matt
Developer
member is offline


Gender: 
Posts: 210
|
 |
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
|
|
Logged
|
|
|
|
admin
Administrator
member is offline


Posts: 1145
|
 |
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 » |
Logged
|
|
|
|
|