Quintiq file version 2.0 #parent: #root Method PTF_PopulateParametersText () id:Method_LibPTF_dlgCreateEditTestScript_PTF_PopulateParametersText { #keys: '[103546.0.67093836]' Body: [* // Populate the information about parameters on the LabelKeywordArguments infotext := ""; keyword := selKeyWord.BoundValue(); if( keyword = LibPTF_StandardAction::Loop() ) { infotext := ""; } else if( keyword = LibPTF_StandardAction::OpenView() ) { infotext := ""; } else if( keyword = LibPTF_StandardAction::ScrollGCLeftRight() or keyword = LibPTF_StandardAction::ScrollGCPageLeftRight() or keyword = LibPTF_StandardAction::ScrollGCUpDown() or keyword = LibPTF_StandardAction::ScrollGCPageUpDown() ) { infotext := ", , "; } else if( keyword = LibPTF_StandardAction::ScrollGCToBottom() or keyword = LibPTF_StandardAction::ScrollGCToNow() or keyword = LibPTF_StandardAction::ScrollGCToTop() ) { infotext := ", "; } else if( keyword = LibPTF_StandardAction::ScrollListToLast() ) { infotext := ", "; } else if( keyword = LibPTF_StandardAction::SelectListFrom() ) { infotext := ", , "; } else if( keyword = LibPTF_StandardAction::Wait() ) { infotext := " or Wait , "; } else if( keyword = LibPTF_StandardAction::ZoomGC() ) { infotext := ", , "; } else if( keyword = LibPTF_StandardAction::ProfilerReset() ) { infotext := ""; } else if( keyword = LibPTF_StandardAction::ProfilerStop() ) { infotext := ""; } // Disable the parameter editor if there is no parameters needed keywordparameditorenabled := keyword.Length() > 0 and infotext.Length() > 0 edtKeyWordParameter.Enabled( keywordparameditorenabled ); // Info texts for remaining actions if( infotext.Length() > 0 ) { infotext := ' ' + keyword + ' ' + infotext; } else if( keyword.Length() > 0 ) { infotext := " No argument is needed for this action."; } else { infotext := " No standard action is selected"; } lblKeywordArguments.Text( infotext ); // Set focus if( keywordparameditorenabled ) { edtKeyWordParameter.SetFocus(); } else { btnInsert.SetFocus(); } *] }