Hi,

To check mnemonics on dialogs there is a command in testtool called translate

it returns the duplicate mnemonics on the given dialog. If a mnemonic is there more than twice the mnemonic is added to the string once more for each occurrence.

So calling the command

kontext "tabfont"
print translate (TabFont)

will print an 'h' on a current German OOo if the font dialog is opened on the font TabPage.

This check could easily be integrated in the resourcecheck which calls up every available dialog.

The advantage over checking in some kind of source code is that the actually displayed Dialog is checked (including the help button at the bottom) and not only the TabPage.

The duplicate mnemonics are marked visually on the dialog so taking a snapshot would help finding them fast in the correction cycle.


cheers
Gregor


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to