ShowTickers2 Method (Utility Control)
Windows - Visual C++
Description
The ShowTickers2 method displays a
dialog box containing company names and their ticker codes for
selection. The dialog box contains Full View and Current View option
buttons that enable the user to choose the view in which to apply the search.
Syntax
long result = ShowTickers2();
The ShowTickers2 syntax has these parts:
Part |
Description |
result |
Return value. A long integer containing 0 if the user clicked the OK button and -1 if the user clicked the Cancel button. |
Remarks
After ShowTickers2 is called, the
chosen company name is stored in the CompanyName property,
the chosen ticker code is stored in the TickerName property
and the resulting search string is stored in the TickerSearchString property.
The search string is used to set the Headline control's SearchCriteria
property. Note that these properties are only valid if the return
value from ShowTickers2 is 0.
The Full View and Current View option buttons enable the user to choose the view in which to apply the search. The ViewType property contains the search type selected in the "Apply To" group (1 = Full View, 2 = Current View). The DisableViewType property allows you to disable a view type option button.
The Full View option enables the user to perform the search on all stories in the NewsEdge Server database. No other search criteria is incorporated into the search. For example, if the user brings up the ShowTickers2 dialog box to search on <MSFT> and chooses Full View, the user will see all stories that contain the Microsoft ticker code.
The Current View option enables the user to perform the search on the current set of stories in the Headline View. For example, if the performs a Source View on the news feed "AP" and then brings up the ShowTickers2 dialog box to search on <MSFT> and chooses Current View, the user will see stories from the "AP" news feed that contain the Microsoft ticker code.
See Also: CompanyName TickerName TickerSearchString SearchCriteria
Back to: Utility Methods