![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Using values set in list on a canvas Topic Summary: How do I capture the selection in a list from one canvas and have it show up in a subsequent canvas? Created On: 28-Aug-2008 12:48 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: In your callback for the "Next" button, get the selected value of the list and set it to be the text of the field in the 2nd dialog box. void nextButtonCallback(DBE clicked) { string selectedValue = get(yourlist_DBE); set(yourField_DBE, selectedValue); hide(first_DB); destroy(first_DB); first_DB = null; realize(second_DB); show(second_DB); } | |
![]() |
|
I have a script that displays multiple canvas based dialogue boxed to walk users through a particular process.
One of the canvas pages has a list on it - where the user needs to select one option from that list. I want to display the option they chose on a subsequent canvas in a text field. I have the call-back function that sets the attribute I am trying to display on the next canvas - however the value from the list doesn't show up because the canvas has already been painted. How do I refresh the canvas before displaying it? Thanks!! Heather ------------------------- Heather Linsk Lead Engineer General Dynamics AIS 413-494-7095 |
|
![]() |
|
![]() |
|
You have one dialog box with multiple canvases or multiple dialog boxes each with a canvas? How do you have a list inside a canvas? Unless you're manually drawing it and determining where the mouse is clicked to see which option is selected. Or you have a list above a canvas in one of the dialog boxes. Same with the text field.
If you really mean to redraw the canvas, your repaint function for the canvas should draw it (nothing appears the first time because the desired string is empty). You could call the repaint function after the item in the list is selected. ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
I have one dialog box with multiple canvases.
The list and text field are in a frame below the canvas on separate dialogue boxes. I have a callback function on the dialogue box that contains the list to get the value selected in the list. the user then clicks on the "Next" button on my dialogue box and another dialogue box appears. I want to display the value selected in the first dialogue box on the second dialogue box in the default text of a text field. ------------------------- Heather Linsk Lead Engineer General Dynamics AIS 413-494-7095 |
|
![]() |
|
![]() |
|
In your callback for the "Next" button, get the selected value of the list and set it to be the text of the field in the 2nd dialog box.
void nextButtonCallback(DBE clicked) { string selectedValue = get(yourlist_DBE); set(yourField_DBE, selectedValue); hide(first_DB); destroy(first_DB); first_DB = null; realize(second_DB); show(second_DB); } ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
Thank you. I forgot to set the DBE item on the second dialogue after getting the value from the list on the first dialogue.
------------------------- Heather Linsk Lead Engineer General Dynamics AIS 413-494-7095 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Using values set in list on a canvas
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.