Everyone will look at the use of the simple code snippet to go to the site belonging to the clicked list member in the ComboBox when clicked via the button, according to the instructions in the hello combobo. In our project we will deal with the values we have assigned to it during the process with the ComboBox. We will handle the links in these values and open them with the button. We will associate 4 elements with the values we assigned to each element and we will provide the link to the associated value in the internet browser we added to the project.
How to Export Url Link with Delphi7 Combobox?
First, when we run the delphi 7 program, we will add the design page of the ComboBox form element in the Standard tab on the top toolbar menu of the design page that comes up. Then I add the button form element in the same tab. This time I will add the WebBrowser form element from the internet tab. We've added components to our design page so that it's now associated with one that came along.
Double-click on the project page and in the opening page:
On top of the writing
Let's add these lines to define the string for the values to be given in the ComboBox.
Then on the same line
Bottom of this line of the line
Let's select the ComboBox and double-click on the items (TStrings) from the left menu, double-click on the window to open a, b, c, d sub after line and click on the arrow button. In this section, which option is selected, it is necessary for the operation of that string to be linked. Now, for the actual operation, you have come to the button element, double click on the button,
Bottom line Add:
And that's it. What are we doing here? In this section, we have made a rule that if you select x in the ComboBox row and get the URL in the x data, and then enter the URL in that string in the webbrowser. In the future we will discuss this in our article about how to open it with firefox internet explorer chrome etc browsers.
Delphi 7 Combobox with Url Connection
- Article Department: Borland Delphi
- Article Edition: Delphi 7
- Platform: Windows System
- Date Added: 2016-12-25
- Video Duration: 6.00 'DK
- Article Lang : Türkçe