heya,
i wonder, is there a MenuEditor /Plugin to create menus inside RadAsm?
so far u need to Import one.
any idea?
Posted on 2003-10-17 04:57:08 by wizzra
The latest release of KetilO's resource editor is able to handle menus.
Posted on 2003-10-17 05:07:08 by Vortex
hm...
i don't see it.. :rolleyes:
Posted on 2003-10-17 08:53:23 by wizzra
You have to create a menu first, from the project menu select Create New/ menu and you will be prompted for a filename. Give the menu a name and the menu editor will be opened, when you want to modify it just double click on it's entry in the project browser. For more info see the help file.
Posted on 2003-10-17 10:24:09 by donkey
ah, ok found it, thnx donkey.
Posted on 2003-10-17 12:30:31 by wizzra
Basically my dialog is not appearing at all becouse of menu. Maby it's something with my RadAsm version 2.0.2.7 . I will attache this becouse maby i'm doing something wrong.
Posted on 2003-10-23 07:25:10 by AceEmbler
Hi AceEmbler

Unfortunatly the most interesting file was missing from your upload so I am just guessing here.

Open Adresiki.rc

You probably find:

#include <Res\AdresikiDlg.rc>
#include <Res\AdresikiMnu.rc>


The problem is that the menu has both an ID and a name and since the resource compiler is not able to find the ID associated with the menu name, only the name will be used.

Change it to:

#include <Res\AdresikiMnu.rc>
#include <Res\AdresikiDlg.rc>

The problem will be solved in the next release of RadASM.

KetilO
Posted on 2003-10-23 07:52:02 by KetilO
You were right but i have got another problem.

When i add shortcut to my menu. Ther is my shortuct (for example CTR+C) on my Captinon.

so for "BLABABAB" Caption. Menu looks like this: "Ctr+CABAB"
but RadAsm res editor shows it properly.
Posted on 2003-10-23 15:13:37 by AceEmbler
in the menu editor i miss the shortcut (dropdown combo) for delete "del"
maybe something for 2.0.3.6 ?
Posted on 2003-10-25 08:46:25 by Ranma_at
Hi Ranma_at

You can always put the shortcut in the caption like:

&Delete\tDel

KetilO
Posted on 2003-10-28 01:06:19 by KetilO
Hi AceEmbler

Very strange. Is it at runtime this happends?

KetilO
Posted on 2003-10-28 02:07:20 by KetilO
This Picture says it all.
Posted on 2003-10-28 05:48:40 by AceEmbler
Hi AceEmbler

A popup cannot have a shortcut. Makes sense since it cannot have an ID.

KetilO
Posted on 2003-10-28 06:20:44 by KetilO
I dont get it. Can you tell me why i cant have properly working menu with shortcut in this example ???
Posted on 2003-10-28 07:57:02 by AceEmbler
Hi AceEmbler

I can only advice you to read a little about resource scripts. I think there is a help file that came with masm32.

KetilO
Posted on 2003-10-28 08:08:18 by KetilO

Hi AceEmbler

A popup cannot have a shortcut. Makes sense since it cannot have an ID.

KetilO

:)
Actually, if you define menus using MENUEX instead of MENU, your can get popups with IDs. You can also set their IDs on runtime using the APIs. However I've never tried shortcuts on them (other than the ampersand before a character) so I wouldn't know if it's possible.
Posted on 2003-10-28 16:36:36 by QvasiModo
Hi

The correct term is that a menu bar item cannot have a tab character (used to align columns in a popup menu).

From rc.hlp

The string can contain the escape characters \t and \a. The \t character inserts a tab in the string and is used to align text in columns. Tab characters should be used only in pop-up menus, not in menu bars. (For information on pop-up menus, see the POPUP statement.) The \a character aligns all text that follows it flush right to the menu bar or pop-up menu.


KetilO
Posted on 2003-10-28 18:03:11 by KetilO
Cool. :)
Misc question: \t was the tab character (ASCII 09)... but I can't remember what was the ASCII for \a. :(
Posted on 2003-10-28 18:57:32 by QvasiModo
\a (BELL) => 07
Posted on 2003-10-29 11:40:56 by cakmak