![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: What's wrong with this button? Topic Summary: button(...) results in " incorrectly concatenated tokens" Created On: 14-Mar-2007 10:00 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: try DBE calledfrom instead of DB b within head of callback function this should work cu thomas | |
![]() |
|
Hello,
why does this code ///////////// code start DBE btn = button(b, "TestButton", noAction) result in these [alleged ![]() -E- DXL: incorrect arguments for function (button) -E- DXL: incorrectly concatenated tokens ??? Thanks for all hints. Cheers, Martin Edited: 14-Mar-2007 at 10:09 by Martin Erdelen |
|
![]() |
|
![]() |
|
try DBE calledfrom instead of DB b within head of callback function
this should work
cu
thomas
Edited: 14-Mar-2007 at 10:14 by Thomas Langholz |
|
![]() |
|
![]() |
|
It works indeed -- thanks for the prompt reply, Thomas! |
|
![]() |
|
![]() |
|
Only apply() and close() buttons have a DB value passed to the callback function.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
Yes.
'ok' and 'apply' and 'close' functions created things that look like button on the lowest most line of the dialog. Notice they required a function that has a single 'DB' parameter. 'button' functions create things that are buttons within the body of the dialog. It requires a function with a single parameter of type DBE. It also returns a type 'DBE" allowing you to assign it to a DBE variable and then manipulate it, such as positioning it in the dialog. The call parameter DB or DBE can be used by the function to determine which element was actually pushed. I'm not sure I've ever actually done that since I generally write my scripts such that each Element has exactly one corresponding function, and the function implicitely knows which element it works for. Thus, I routinely use dummy parameters in the callbacks, e.g. "void btnDelete(DBE dbeXX)" Attached is a little ditty to demonstate some of this. Notice that since the functions sometimes refer to known DB and DBE variables, I generally declare them globally at the top. Since the creation of the DB often requires callbacks and these callbacks routinely call functions that do actual work, I routinely put the creation of the DB at the bottom of my scripts. Notice that the repoisitoning worked. I failed to get dbe1 and dbe2 to swap places, either with them origiunally declared 'beside' each other. DBE repositioning is a nightmare. There are far too many exceptions for me to keep track of. - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
What's wrong with this button?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.