OS/2, eCS & ArcaOS - Technical > Programming
DOSBox-x - infinite loop in configure/make
Jochen Schäfer:
--- Quote from: Jochen Schäfer on April 19, 2025, 02:53:50 pm ---Hi guys.
I'm getting through the open issues very well. I think, I can release a test build soon.
But I have some open issues, for which I couldn't find documentation:
* Is it possible to use WinFileDlg to select a directory? I can filter directories, but I can't select them.
* Can I manipulate the style values of a dialog control at runtime, eg. in WM_INITDLG?
* The API documentation alludes to being able to build a dialog description in memory via DLGTEMPLATE and DLGITEM structures, but doesn't show how nor documents the structures at all. Does someone know some sample code for this process?
* Can someone recommend some documentation or development books for OS/2 console programming?
* Optional: Do we have a color chooser dialog (I know nothing official), or some code how to do it? Or, would it suffice to enter the code as a string with the hex code pattern '#RRGGBB'?
If someone has some answers or pointers for frther investigations, it would help for this port.
--- End quote ---
Pete:
Hi Jochen
I'm not a "c" programmer but looking through pm2.inf (from os/2 toolkit) it looks like you can set the initial directory in the FILEDLG structure:-
char pszFullFile[CCHMAXPATH] = "*.C"; /* File filter string */
I would change the above to the following to see if it works
char pszFullFile[CCHMAXPATH] = "Drive:\Path\*.*"; /*Set to required Drive:\Path */
eg:
char pszFullFile[CCHMAXPATH] = "C:\Programs\*.*";
Regards
Pete
Neil Waldhauer:
In the FILEDLG structure, set the usDlgId member to IDDLG_DIRECTORY to get a dialog that can select directories.
Jochen Schäfer:
--- Quote from: Neil Waldhauer on April 19, 2025, 04:09:04 pm ---In the FILEDLG structure, set the usDlgId member to IDDLG_DIRECTORY to get a dialog that can select directories.
--- End quote ---
Thanks, that's what I needed. I will try it in a few days.
Jochen Schäfer:
--- Quote from: Jochen Schäfer on April 19, 2025, 10:52:54 pm ---
--- Quote from: Neil Waldhauer on April 19, 2025, 04:09:04 pm ---In the FILEDLG structure, set the usDlgId member to IDDLG_DIRECTORY to get a dialog that can select directories.
--- End quote ---
Thanks, that's what I needed. I will try it in a few days.
--- End quote ---
Hi, Neil.
Can you tell me the value of IDDLG_DIRECTORY? I can't find it in the OS/2 toolkit or the EMX headers.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version