Dec 142017
Windows 3.x menu program caller chez Otto. Includes TPW source code.
File CO39.ZIP from The Programmer’s Corner in
Category Windows 3.X Files
Windows 3.x menu program caller chez Otto. Includes TPW source code.
File Name File Size Zip Size Zip Type
BITMAP.PAS 6916 2358 deflated
BUTTONS.PAS 11916 3461 deflated
CO.EXE 116224 33923 deflated
CO.INI 1304 476 deflated
CO.PAS 42170 10013 deflated
CO.RES 33183 5454 deflated
CO.WRI 44928 18670 deflated
COLOGO.BMP 11518 1251 deflated
FILECOPY.PAS 13118 3472 deflated
FILECOPY.RES 1040 342 deflated
PAGE1.ICO 766 193 deflated
PAGE2.ICO 766 184 deflated
PAGE3.ICO 766 152 deflated
PAGE4.ICO 766 241 deflated
SCLPTEXT.PAS 4875 1289 deflated
WFPLUS.PAS 4769 1306 deflated

Download File CO39.ZIP Here

Contents of the CO.WRI file

1%R[[\]^_Chez Otto 3.9 - A Windows Menu System

Provide quick access to a large number of programs and utilities under Windows 3.1 using a combination of icons and radio buttons. This is a menu system with limited file management capabilities.

Windows 3.1.

Copy the program file CO.EXE and sample logo COLOGO.BMP to any directory you wish. If this is your first outing with CO, copy the sample CO.INI to your main windows directory - this will give you some sample program items when you fire up CO for the first time. If you have been using a previous verion of Otto, rename your OM.INI file to CO.INI. You may also wish to copy the icon files (.ICO) to whereever you placed CO.EXE.
Launch CO.EXE from the program manager, the file manager, or include it in the run= or load= line of your win.ini file.

Using Chez Otto
COcomes with slots for 10 iconic buttons across the top of the display window, a second row of 5 preconfigured buttons underneath, a center box of 20 configurable radio buttons, and 4 page icons along the bottom of the window. At the center - left is space for a logo of your choice.

Use the top row of icons to access various Windows and DOS programs. You can configure the icons to launch any programs you wish. If you use the sample CO.ini file included with file, the first and second icons will launch the Program manager and File manager respectively along with other standard Window's utilities. You can configure the icons to launch DOS applications too - and associate an icon file with the DOS application. More on that later.

The second row of 5 icons represent preset functions:

UUURUUHT^SU,EVVjLj!VRUT\Z!%QZHlHk2^@("*B"j6a-"ETmCUB"jI[-PrHlLV;Gl!*BT{7(JA[Pj2pTL[h mhRj6?Zl`m1"IU(R`L[@<@]un`m04mUUbT`[HU)+Jj`Hm+UU!tT`[Z]DX&SBj`[email protected]#VTlL{ Mj)TUUUUHUZHUUSJuvjUQEZU)j)UUUUHUUkZmkZUUUP
[email protected]*$$$$$$$$$$$$$$$$$$$$$$
* DOS prompt
* Run a program dialog
* See free drive space
* Copy,move, erase files
* Exit! Windows

To activate a function or program, just press the button.

The text box on the right displays either free memory or the current video mode.

(UVUUUUUUUUUUUmET"!UHDJTIQP*Q**{}wz~wn]]^~}vUmz]Zg2{q8(Xnj{2JcQrKWc^\D1w1D(UQ!,LVs*uQiG~:2Hf?R<:jovLTc)j The memory display lists the free Global memory , %Free of User Segment , and % Free of GDI segment memory. The display is regularly updated 30 seconds or so. It is also recomputed whenever you click a page icon along the bottom of the window. To switch between memory and video mode displays, just click the sculpted box with the right mouse button.

The middle of the window contains 20 radio buttons which launch Windows and DOS programs, or batch files. You will need to configure these items to suit your own needs.

%00~0(00 l$%ddm,,-le%el,e$l$,ve4e%f$d6%$edfKCcJKjfffSVj[email protected]dtl]wWw$`_]U]omwUWU]WTwU_wUUw]UW_VwUW]WH~wwhdUUw]UUWwUWu]W$zwzuwW~UUwnUUW{Uk^]]Wl=jUoj]wl`7^PP:0cwzUUW{]o$Bf^u_}]u_W_U}[{[email protected]{ow~UUW_`dwr$cj}WWU_wws,^f&WwvwU}UW_{BfFWUWkV_wrl.p oWWwu_wUWd`{]^zW~WzwzS./UWwu_}wU{]PwW_{wyHnWUWwuWw}Qd;W]UW]wrdoU_WwzwU}_5W]U~w]wrlUWw~~d`*}]_U_wzW}uZw]*}UWy_H~u^w_u}hd*^}_{wr$J_uwW{zU}U]_}~oUwswlw_uw?U}e`U_n&W}~QC*{zo{wQeuw^K?}*ExX+}^ktU~_{HoF"!3>w}kdUWUp3b}sP_s%_lF#x>ut\}_*bq+}mqU[_slfS31>]u{m_\Y~`UURxhh+}U:RpUwU[{d]z]_][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wwwwwzU}U}U}U}U}U}U}U}U}U}U}U}U}USlWwwwwwwwwwwwwwwod`~U_U_U_U_U_U_U_U_U_U_U_U_U_U[R+wwwwwwwwwwwwww{~HUuuuuuuuuuuuuuuhd&uzuzuzuzuzuzuzuzuzuzuzuzuzuzuzlWf`vWvWvWvWvWvWvWvWvWvWvWvWvWvWvHwwwwwwwwwwwwwwwH}}}}}}}}}}}}}}wHdmmmmmmmmmmmmmmm6ogfCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCJJFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFKe55555555555555555555555555555555555555555555557
The page icons at the bottom let you access additional 'pages' of 20 items. There are 4 pages for a total of 80 possible program items. You can use the default 'page' icons supplied with OTTO.EXE or create your own. Here's a sample set I use:

*UkkUUUZT+j5\T-Rj Z{Q*EUT**lVUTj*2:T%ZWUT4RjU,XBV[BVTRP1Ui*f*uXVjTS>zl%ZT a(#[email protected][UNjx*eYzV*_Uj(y2*ISjjT*[uZRUi*+JSU[ZjTSTJVURUT(A-z*
[email protected]+uP%jUJ*U*ASUZTmj*Ut$*UWRI U{$I*UUOh*QZHPYIkUUSj"I*RPJUU-UUzjuh,)!UUvR+mzm[mh(DUUUuUUURR))
Configuring Chez Otto
CO lets you configure its various apects by setting the 'properties' of visible items on the screen. In general there are two ways to set these properties:

* you can click on the item with the right mouse button to activate a properties dialog, or (where it makes sense)
* you can drag a file from the file manager window and 'drop' it on the item you wish to set.

Using the Properties Dialog:
Click on the item you wish to set with the right mouse button to activate the properties dialog. What can you set? -- well, just about everything you see in the Chez Otto window will respond to a right mouse button click. Here's what you can configure:

* 10 program icons along top
* Program radio buttons (20 for each page)
* DOS shell icon to specify dos shell program (, 4DOS, or whatever)
* Background color (try the custom color dialog for fun)
* Center logo (must be a .BMP file.)
* Sculpted text display - memory or video mode display
* Autoiconize option (click the chez Otto title bar!)
* Text fonts (click the title bar & choose Fonts)
* Page Text (click a page icon in lower left corner and change "Name" entry)
* Page Icon (click a page icon in lower left corner and change "File" entry)

To set up program items right-click an icon or radio button, and answer the entries in the properties box. You'll see a dialog box with five fields for entry .

6X?,(6 @@ [email protected] D [email protected] @ [email protected]@@@ @ [@J& [email protected]@@@@8B x|[email protected] " 9B AAAAAx [email protected](j ! [email protected] [email protected] """"""""""""""""X $ ?as339393??????p??333?033333333?3333s3s33x~333>30>33333333>38~L~s~ya>y~|~y~y~y~y~s`><<Q
If an entry already exists for an item, the remaining fields will be filled with the existing data. In the Name field, enter the text you want displayed next to the radio button. Brevity is needed - no more than 20 characters. In File and Start Dir enter respectively the filename of the program and the starting directory. If the .exe file is in the path, you can omit the path, otherwise give the complete pathname in the File box. The Start Dir is optional - CO will change to the Start Dir just before launching the program if you supply one. In Params enter any parameters you wish to pass to the program such as a filename or command switch. These depend upon the particular application you are using. The Start As entry lets you request that the application start normal, maximized, or iconized. Whether this actually happens depends upon the application - it can choose to honor the request or not! AutoStart will have CO automatically launch this application as part of its own startup.

Browsing for applications - If you click the Browse Button, a file dialog box opens that lets you navigate the disk and locate the program file you wish to use. After you find it and select it, choose OK, and the full pathname will be entered into the File field (as well as a Name entry based on the filename). You may want to change the Name field, but this is a quick way to find an application without memorizing the pathname.

Path Considerations: Although OTTO lets you specify a full pathname for the program file and a different starting directory, your application may not support that arrangement. Typically, programs that use link libraries need to be either in the DOS path (before Windows starts) or start in the directory that contains the link libraries. Under Windows 3.1 this requirement is mostly overcome - you may need to experiment however. To accommodate this, change the path or make sure that the Start Dir entry is set to the directory containing the program and link libraries.

Using Drag&Drop:
The icons, radio buttons, and the logo can also be configured using drag and drop. For this magic to work you need to have the Win 3.1 file manager running. To configure an item, find the file in question in File Manager, click and drag the 'filename' from the File Manager window, and drop it on the target item in CO. CO will use the full pathname of the dropped file, construct a program item name from the root name, and store the info in your configuration file. If you 'dropped' on an icon button, the button will redraw to reflect the new program; if you reconfigured a radio button, the text will change to the new program name. If you drop on the logo, the new bitmap image will be drawn.

If you need to set the starting directory, change the program item name, or any other property, use the right-click method to bring up the properties box.

CO will display a logo of your choice to the left of the program item radio buttons. The maximum visible area is approximately 175 by 175 pixels. If you configure a larger bitmap, it will be clipped on the right and bottom sides to 175 by 175. Since it takes time to load the image when CO starts up, you might want to limit your bitmap to approximately this size to minimize the delay.

CO can read only Win 3.0 (and 3.1) compatible .BMP files. It supports 2, 16, and 256 color bitmaps. OTTO looks for a default filename of COLOGO.BMP in the startup directory.

How can I create my own Logo? There are many options here. Take your favorite wallpaper file, edit it using PaintBrush to the size you want, and you're ready to roll. Since PaintBrush also reads .PCX files, you can do the same with those too - just remember to save the file in .BMP format. If you use WINGIF, ShowGIF, PanitShop , or DODOT (among others), you can convert .GIF files to the .BMP format and perform your artistry. AND, of course, you can draw your own from scratch using PaintBrush, Corel Draw, Arts & Letters, or Designer. In the end, of course, you must produce a .BMP file - ideally one that is about 150 by 150 pixels. Take a look at the sample COlogo.bmp file using PaintBrush - and get to work on your own creation.!
tip: set the background color of your logo to some color other than white - e.g. gray or black

Iconic Buttons & DOS Programs:
The top row of 10 iconic buttons build their image from the icons stored in the program files. If you configure a button to run a DOS program (.exe,.com, .bat, .pif) Chez Otto will look for an .ICO file with the same root name and path, read the icon file, and display the image on the button surface. For example, if you run Paradox from the C:\pdox35\paradox.exe directory, Otto will look for c:\pdox35\paradox.ico when it starts up. On the other hand, if you start Paradox using the PIF file d:\windows\pdox.pif, then CO will look for d:\windows\pdox.ico. Under this scheme you should follow these conventions:

* Always supply a full path for the 'DOS' program file
* Use only 16 color 32 by 32 bit icons (the usual)
* Only one icon per .ICO file

DOS Icon
This icon starts up a DOS window. If you wish to specify the command shell program ( or 4DOS, for example) or the starting directory, use the right-mouse button to set the 'program' name to whatever shell you wish. The default is

Run Icon
The 'tennis shoe' icon lets you interactively run programs on an ad-hoc basis. You'll get a file dialog box which you can use to locate the program file. Select the program, click OK, and wait for the program to initialize.

Disk Dive Icon
The Disk icon puts up a dialog box giving the total and free disk space for all hard drives on your system. This can take a couple of seconds, so don't panic.

Floppy Icon:
Click this icon to launch the CO file utility. You select a source file or files and a target directory using dialog boxes. Then click Copy, Move, or Del to copy, move, or delete the Src files. Copy and Move do not check for overwrites so be forwarned! As a safety check you must reselect the source and target directories for each action. For deletes, however, it is only necessary to select the source files.
You can make multiple file selections by dragging the cursor within the file list box. You can select several ranges of files by holding down Ctrl and dragging the mouse.

Page Text & Icons:
CO supplies 4 default icons to represent the 'pages' of the menu. You can change these icons if desired by setting the properties of the icon. If you right click the icon in question, and set the 'file' option to a .ICO icon file, CO will use that icon. If you set the 'name' field CO will display that text in the sculpted box above the radio buttons. See the discussion above re suitable formats for .ICO files.

Text Fonts:
Right clicking the CO title bar and choosing 'SetFont' puts up a font selection dialog. Whatever you choose will be used to display the text in CO. I've found that TrueType fonts generally display better than ATM ones if you choose a decorative typeface such as Architect.

Custom Configuration Files
CO uses a default configuration file, CO.INI, located in your main Windows directory. This file contains all the properties and choices which you have setup. It can become fairly large, as CO supports 90 configurable program items as well as several other properties - all of which are stored in this file. Make sure you back up this file occasionally so that you don't have to rebuild your menu system from scratch if it becomes damaged. If you wish to use an alternate configuration file, just specify it on the command line that startsup up CO(e.g. om.exe c:\sc\doug.ini would start CO using the configuration file doug.ini in c:\sc). This way you can have several versions of CO tailored to various users needs.

The class libraries used by chez Otto are incompatible with the "Launch" feature of the original 1.0 release of Norton Desktop for Windows. A revised verion of NDW is available from Symantec. CO is written in Turbo Pascal for Windows - earlier verions were in C and Openscript. The various iconic buttons build their images from the disk when COstarts up - there's some overhead involved which translates to a few seconds wait. chez Otto was previously known as Ottomenu - that name has been dropped to avoid confusion with the similar sounding Automenu. Please do not distribute any of the prior versions of chez Otto. My favorite cat was named Otto.

Chez Otto is a copyrighted work of Doug Overmyer, San Pedro Graphics. He reserves all rights to the work, but grants to individuals a license to use it freely outside of a commercial or institutional setting. You can pass on copies of this program so long as you include this document file and the original program file.

Source Code:
The full source code is provided for whomever it may prove useful. I have learned much from studying other's code; perhaps some will find mine useful.

Chez Otto comes with no warranties. You use it entirely at your own risk. It may or may not be suitable for your setup and needs.

Many thanks to Nat Johnson and Nord-Jan Vemeer for their suggestions and testing of Otto.

Comments, Problems
Please drop me a note on Compuserve at 71021,2535 or IP: [email protected]

Doug Overmyer. 8/08/92 n
The Disk icon puts up a dialog box giving the total and free disk space for all hard driwso}kgc_[X,CTEEQR>_O^E)Kw%sokgc`\XTPR>_Owsokgc_[$W%STPR>_O


[email protected]~W==Bi

 December 14, 2017  Add comments

Leave a Reply