| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | idea for program |
PF> Here's a good idea for someone that knows their way around native WPS
PF> objects.
PF> Subclass wpProgram. Add a settings page to all programs called
PF> "Environment", where a specific PATH and LIBPATH (and optional env
PF> vars) can be set. Everything but LIBPATH is a simple env var that
PF> needs to be set when the program is launched; LIBPATH must be set
PF> with the new api DosSetExtLibpath().
I decided to take the bait and this is what I have after two evenings coding:
- a subclassed WPProgram object which has a new settings page for the
environment info.
- I know how to obtain the program details (PROGDETAILS structure and
wpProgDetails method).
- when program is launched, a hard-coded "dummy" environment
variable is set (using wpSetProgDetails).
However, there are some things that I don't know how to handle or how they
should be implemented:
- when a DOS session object has it's settings altered (e.g. DOS_HIGH=1) and
the object type is changed to OS/2 session, the environment info is set to
null. By default an OS/2 session object has a null environment settings.
- using wpSetProgDetails seems to have no effect when a DOS session object
is launched.
- how the info written in the "Environment" page should be saved?
When another notebook page is selected, I don't know which method is called
(I tried to catch the BKN_PAGESELECTED notification message in my dialog
proc but none was sent).
I think the "Environment" page must have a "Save"
button which saves the environment info in an INI file and when wpOpen
method is called it reads the info from there (wpOpen is called when either
Settings is opened or the program is launched).
// Albert (Team OS/2) email: jla{at}to.icl.fi
--- GoldED/2 2.50
* Origin: Finland, Ice Hockey World Champion '95 (2:221/360.20)SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 517 628 713/888 800/1 7877/2809 @PATH: 221/360 0 220/841 201/2104 109/347 716 13/25 396/1 270/101 712/515 @PATH: 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.