![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Call Back function for Column title of a list view Topic Summary: Created On: 15-Apr-2005 10:04 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hello,
I'm looking for a DXL command, which sets a call back function on a column title of a list view. This call back function could be used to sort the elements of this list view by this column. The current DXL help library describes only the call back on a list view in case you click on an entry into the list. For example the DOORS Database Explorer has probably included this call back and function on every column. Does anybody know a dxl command for setting a callback function to a column title of a list view? Thank you J.Bucher |
|
![]() |
|
![]() |
|
The following is from the help.
set (sort function) Declaration void set(DBE listView, int columnIndex, int dxlSortFn(string, string)) Operation Attaches a sort function to a specific column within a list view. The callback must be of the form: void dxlSortFn(string s1, string s2){ } The sort function must return the following values: Expression Returns s1==s2 0 s1>s2 1 s1<s2 -1 If this function is used with an incorrect type DBE, a DXL run-time error occurs. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.