<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p><span style="color: rgb(65, 65, 65); font-family: Tahoma, Arial,
Helvetica, sans-serif; font-size: 14px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: 400; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(241, 241,
241); text-decoration-style: initial; text-decoration-color:
initial; display: inline !important; float: none;">This problem
is difficult to explain, so please bear with me. The idea behind
my app is to allow the user to select a Desktop Window. This is
done by having the FSelectWindow form overlay (with Opacity=35,
Arrangement=Vertical) the available desktop. </span><span
style="color: rgb(65, 65, 65); font-family: Tahoma, Arial,
Helvetica, sans-serif; font-size: 14px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: 400; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(241, 241,
241); text-decoration-style: initial; text-decoration-color:
initial; display: inline !important; float: none;"><span
style="color: rgb(65, 65, 65); font-family: Tahoma, Arial,
Helvetica, sans-serif; font-size: 14px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: 400; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(241,
241, 241); text-decoration-style: initial;
text-decoration-color: initial; display: inline !important;
float: none;"> The Select_Window form contains only one
control (DrawingAreaDesktop</span> with Expand=True). This
results in the Drawing AreaDesktop forming a semi-opaque layer
over the available desktop.</span></p>
<p><span style="color: rgb(65, 65, 65); font-family: Tahoma, Arial,
Helvetica, sans-serif; font-size: 14px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: 400; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(241, 241,
241); text-decoration-style: initial; text-decoration-color:
initial; display: inline !important; float: none;">If before you
run my app, you close all windows except Gambas (but not full
screen) and Compile All, there are no compilation errors or
warnings. Then run my app and click on the Select button (in the
FMain form), you will see that all the desktop windows (i.e.
only the Gambas one) are shown in a semi-opaque 'mode'. If you
now click on a point in an empty area, a Message Box will be
displayed saying "Try again:" & "Did not click on window.":
caused by lines 106-107 of Sub DrawingAreaDesktop_MouseUp()
event. If you click on the Ok button, then (with the Lock
command in line 104 commented out) </span><span style="color:
rgb(65, 65, 65); font-family: Tahoma, Arial, Helvetica,
sans-serif; font-size: 14px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: 400; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(241, 241,
241); text-decoration-style: initial; text-decoration-color:
initial; display: inline !important; float: none;"><span
style="color: rgb(65, 65, 65); font-family: Tahoma, Arial,
Helvetica, sans-serif; font-size: 14px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: 400; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(241,
241, 241); text-decoration-style: initial;
text-decoration-color: initial; display: inline !important;
float: none;">the Mouse_Up event is entered again: this is
shown by examining the Console output. To prevent (re-)entry
to the Mouse_Up event coding when the user clicks the Message
Box Ok button, I tried to use the Lock method in line 104 to
prevent this (re-)entry. However, I then get an error window
saying "Unknown symbol in 'Lock' in class 'Drawing Area' at
FSelectWindow.DrawingAreaDesktop - MouseUp.104 (generated by
line 135) . <br>
</span></span></p>
</body>
</html>