How to implement result windows after analysisHow to implement result windows after analysisRE How to implement result windows after analysisRobert Woitschhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=169942013-03-08T12:27:05Z2013-03-08T12:27:05ZTreeListBox seems to be the correct choice icons can be integrated as br bitmap C mypath mybitmap bmp and bitmap2 C mypath mybitmap2 bmp in case the bitmap should change when selected br As every other file the bitmap can be stored in the database and received with bitmap db mybitmap bmp br br Attached find a sample code snippet that includes the requirements multiple selection can be caught and resolved afterwards in ADOscript br The sample introduces a tree box allows multiple selections has two colums and uses own bitmaps to show the tree br Selections are caught by ADOscript to trigger the appropriate scripts br br span style font family Courier x20 New create the main TreeListBox with all its parameters br CC 034 AdoScript 034 TLB_CREATE title 034 My title 034 oktext 034 Close 034 canceltext 034 No way 034 br boxtext 034 These are my entries 034 no help 1 button w 60 columns 2 multi sel 99 br max w 500 max h 367 min w 200 min h 150 br br insert some entries as you like ID should be unique br CC 034 AdoScript 034 TLB_INSERT id 1 is parent 1 text 034 Root 034 br CC 034 AdoScript 034 TLB_INSERT id 2 parentid 1 bitmap 034 C mypath first bmp 034 bitmap2 034 C mypath second bmp 034 text 034 selection 1 t aaa br br CC 034 AdoScript 034 TLB_INSERT id 4 parentid 2 bitmap 034 C mypath first bmp 034 bitmap2 034 C mypath second bmp 034 text 034 selection 3 t bbb br br CC 034 AdoScript 034 TLB_INSERT id 3 parentid 1 text 034 selection 2 t aaa 034 br br select the first entry here check it br CC 034 AdoScript 034 TLB_SELECT id 1 select 1 br br and finally show it br CC 034 AdoScript 034 TLB_SHOW br IF ecode 0 br CC 034 AdoScript 034 INFOBOX 034 Selected ids 034 selectedids 034 n 034 br 034 You pushed the following button 034 endbutton br ELSE br CC 034 AdoScript 034 INFOBOX 034 You cancelled the dialog 034 br br span br br Extension to previous example using TLB_INSERT br br span style font family Courier x20 New CC 034 AdoScript 034 br TLB_INSERT id intValue text strValue parentid intValue is parent boolValue bitmap strValue bitmap2 strValue br gt RESULT ecode intValue br span br br id unique identifier of the new entry br text text to be displayed br parentid The parameter specifies the parent entry of the new entry This is how you create the tree like structure br If you do not specify this parameter the entry is inserted as a root entry br is parent to define if subentries or not as boolean br 0 The new entry is a leaf has no subentries br 1 The new entry is a parent can be expanded br Parents are displayed with a folder icon or defined bitmap br br bitmap Name of a graphics file The graphics is used as icon for the new entry br All common bitmap file types are supported e g png gif bmp br The dimensions of the bitmap should be 16x16 pixels With other dimensions the bitmap is stretched to 16x16 automatically br br bitmap2 Name of a graphics file The graphics is used as icon for the new entry when the entry is in expanded state br br ecode Error codes br 0 no error occurred br 2 you have to call TLB_CREATE before calling this function br 3 an argument is missing br 4 you passed an invalid already existing IDRobert Woitsch2013-03-08T12:27:05ZHow to implement result windows after analysishttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=169882014-03-27T12:34:21Z2013-03-08T12:20:18ZThe tool will perform user requested analysis on the models Analysis results have to be represented in a window which has a basic support for icons and preferably text colouring br Dialogues 034 browser 034 034 output window 034 and TreeListBox 034 from the AdoScript message port have been tested but none of them have the functionality required 034 Browser 034 does not support inserting icons and can 039 t be used to invoke an AdoScript i e selecting or double clicking a row analysis result in our case and running a script which will take user to the problem on the model The 034 Output window 034 is not supposed to support icons but with some extra functionality it might suffice as a solution to this particular use case This extra functionality is text colouring e g warnings yellow text errors red and a function for scripts to close the output window such functionality is not in the administrator 039 s documentation Also some kind of link functionality inside the output window would be great if a user clicks on one of the links a script is executed 034 TreeListBox 034 could be used to solve our problem which is the closest dialogue to what we need but it does not allow using custom icons for parent and child items2013-03-08T12:20:18Z