Hi,i am using win32 asm and i want to move the menu from the left side to
the right side just like when i am using Hebrew language, how can i do
that?
Thank you
Posted on 2002-02-06 00:07:11 by sudeer
sudeer,

I don't personally have the experience with Semetic languages but as far as I know, the version of windows that you are using must support the language you are using. I know that Hebrew versions of Windows support right to left character sets and I imagine they support right to left menus as well.

Regards,

hutch@movsd.com
Posted on 2002-02-06 05:10:26 by hutch--
May be you know a web page or a site to go to for this kind of language or arabic language.
thanks a lot
sudeer@37.com
Posted on 2002-02-16 01:50:52 by sudeer
Look in you API reference:


WS_EX_RIGHT
The window has generic right-aligned properties, if the language supports reading order alignment.

WS_EX_RIGHTSCROLLBAR
Display the vertical scroll bar (if any) to the right of the client area.

WS_EX_RTLREADING
Display window text using right-to-left reading, if the language supports reading order alignment.


There's also a demo app avaible @ microsoft.com.... just search for "WS_EX_RTLREADING"
Posted on 2002-02-16 03:33:11 by bazik
i tried all things you say, but no luck.
thanks again
sudeer@37.com
Posted on 2002-02-28 23:09:22 by sudeer
Under Hebrew Windows 95, you can create overlapped windows, edit controls, list boxes, and so on, that have a right-to-left orientation by calling CreateWindowEx(WS_EX_RIGHT...). When the resulting window is opened in Hebrew Windows 95, if a caption bar exists for that window, it is right- aligned. If the resulting window is a control, the control would also have a right-aligned property. For example, edit controls would have cursors that start from the right end of the client area.

To right-align the menu takes a bit more work. The MENUEX resource and the MFT_RIGHTJUSTIFY flag will need to be used.

The syntax for MENUEX is:





menuID MENUEX
BEGIN
[{ [, [, state]]]] |
[, [, [, helpID]]]]
BEGIN
popupBody
END]} ...]
END

The following is an example of a right justified menu:
...
#include "winuser.h"
...

GENERIC MENUEX DISCARDABLE
BEGIN
POPUP "&File", , MFT_RIGHTJUSTIFY
BEGIN
MENUITEM "&New", IDM_NEW, MFS_GRAYED
MENUITEM "&Open...", IDM_OPEN, MFS_GRAYED
MENUITEM "&Save", IDM_SAVE, MFS_GRAYED
MENUITEM "E&xit", IDM_EXIT
END
POPUP "&Edit", , MFT_RIGHTJUSTIFY
BEGIN
MENUITEM "Cu&t\tCtrl+X", IDM_CUT, MFS_GRAYED
MENUITEM "&Copy\tCtrl+C", IDM_COPY,MFS_GRAYED
MENUITEM "&Paste\tCtrl+V", IDM_PASTE, MFS_GRAYED
MENUITEM "Paste &Link", IDM_LINK, MFS_GRAYED
END

END


SetMenuItemInfo can also be used to set the MFT_RIGHTJUSTIFY flag for individual menu items.

Additional query words: 4.00 ME Arabic
Posted on 2002-03-01 00:19:19 by The Svin
Al salamo alekom wa rahamato allh wa barakato,
ana men masr, see the msdn help for support as I know.
Posted on 2002-03-02 03:09:09 by amr
thank you very much, i do not have "winuser.h" file to include, i do not know if it is the same as winuser.inc
thanks a lot
sudeer@37.com
Posted on 2002-03-07 03:21:02 by sudeer
Wa alekom Al salam wa rahamato allh wa barakato,
ana men jeddah,next to makka.
thank you
sudeer@37.com
Posted on 2002-03-07 03:23:56 by sudeer
Yes, winuser.h is the same as winuser.inc but the difference is that the winuser.h is used in c programming and defined for c, but winuser.inc is used for assembly programming that is the difference, actually h2inca application changes from the *.h file (c header file) to *.inc (assembly header file. and thats all
Posted on 2002-03-09 02:50:57 by amr
Please keep it in english, or use privmsg's.
Posted on 2002-03-10 12:27:56 by f0dder
As I'm badly hangover today I'll hope this is what you want...

MyMenu MENU
{
POPUP "Here I am",HELP
}

The Help parameter makes it go on the right side of the menu...
Posted on 2002-03-10 12:53:44 by JimmyClif
thank you, but HELP DOES NOT DO ANY THING
THANKS AGAIN
Posted on 2002-03-22 05:47:39 by sudeer
Well, I don't know with what resource compiler you're screwing around with.. I just happen to have the normal masm32 v7 rc.exe with the normal resource.h found in the include folder... And it works fine for me:
Posted on 2002-03-22 13:10:16 by JimmyClif
Thanks for all, i am hammering my screws with masm32 v7, i tried HELP but it give me error.
thanks fot the Svin i use MFT_RIGHTORDER instead of MFT_RIGHTJUSTIFY AND IT DOES IT.
Thanks again.
Now i want to do the same thing to the toolbar, start from right to left....how?
sudeer@37.com
Posted on 2002-03-29 01:34:37 by sudeer
hi
You can change the language settings so it works form right to left

amr
Posted on 2002-03-30 01:12:36 by amr
how can i do that,an example would be better.
thanks
sudeer@37.com
Posted on 2002-04-03 21:27:43 by sudeer
Here you are a full discription of the MENU and LANGUAGE for the resource files.
At this attachement,
please send me if it's what you wanted,
amr
Posted on 2002-04-10 07:11:54 by amr