VOGONS

Common searches


First post, by emendelson

User metadata
Rank Oldbie
Rank
Oldbie

Here is a patch that adds a few items to the DOSBox Windows system menu (the menu that opens when you click the icon at the upper left of the DOSBox window). It's designed to be applied to current SVN (r3981, updated today). As in the clipboard-paste patch that I posted earlier, the code is NOT my work; I wouldn't know how to begin writing something like this. All I did was finally figure out how to make a patch that applies this feature to SVN. Everything in it is taken from the code for dbDOS 3.0, a commercial offshoot of DOSBox, written by a contract programmer whose name seems to be Olivier Hamel.

The patch only affects sdlmain.cpp. As you can see from the code, when applied to current SVN, it adds three items to the system menu, and these are meant as examples of what a non-programmer like myself can do. One item switches from windowed to full-screen mode by using the same routine used by Alt-Enter. Another item opens an About box which of course can give any information. A third item opens the dosbox.com website; the same technique can be used to open any application or file in Windows from the DOSBox system menu.

I hope I've put together the diff correctly. I don't actually know what I'm doing, but the code certainly works and I hope the diff is useful to someone. It's a small return for all the help I've had here over the years.

Attachments

  • Filename
    sysmenu.diff
    File size
    3.16 KiB
    Downloads
    107 downloads
    File license
    Fair use/fair dealing exception

Reply 1 of 1, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

moved to patches!

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper