THE WELCH COMPANY
440 Davis Court #1602
San Francisco, CA 94111-2496
415 781 5700
rodwelch@pacbell.net


S U M M A R Y


DIARY: October 16, 2002 11:58 AM Wednesday; Rod Welch

SDS add feature to underline headings F1 F1 F5.

1...Summary/Objective
2...000008 F1 F1 F5 Underline Headlines
3...Underline Headline F1 F1 F5 for Editor and SDS
4...0504040 Menu Update to Show New Underline Feature in Editor
5...0504050 Menu Update to Show New Underline Feature in SDS
6...Other Programs Launch from Within SDS Like Word and Excel

ACTION ITEMS.................. Click here to comment!

1...Need to update Help for new feature to underline headings.

CONTACTS 

SUBJECTS
Headlines Underline F1 F1 F5 Macro 128 in 000008
Underline Headlines Suggested by Gary Johnson, Assigned to F1 F1 F3 a
F07 Double Underline Heading Macro 128 in 000008
F08 Original Source 0001 Anchor
Headings Underline F1 F1 F5 Macro 128 in 000008

1407 -
1407 -    ..
1408 - Summary/Objective
1409 -
140901 - Follow up ref SDS 22 0000, ref SDS 17 0000.
140902 -
140903 - Yesterday, Gary suggested creating a line draw function to underline
140904 - headlines, rather than use the line draw tools used for creating
140905 - custom lines and boxes.  Today, created two new functions:  one for
140906 - single line underline, and another for double underlined headings.
140907 - ref SDS 0 KV9O  Added options in Edit menu for the Editor and for SDS.
140908 - ref SDS 0 Q76I  Gary also discussed a procedure for calling Microsoft
140909 - Windows applications from within SDS using dose. ref SDS 0 UZ6G Had
140910 - initial difficulty getting Windows "start" command to work with dose
140911 - in Medit, ref SDS 0 U1PT, but over the ensuing period research on the
140912 - Internet disclosed information that seems to show how to make this
140913 - feature useful for SDS currently, ref SDS 0 EZ3N, as well as provide
140914 - the environment for Gary's ideas.
140915 -
140916 -    [On 021022 notified Gary about this improvement. ref SDS 25 52YS
140917 -
140918 -
140919 -
140920 -
140922 -  ..
1410 -
1411 -
1412 - Progress
1413 -
141301 - 000008  F1 F1 F5 Underline Headlines
141302 - Underline Headline F1 F1 F5 for Editor and SDS
141303 -
141304 - Follow up ref SDS 22 KV9O, ref SDS 17 4WR3.
141305 -
141306 - Gary Johnson suggests a new function to underline a headline, reported
141307 - in his record on 021213. ref SDS 23 0001
141309 -  ..
141310 - Line 710, ref OF 3 5X4N, -entry 156 in 000008 about 50 lines below,
141311 - changed assignment of functions for F5 anf F7 in the 3rd profile
141312 - level...
141313 -
141314 -      F1 F1 F5...... call macro 1281  for single line underlines
141315 -      F1 F1 F7...... call macro 1282 for double line underlines
141317 -  ..
141318 - We use both single and double underlines in the Editor for coding SDS.
141319 - We typically do not use double underlines in SDS for anything, except
141320 - occassionally to create a box or something.  There is a little danger
141321 - that someone one might substitute a double underline for a headline.
141322 - This will crash us because SDS is programed to treat single lines as
141323 - identifying headlines for purposes of processing stuff.
141325 -  ..
141326 - Formerly, I had made F1 F1 F5 a return to mark in SDS for the doc log
141327 - format operation created by F1 F5  Turned I never used it, and
141328 - actually changed the code for F1 F5 to enter Mark 3, so we can use
141329 - return to mark 3, Shift F3, which is a more common occurrance.  This
141330 - synchronizes complementary functions a little bit by placing them in
141331 - adjacent keys, with F7 below F5.  We could make F1 F1 F6 the double
141332 - underline, but this is already assigned to a bullet, and that is used
141333 - quite a bit.
141335 -  ..
141336 - Formerly, F1 F1 F7 had been an HTML format for entering the address of
141337 - an original source for an Internet page.  I changed this to F1 F1 F8,
141338 - which doesn't take any longer to execute.
141340 -  ..
141341 - Line 790, ref OF 3 409H, -entry 1282 in 000008
141342 -
141343 -    setcnt 138 205
141344 -
141345 -       Set the control for the line draw op under macro 1281 to enter
141346 -       a double underline.
141348 -        ..
141349 -       Processing then passes to macro 1281.
141350 -
141352 -  ..
141353 - Line 790, ref OF 3 T34K, -entry 1281 in 000008
141354 -
141355 -    macro 152
141356 -
141357 -       Resets the profile to level 1.
141358 -
141359 -    -if @47 > 2 errormsg Underline not availble
141360 -
141361 -       Any system above SDS will kick out, do not see need at this
141362 -       time, and don't want to mess anything up.
141364 -     ..
141365 -    eol
141366 -    setcur 1 0
141367 -    subcnt 1 @2
141368 -    setcnt 132 @1
141369 -
141370 -       Normally, the cursor will be at the end of the line. This code
141371 -       allows user to create a line, maybe edit it, and later add an
141372 -       underline when the cursor is anywhere on the line. Move to the
141373 -       end of the line and capture the cursor column position in
141374 -       counter 132.
141376 -     ..
141377 -    -if @47 = 1 -if @2 = 0 -if @1 = 0 -exit
141378 -
141379 -       If the file is offset, exit, so can only use this function
141380 -       between columns 1 and 79
141382 -     ..
141383 -    -if @47 = 2 -if @2 = 0 -if @1 < 10 -exit
141384 -
141385 -       If this is SDS, and line length is less that the left margin of
141386 -       10, exit.
141388 -  ..
141389 - Line 810, ref OF 3 X15L, -entry 128 in 000008 about 30 lines below
141390 -
141391 -    macro 54
141392 -    subcnt 132 @20
141393 -
141394 -       Put the cursor on the left margin, and compute line length based
141395 -       on counter 20 set in macro 54.
141397 -     ..
141398 -    macro 22
141399 -
141400 -       Save this position to put the cursor at the beginning of a
141401 -       headline, rather than wind up at the end, or somewhere else.
141403 -     ..
141404 -    up
141405 -       ..
141406 -       Scroll up to remove any existing underline, and to split
141407 -       any text at the left margin, so there is a blank line to enter
141408 -       the new underline.
141409 -
141411 -  ..
141412 - Line 810, ref OF 3 K46O, -entry 1281 in 000008 about 20 lines below
141413 -
141414 -    chrcnt 1 0
141415 -    -if @1 > 195 immed d
141416 -
141417 -       If the character below the beginning of the target line is a
141418 -       line draw, then delete the line to replace it with the new one.
141420 -          ..
141421 -         [On 021023 Gary Johnson suggested this improvement.  Notified
141422 -         Gary and submitted modified program. ref SDS 26 52YS
141424 -     ..
141425 -    macro 34
141426 -
141427 -       Split the current line to create a blank line for entering the
141428 -       new underline.
141430 -     ..
141431 -    setcnt 93 0
141432 -       ..
141433 -       Start control for the op at 0.
141435 -  ..
141436 - Line 840, ref OF 3 Q94G, -label lpi196 in 000008
141437 -
141438 -    -if @138 != 205 setcnt 138 196
141439 -
141440 -    -label lpi196
141441 -    ic @138
141442 -    addcnt 93 1
141443 -    -if @93 < @132 -goto lpi196
141444 -
141445 -       If the User did not use F1 F1 F7 that calls macro 1282 to set
141446 -       138 205, the double line character, then set 138 to 196 for
141447 -       single line, because it means the User used F1 F1 F5 for single
141448 -       line underline.
141450 -        ..
141451 -       Use insert cursor to enter a line draw chara for the value in
141452 -       counter 138 so it will enter either a single or double line
141453 -       character depending upon whether the user hit F1 F1 F5 or F1 F1
141454 -       F7, and it will repeat this for the number of times computer for
141455 -       the length of the headline.
141457 -  ..
141458 - Line 840, ref OF 3 PXRT, -label lpi196 in 000008
141459 -
141460 -    rel_cur -1 0
141461 -    chrcnt 1 0
141462 -    rel_cur 1 0
141463 -
141464 -       For some reason this algorithm works differently by one column
141465 -       if the line starts on column 1, rather than another column, so
141466 -       at the end of the line, check the postion above to see if there
141467 -       is a character, or if the position is not a space enter the
141468 -       appropriate line draw character for the function selected.
141469 -
141470 -    -if @1 > 32 ic @138
141471 -
141472 -       If the position above is no a space, enter a line draw char.
141474 -     ..
141475 -    macro 23
141476 -    -exit
141477 -
141478 -       Restore the cursor to the beginning of the headline and exit.
141479 -
141480 -
141481 -
141482 -
141483 -
141484 -
141485 -
1415 -

SUBJECTS
Underline Headings, F1 F1 F5, Macro 128 in 000008

1603 -
160401 -  ..
160402 - 0504040 Menu Update to Show New Underline Feature in Editor
160403 -
160404 -
160405 - Line 150, ref OF 1 J96J, -label editJ in 050404 about 60 lines below
160406 -
160407 -     ins_text "º Single Line Headings.........F1 F1 F5 º"
160408 -     ins_text "º Double Line Headings.........F1 F1 F7 º"
160410 -        ..
160411 -       Added calls in the Editor menu for single and double line draw
160412 -       functions to underline headings, per above change in profile.
160413 -       ref SDS 0 KV9O
160415 -        ..
160416 -       Need to update Help for new feature to underline headings.
160417 -
160419 -  ..
160420 - 0504050 Menu Update to Show New Underline Feature in SDS
160421 -
160422 -
160423 - Line 150, ref OF 2 D16H, -label editJ in 0504050 about 60 lines below
160424 -
160425 -       Same change to SDS Edit menu.  People need to be alerted that
160426 -       double underlines are not recognized in for processing, except
160427 -       for underlining the descriptions of subjects in the Control
160428 -       Field, and this underline is maintained by SDS.  Only single
160429 -       lines are recognized for headlines in SDS, per above.
160430 -       ref SDS 0 MA5S
160431 -
160432 -
160433 -
160434 -
160435 -
1605 -

SUBJECTS
Launch Other Programs from Within SDS Using Windows Start Command
Start Other Programs from Within SDS Using Windows Start Command
Start Windows Command Launches Other Programs Called with DOSE /C Ope
Start Command Launches Separate Session Used with CMD Command
CMD /C Exit Needed in Batch File
Instructions to Use Start with CMD and DOS Batch Files
Start CMD DOS Batch Can Save Memory by Opening Separate Window
Start Windows Command Save Memory Run SDS in Separate Sessions
Johnson, Gary Start Windows Command Save Memory Run SDS in Separate S

3211 -
321201 -  ..
321202 - Other Programs Launch from Within SDS Like Word and Excel
321203 -
321204 - Follow up ref SDS 21 N28N, ref SDS 9 0001.
321205 -
321206 - Yesterday, Gary explained an idea, or success he has had implementing
321207 - a procedure, for launching Microsoft Word and other programs using the
321208 - dose command.  The command sequence he seemed to relate is...
321209 -
321211 -              ..
321212 -             dose /c start tst1.doc
321213 -
321214 -
321215 - ...and indicates this will open a separate session of Word for opening
321216 - the file tst1.doc.  If this can be effectively implemented by SDS,
321217 - there would be progress on Gary's letter asking about opening files
321218 - for other programs, reported on 011222. ref SDS 21 N28N
321219 -
321220 -      [On 021016 in another record, review Gary's ideas for improving
321221 -      SDS lists this type of capability. ref SDS 24 0E6G
321223 -       ..
321224 -      [On 021120 Gary submitted list of functionality for new version
321225 -      of SDS. ref SDS 27 VJ6N
321227 -       ..
321228 -      [On 021228 Gary requests menu to call op that launches other
321229 -      programs. ref SDS 28 0001
321231 -       ..
321232 -      [On 031022 developed this new feature for SDS. ref SDS 30 0001
321234 -  ..
321235 - I tried this and so far have not gotten the command to launch Windows.
321236 - Was able to use dose, then manually enter...
321237 -
321238 -
321239 -           C>start tst1.doc
321240 -
321241 -
321242 - ...and this ran Windows.  Seems like if one works, so should the
321243 - other.
321245 -  ..
321246 - Maybe Gary can offer guidance.
321247 -
321248 -     [On 030106 made progress on this. ref SDS 29 PQSU
321249 -
321250 -
321251 -
321252 -
321253 -
321254 -
321255 -
321256 -
321257 -
321258 -
321259 -
3213 -