Search found 34 matches

by hellomike
Sun 07 Jul 2019, 09:33
Forum: User Interface
Topic: WINLIB2B Close buttons don't work.
Replies: 16
Views: 1428

Re: WINLIB2B Close buttons don't work.

Yes indeed. I'm using SYS "GetParent" now, storing the handle in global variable D% and then giving each dedicated dialog PROC a chance to match. Without Richards help I wouldn't have know though that a button with IDCANCEL id HAS to exist in order to get a handle back in @lparam%. It probably is in...
by hellomike
Wed 03 Jul 2019, 23:02
Forum: BBC BASIC language
Topic: Request by Richard to return
Replies: 6
Views: 843

Re: Request by Richard to return

Richard returning would mean always very high quality explanations, valuable advise, more Wiki articles because of question users have and much more.
What's not to like?
by hellomike
Mon 01 Jul 2019, 07:47
Forum: User Interface
Topic: WINLIB2B Close buttons don't work.
Replies: 16
Views: 1428

Re: WINLIB2B Close buttons don't work.

Wow. Richard is, of course, correct. Only when there is a button on the dialog box with a IDCANCEL id, @lparam% contains a handle when WM_COMMAND with id IDCANCEL is received. When there is no button with IDCANCEL, @lparam% contains 0 when clicking close button. Either clicking on the close button o...
by hellomike
Sat 29 Jun 2019, 20:21
Forum: User Interface
Topic: WINLIB2B Close buttons don't work.
Replies: 16
Views: 1428

Re: WINLIB2B Close buttons don't work.

Hi, Latest situation is that the following seems to work........ CASE id% OF WHEN ID_CANCEL SYS "GetCursorPos", Point{} SYS "WindowFromPoint", Point.x%, Point.y% TO D% IF D%=@hwnd% THEN Ready%=TRUE ELSE PROCappAddCol(95) PROCappCDSet(95) PROCappCDWidths(95) PROCappCellDetails(95, -1) PROCappLists(95...
by hellomike
Sat 29 Jun 2019, 08:32
Forum: User Interface
Topic: WINLIB2B Close buttons don't work.
Replies: 16
Views: 1428

Re: WINLIB2B Close buttons don't work.

Thanks for the offer. In the forum historie I indeed saw that you have dealt with the library before. Clearly you have better figured out how the library works, i.e. how Richard incorporates the dialog box procedure in it. Ideally I would like to have a wrapper function "FNappNewDialog(title$,x%,y%,...
by hellomike
Fri 28 Jun 2019, 08:05
Forum: User Interface
Topic: WINLIB2B Close buttons don't work.
Replies: 16
Views: 1428

Re: WINLIB2B Close buttons don't work.

p_m21987, Please thank Richard for his reply. He always provides good information. So I was thinking of getting the dialog handle when there is a ID_CANCEL and then give all dialog-PROCs a change to match the dlg and do their business. Was about to test how to obtain the handle today but.... Zaphod ...
by hellomike
Thu 27 Jun 2019, 10:02
Forum: User Interface
Topic: WINLIB2B Close buttons don't work.
Replies: 16
Views: 1428

Re: WINLIB2B Close buttons don't work.

Thanks for thinking along. I agree that my handling of modal vs modeless boxes is an ongoing issue. Most of them can or rather should be modal. Because of a menu-choice I call a PROC that opens the correct dialog box, like: CASE msg% OF WHEN WM_COMMAND REM Menu handling... CASE id% OF ............. ...
by hellomike
Wed 26 Jun 2019, 18:11
Forum: User Interface
Topic: WINLIB2B Close buttons don't work.
Replies: 16
Views: 1428

Re: WINLIB2B Close buttons don't work.

Hi Zaphod, Thanks for the fast reply! Actually I discovered today that at least WM_COMMAND with ID_CANCEL is send so I thought I was saved and that I could simply add this in my interrupt handler PROCedure, which is..... DEF PROCappSys(msg%, wpa%, lpa%) LOCAL nc%, id% nc%=wpa%>>16 : id%=wpa% AND &FF...
by hellomike
Wed 26 Jun 2019, 11:53
Forum: User Interface
Topic: WINLIB2B Close buttons don't work.
Replies: 16
Views: 1428

WINLIB2B Close buttons don't work.

Hi, Yes, I know this behavior is documented in the help but I can't understand why Richard decided to put this in the WINLIB2B library or actually why he didn't just update WINLIB2. As far as I can see from other applications (including BB4W IDE!) pressing escape or clicking the dialog box close but...
by hellomike
Fri 14 Jun 2019, 15:35
Forum: BBC BASIC language
Topic: Suppress SPOOL...
Replies: 0
Views: 427

Suppress SPOOL...

Hi, Probably it isn't easily possible but maybe I'm unaware off a nifty trick so lets post this anyhow.... To have all PRINT output on screen also saved as file, obviously *SPOOL is how to do that, as it was 30 years ago. Obviously it saves all VDU output, hence also the COLOUR VDU bytes (17,...). W...