![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Building a GUI, ambiguous documentation for addMenu Topic Summary: Created On: 6-Sep-2002 11:02 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: You are using string arrays instead of char arrays for the mnemonics etc. I have fixed the code and attached it. Don't forget to use single quotes for chars | |
![]() |
|
Hello all!
I am feverishly trying to ramp up on DXL. Can someone tell me why the following code is producing an error (shown at bottom): // Declare dialog box and elements (controls) DB objXpertDialog = create("TestXpert Integration", styleCentered); DBE objMenuBar = menuBar(objXpertDialog); // Menubar for holding menu items const string strMenuOptions[] = {"Close","---","About..."}; const string strMenuMnemonics[] = {"C",ddbNone,"A"}; const string strMenuHots[] = {ddbNone,ddbNone,ddbNone}; const string strMenuHelp[] = {"","",""}; const string strMenuInacHelp[] = {"","",""}; addMenu(objMenuBar, "TestXpert", "T", strMenuOptions, strMenuMnemonics, strMenuHots, strMenuHelp, strMenuInacHelp, isItemSensitive, menuItemSelected); setSize(objXpertDialog, 400, 400); // Shows dialog in batch mode, or GUI mode baseWin(objXpertDialog); -- The error is: -E- DXL: incorrect use of identifier (ddbNone) -E- DXL: incorrect arguments for function (addMenu) -E- DXL: undeclared variable (menuItemSelected) -E- DXL: undeclared variable (isItemSensitive) -I- DXL: all done with 4 errors and 0 warnings Press return to exit DOORS. -- The documentation indicates the use of the constant, ddbNone, if I want no value for mnemonics or 'hots'. THe error indicates thats a bad idea. Any help would be appreciated. Also, the setSize method doesn't seem to have an affect on the window size.. (after clearing the erroring menu code, of course) What gives? -Sean- |
|
![]() |
|
![]() |
|
You are using string arrays instead of char arrays for the mnemonics etc. I have fixed the code and attached it. Don't forget to use single quotes for chars
------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Excellent.. works great. Now, if I can figure out why the setSize function isn't working...
![]() -sean |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.