WINLIB2B

Discussions related to mouse, keyboard, fonts and Graphical User Interface
KenDown
Posts: 327
Joined: Wed 04 Apr 2018, 06:36

WINLIB2B

Post by KenDown »

Well, actually 2U, but the documentation suggests it is the same as 2B.

My Display program uses 2U because I want to be able to process clicks on radio buttons. The problem is that 2B disables the red X at top right to close a window. Of course when I click on "OK" the contents of the dialog box are processed and the dialog box closes, but what if I want to close the box without processing? It seems too silly to have a special "Close dialog" button when there is already a close dialog/window button.

Does clicking on the red X return a code of some sort which I can detect and use? If the information is in the Help files, I have not been able to find it.
KenDown
Posts: 327
Joined: Wed 04 Apr 2018, 06:36

Re: WINLIB2B

Post by KenDown »

I'm sorry if I wasn't clear. I was referring to the red 'X' at top right of the window. Why have a Cancel/Close button when there is the red X? Indeed, if you haven't taken the requisite action and the other button is still saying "Cancel", clicking on the red X would seem a logical thing to do. Perhaps not recommended by a purist, but eminently practical.