Author |
Topic: Closing Dialog Boxes (Read 1346 times) |
|
Matt
Developer
member is offline


Gender: 
Posts: 210
|
 |
Re: Closing Dialog Boxes
« Reply #5 on: Sep 29th, 2014, 07:12am » |
|
I recently reinstalled my desktop, including BB4W. I installed version 5.8 full and upgraded to 5.95. I've just checked and WINLIB2A is there. I've been using it for some time, so I assume, then, that it was shipped with 5.8.
This is not an important matter, as your suggestion that I should probably use WINLIB2 instead, will be used. But as you seemed to be unaware of the differences, I thought you might be interested.
Matt
|
|
Logged
|
|
|
|
rtr2
Guest
|
 |
Re: Closing Dialog Boxes
« Reply #6 on: Sep 29th, 2014, 08:48am » |
|
on Sep 29th, 2014, 07:12am, Matt wrote:| I've just checked and WINLIB2A is there. |
|
Of course I am aware that WINLIB2A was distributed with BB4W, and it continues to be. Generally I never delete things from the distribution, even if they become obsolete (assuming they still work). But it's undocumented and I can't remember what the differences are (I have a suspicion that maybe it was designing to support context-sensitive help before *SYS 1 was introduced).
Richard.
|
|
Logged
|
|
|
|
rtr2
Guest
|
 |
Re: Closing Dialog Boxes
« Reply #7 on: Sep 29th, 2014, 11:32am » |
|
on Sep 29th, 2014, 08:48am, g4bau wrote:| I have a suspicion that maybe it was designed to support context-sensitive help before *SYS 1 was introduced |
|
I can confirm that. Before the introduction of *SYS 1 there was no way to intercept and respond to WM_HELP messages received from a dialogue box. Accordingly, WINLIB2A converts them into WM_COMMAND messages with a special ID value (999), which can be handled by a regular ON SYS.
*SYS 1 makes that kludge obsolete, because WM_HELP messages can now be intercepted directly. Therefore on the introduction of that command WINLIB2A was replaced by WINLIB2B (which forwards WM_HELP messages to the parent window). However on the basis that some programs might still be using WINLIB2A it remained in the BB4W distribution.
WINLIB2A is now undocumented and ought not to be used in new programs. Existing programs which use it can continue to do so, at your own risk, so long as they work as required.
Richard.
|
|
Logged
|
|
|
|
|