Search found 37 matches

by hellomike
Tue 13 Aug 2019, 10:34
Forum: Libraries
Topic: HUGESLIB.BBC
Replies: 9
Views: 1745

Re: HUGESLIB.BBC

You're welcome. Assembly language is also not my strong point, however searching for a specific byte, like the comma (ASCII 44) given the memory location to start, isn't very difficult. Searching for more characters a little more tricky but doable. If INSTR() gives you too much delay then let me kno...
by hellomike
Tue 13 Aug 2019, 07:53
Forum: Libraries
Topic: HUGESLIB.BBC
Replies: 9
Views: 1745

Re: HUGESLIB.BBC

Hi Edja, The possibility to store a whole file into a string is indeed tempting. However you have to realize that, in order to find a sub string, INSTR() will always make a copy of the string before it does the search. In addition, it needs the work space to do it. So if you use the default(?) 2MB o...
by hellomike
Tue 30 Jul 2019, 19:31
Forum: User Interface
Topic: keystroke detection
Replies: 2
Views: 1122

Re: keystroke detection

Hi Ric, Not sure what you tried but when I run the following: REPEAT WAIT 0 MOUSE X%,Y%,B% IF B% IF INKEY(-1) N%+=1 : PRINT "Mouse clicked AND <shift> pressed... ";N% UNTIL 0 It will print text only when both a <shift> key is pressed and a mouse button is clicked. Regards, Mike
by hellomike
Sun 07 Jul 2019, 09:33
Forum: User Interface
Topic: WINLIB2B Close buttons don't work.
Replies: 16
Views: 4329

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: 10
Views: 2860

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: 4329

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: 4329

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: 4329

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: 4329

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: 4329

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 ............. ...