[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Bits 'o business



Anyone know if it's possible to add a custom dropdown menu to the
XyWin menu bar? I'm familiar with creating custom buttons --
though haven't as yet found if such a button can be activated via
hotkey but I'm specifically curious about creating a custom menu
selection for the menu bar. There is ample blank space on the
menu bar for additions and I'd like to create a drop down menu
for my custom stuff infrequently used, thus the menu could
immediately bring that to the fore.

Since there is zilch, a.k.a. ungotz, in the documentation
pertaining to core customizing, as well as XPL (it's an anemic
package with no assistance for programming XyWin), I've been
poking around in various files but haven't quite traced the trail
of a menu bar offering so that I could try to duplicate it for
something custom. It might all be in XWDLG.DLG (which is
modifiable and looks to me to be akin in nature to XY.HLP in
III+) but I haven't zeroed in on anything specific yet. OTOH,
maybe it's just not possible to add a custom menu selection to
the menu bar, or for that matter, add to an existing drop down
menu (I wouldn't be averse to creating a menu within the Advanced
menu bar selection I'd title My Stuff that points to a submenu of
whatever I wish to put under My Stuff, but I would much prefer to
create an Alt-whatever custom menu selection for the menu bar
itself).

I don't feel like spending time on a goose chase if it's not
possible (however, I'd like something to do while watching the
Stupor Bowl tomorrow) and was wondering if anyone knows about
this. Thanks.

(To TTG techs, don't all hurry to reply. One helpful response
from the tech pool will suffice. )

On another note, regarding SMARTSET.U2, when I start XyWin I
default via .INT file to have my Xy window at maximum, thus in
XYSTART.INT:

  MW mx

where MW is a bolded function call for 'M'icrosoft 'W'indows and
mx is its text parameter to start XyWin with maximum window (not
to be confused with Maximum View which is literally the entire
screen save for just a filename title bar, and unwanted page
break lines a la Draft View Sometimes, Sometimes Not mode).

So when I use SMARTSET's Help facility to get help regarding a
routine, e.g.,

  CMline: help deadline 

XyWin is thrown into cascading windows, the respective help info
is displayed in a cut window, and when I hit Esc I'm back to my
document. However, XyWin remains in cascading windows display
rather than returning to maximized. I have to click the up
triangle (or click open the ctrl bar, etc.) to maximize things
again. So I made a modification to SMARTSET which works but
since I didn't write SMARTSET I'm not entirely sure as to effects
of modifications. All I did was add:

   MW wf

where MW is the Microsoft Windows Xy function call mentioned
above and wf is its text parameter for maximizing current
window(s). I put this MW wf at the tail end of

   {{5Help}} Execute Help4 frame....

routine in SMARTSET.U2 just before ≪ex≫. Works fine and seems
innocuous enough to me but rather than have it bite me in the
butt and screw up SMARTSET, I thought I'd check. Carl? Robert?
(I should say I don't mind hardcoding MW wf into the routine
because I always work in maximized windows. I don't care for
cascading or tiled windows while working and can just hit Alt-W
to open the Window menu on the menu bar to see which windows are
active and jump to any accordingly. Nor do I know, thanks to
lack of documentation, if there is even a VA for window state,
maximized or normal, to code returning to whichever state, but
since I'm always in maximized it doesn't matter to me, thus my
hardcoding MW wf respectively.)

Bob