[comp.windows.ms.programmer] Question: Right justified Help menu

ssl@hpkslx.mayfield.HP.COM (SSL Guest User) (05/02/91)

Hello folks.

From the stupid Windows questions pile...

How would one force the "Help" popup menu choice to be 
right-justified on the menu bar?  Lots and lots of apps
do this, yet all of the standard Microsoft applications 
just put Help as the last menu choice.

Any answers?  Thanks for your time.

Please email or post as you see fit...

Thomas
--
thomas@hpssl40.mayfield.hp.com

cms2839@isc.rit.edu (a.stranger) (05/08/91)

In article <25920009@hpkslx.mayfield.HP.COM> ssl@hpkslx.mayfield.HP.COM (SSL Guest User) writes:
>Hello folks.
>
>From the stupid Windows questions pile...
>
>How would one force the "Help" popup menu choice to be 
>right-justified on the menu bar?  Lots and lots of apps
>do this, yet all of the standard Microsoft applications 
>just put Help as the last menu choice.
>

				you give it the help attribute in the
resource definition . microsoft chose to go non - standard ... go figure
.

-- 
       @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
       @     "Imagination keeps the shadows away  -  Xymox      @
       @~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@
       @       a.stranger  -  CMS2839@ritvax.isc.rit.edu        @

risto@tuura.UUCP (Risto Lankinen) (05/08/91)

ssl@hpkslx.mayfield.HP.COM (SSL Guest User) writes:

>How would one force the "Help" popup menu choice to be 
>right-justified on the menu bar?  Lots and lots of apps
>do this, yet all of the standard Microsoft applications 
>just put Help as the last menu choice.

Hi!

You will use a special 'tabulator' character in the .RC for the Help-popup:

   POPUP "First"
      MENUITEM ...
   POPUP "Second"
      MENUITEM ...
   POPUP "Last"
      MENUITEM ...
   POPUP "\aHelp"     /* Here the '\a' (backslash+lowercase-a) */
      MENUITEM ...

I'm writing from memory, but I think it was '\a'.  Anyway, I've seen it
recommended, that the Help-menu be *not* flushed right, but be kept as
just the rightmost entry on the menu bar.  This seems to be the current
'trend' (set up by you guessed which company), which you can check by
cross-referencing this behaviour of a number of programs vs. their dates.

Terveisin: Risto Lankinen
-- 
Risto Lankinen / product specialist ***************************************
Nokia Data Systems, Technology Dept *  2                              2   *
THIS SPACE INTENTIONALLY LEFT BLANK * 2 -1 is PRIME!  Now working on 2 +1 *
replies: risto@yj.data.nokia.fi     ***************************************

divo@hp-vcd.HP.COM (Mark Divittorio) (05/08/91)

Right Justifying Help:

I believe the easy way to right justify menu items is using \a ...

In your example:

   POPUP   "\a&Help"

Obviously this would be one of your menu statements in your .rc file.
Try it ...

divo@hp-vcd.HP.COM (Mark DiVittorio)

chryses@xurilka.UUCP (Phong Co) (05/09/91)

On May 1, ssl@hpkslx.mayfield.HP.COM (SSL Guest User) wrote:

>How would one force the "Help" popup menu choice to be 
>right-justified on the menu bar?  Lots and lots of apps
>do this, yet all of the standard Microsoft applications 
>just put Help as the last menu choice.

From the Petzold book, pp337--339:

Use "\a&Help" in your menu description, and the HELP attribute, ie,:

	MENUITEM "\a&Help", <menuitem>, HELP

I didn't use the HELP attribute in my code, and it still works fine.

Hope this helps.  If so, send $299 to...


>Thomas
>thomas@hpssl40.mayfield.hp.com

Phong.


-- 

=========================================================================
Phong T. Co		|
chryses@xurilka.UUCP	|	Nice girls don't explode.
dada Indugu Inc.	|			-- Dave Sim (Cerebus #110)
Montreal, CANADA	|