Search found 79 matches

by Zaphod
Fri 05 Jul 2019, 18:39
Forum: User Interface
Topic: WINLIB2B Close buttons don't work.
Replies: 16
Views: 1391

Re: WINLIB2B Close buttons don't work.

Unfortunately, the handle that @lparam% holds is the handle of the Cancel button, NOT the handle of the dialog box that the Cancel button and close button belong to. It is interesting how the close button on the title bar works. It simply forwards a button click event with an ID of 2 for the Window...
by Zaphod
Fri 28 Jun 2019, 15:16
Forum: User Interface
Topic: WINLIB2B Close buttons don't work.
Replies: 16
Views: 1391

Re: WINLIB2B Close buttons don't work.

Actually I do have a modified version of WINLIB2B that does what you want from about 4 or 5 years ago, so it might not be the latest version. If you are interested then send me a private message and I will email it to you. It is not an 'approved' solution, obviously, so I won't post it here.

Z
by Zaphod
Thu 27 Jun 2019, 23:03
Forum: User Interface
Topic: WINLIB2B Close buttons don't work.
Replies: 16
Views: 1391

Re: WINLIB2B Close buttons don't work.

So far as I can see, when you click on the close box of a dialog the @lparam% that is returned by ON SYS is "0", so that suggestion does not appear to work. Incidentally nor does my earlier suggestion of finding the active window. That also returns a "0". It looks like the calling thread is not the ...
by Zaphod
Wed 26 Jun 2019, 20:09
Forum: User Interface
Topic: WINLIB2B Close buttons don't work.
Replies: 16
Views: 1391

Re: WINLIB2B Close buttons don't work.

Well if you keep a list of the dialog handles then you could presumably use SYS "GetActiveWindow" to find which one it was.

Z
by Zaphod
Wed 26 Jun 2019, 16:39
Forum: User Interface
Topic: WINLIB2B Close buttons don't work.
Replies: 16
Views: 1391

Re: WINLIB2B Close buttons don't work.

The idea is to allow some processing to occur before the window closes so WINLIB2B enhances the options. It requires you to do a little more processing to detect the close button press but that is simple enough. You will get an interrupt message of WM_COMMAND (@msg%=273) with a control ID of ID_CANC...
by Zaphod
Fri 07 Jun 2019, 15:44
Forum: BBC BASIC language
Topic: Prefilled INPUT - editing variables rather than retyping the whole thing
Replies: 4
Views: 437

Re: Prefilled INPUT - editing variables rather than retyping the whole thing

First, while there may be a way of prefilling the input buffer I don't know it. However, there is a quick solution and that is to use the NOWAIT library, where similar functions are implemented in BBC BASIC and so is easy to modify. If you look at FNinput in that library you can add a modified versi...
by Zaphod
Thu 06 Jun 2019, 22:56
Forum: Suggestion Box
Topic: Dark mode for IDE
Replies: 3
Views: 765

Re: Dark mode for IDE

BBCSDL, which can be downloaded from Richard's site has SDLIDE.BBC as part of the package. That will also run under BB4W and has a dark mode. If you were thinking that BB4W would ever have a dark mode it should be noted that development of BB4W ceased a while back. BBCSDL is still being developed an...
by Zaphod
Tue 04 Jun 2019, 13:33
Forum: BBC BASIC language
Topic: Program Not Closing ON CLOSE
Replies: 8
Views: 1059

Re: Program Not Closing ON CLOSE

I am afraid I don't know what caused the change in behaviour and I have never managed to get it to do it again spontaneously. However, putting a WAIT 10 after SYS "GetForegroundWindow" TO W% seemed to fix it. So it looks like a timing issue and how fast the screen window changes focus which may well...
by Zaphod
Mon 03 Jun 2019, 17:08
Forum: BBC BASIC language
Topic: Program Not Closing ON CLOSE
Replies: 8
Views: 1059

Re: Program Not Closing ON CLOSE

So on my machine it did not close either, but then for some reason after many attempts trying to move the dialog and clicking background windows etc. it suddenly started closing and kept doing that from then on. No ideas. But your program clearly needs ON MOUSE as an interrupt will sort that I am su...
by Zaphod
Thu 30 May 2019, 05:25
Forum: BBC BASIC language
Topic: SystemParametersInfoA
Replies: 5
Views: 797

Re: SystemParametersInfoA

Um, that 30 is hex! Try &30 and it should work.

Z