View previous topic :: View next topic |
Author |
Message |
wahorger
Joined: 13 Oct 2014 Posts: 1217 Location: Morrison, CO, USA
|
Posted: Wed May 22, 2019 2:39 pm Post subject: Curious about %lv options |
|
|
I am curious about this only. Not asking for a change!
I have a %lv that I would like to make un-accessible via a grey control. The documentation is clear that the tilde is not a permitted option for %lv. However, I tried it anyway. The tilde was ignored, and the error thrown that I had provided an additional winio@() parameter.
I was curious if a grey control is restricted from use since %lv is (also according to the documentation) a window. Shall I try adding a %lc and use the show/hide window functions?
Thanks,
Bill |
|
Back to top |
|
|
John-Silver
Joined: 30 Jul 2013 Posts: 1520 Location: Aerospace Valley
|
Posted: Wed May 22, 2019 8:00 pm Post subject: |
|
|
all controls are windows
... of one type or another _________________ ''Computers (HAL and MARVIN excepted) are incredibly rigid. They question nothing. Especially input data.Human beings are incredibly trusting of computers and don't check input data. Together cocking up even the simplest calculation ... " |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7924 Location: Salford, UK
|
Posted: Thu May 23, 2019 1:07 pm Post subject: |
|
|
Bill
%lv does not take a tilde. Also it does not fault if one is supplied but this can be fixed.
You could get the hwnd of the control via %lc and then use it in a call to EnableWindow(hwnd, v) where v is 32 bit integer with value 0 or 1. |
|
Back to top |
|
|
wahorger
Joined: 13 Oct 2014 Posts: 1217 Location: Morrison, CO, USA
|
Posted: Thu May 23, 2019 2:04 pm Post subject: |
|
|
Paul, thanks. I suspected as much! |
|
Back to top |
|
|
|