Search found 50 matches

by MattC
Sun 21 Jul 2019, 20:56
Forum: BBC BASIC language
Topic: Task Tray App Display
Replies: 0
Views: 18

Task Tray App Display

Hi.

I've got a program that sits on the desktop running all the time, and the app is displayed in the task tray. Is there a way to hide the task in the task band, but still have the program visible?

Matt
by MattC
Fri 14 Jun 2019, 18:07
Forum: BBC BASIC language
Topic: Focus Handle of Multiwin Output Window
Replies: 2
Views: 800

Re: Focus Handle of Multiwin Output Window

I tried so many variations of different things that I may have just overlooked 'GetForegroundWindow'. Thanks.

I would be surprised if BB4W got confused with hwnd% and @hwnd%. Particularly as @... is a system variable. But I will investigate what you have brought up.

Thanks.

Matt
by MattC
Thu 06 Jun 2019, 18:04
Forum: BBC BASIC language
Topic: GUID Routine
Replies: 3
Views: 480

Re: GUID Routine

Thanks DDRM. Yes, that's helpful. I hadn't considered where the variables were being stored, just that I assumed they would be released. That's one of the problems of taking a piece of code and shoving it into a program without carefully looking through. The GUID is mainly used for an random code wi...
by MattC
Thu 06 Jun 2019, 06:39
Forum: BBC BASIC language
Topic: GUID Routine
Replies: 3
Views: 480

GUID Routine

Hi. I've been using a GUID (Global Unique Identifier) routine, which came from Wiki. REM Creates Global Unique Identifier name DEF FNguid LOCAL guid{}, guidw%, guida% SYS "LoadLibrary", "OLE32.DLL" TO ole32% SYS "GetProcAddress", ole32%, "CoCreateGuid" TO CoCreateGuid% SYS "GetProcAddress", ole32%, ...
by MattC
Wed 05 Jun 2019, 17:58
Forum: BBC BASIC language
Topic: Program Not Closing ON CLOSE
Replies: 8
Views: 1080

Re: Program Not Closing ON CLOSE

This is a very useful piece of information, and the added code works great.

Svein, thanks.

Matt
by MattC
Tue 04 Jun 2019, 19:51
Forum: BBC BASIC language
Topic: Program Not Closing ON CLOSE
Replies: 8
Views: 1080

Re: Program Not Closing ON CLOSE

Cheers. I'll investigate this. One of my thoughts was to add wait statements to various points and it seemed to have little effect. However, I'll try again.

Matt
by MattC
Tue 04 Jun 2019, 19:49
Forum: BBC BASIC language
Topic: SystemParametersInfoA
Replies: 5
Views: 810

Re: SystemParametersInfoA

Thanks Svein.

Implementing this change into my program does sort this problem out. However, it seems to introduce another one, which I will have to investigate further. Thanks again for your advice.

Matt
by MattC
Tue 04 Jun 2019, 05:34
Forum: BBC BASIC language
Topic: Program Not Closing ON CLOSE
Replies: 8
Views: 1080

Re: Program Not Closing ON CLOSE

Thanks Zaphod. My understanding of the help for MOUSE and ON MOUSE is that ON MOUSE is an alternative rather than a necessary part of MOUSE. It's possible that using the ON MOUSE command might sort my problem out, but it would mean a heck of a lot of changes to my code. I'd be interesting to know, t...
by MattC
Sat 01 Jun 2019, 19:24
Forum: BBC BASIC language
Topic: Program Not Closing ON CLOSE
Replies: 8
Views: 1080

Re: Program Not Closing ON CLOSE

OK. That's interesting. :?

I've only got the one computer to try it on, so I'd be interested if anyone else has tried it, and what results they have. I retried it after a reboot and came up with the same result as before.

Matt
by MattC
Sat 01 Jun 2019, 06:30
Forum: BBC BASIC language
Topic: Program Not Closing ON CLOSE
Replies: 8
Views: 1080

Program Not Closing ON CLOSE

Hi. This one's got me stumped. The following bit of code is an adaptation from a part of my program. Ignore the fact that DP% is always set to -1, as this is a normal posibility of the removed code. When the window is clicked on the loop runs to the error message. When the window 'X' close button is...