Scycler learning logs-. Net language APP development platform: how to load web pages in webview, scyclerwebview
First, scycler is a development platform that uses the. Net language to develop apps in the VS environment. I. Target Style
The following operations are required to achieve the effect:
1. Drag a WebView control, a Button control, and a TextBox Control from "scycler Components" on the toolbar to the form interface. 2. Modify the. Location attribute of the Button.
Display the control in the appropriate position (99, 1), 1;
B. Text attributes
Set the button text to "go", 2;
C. Size attribute
Set the width and height of the control to (18, 12) and 3;
|
|
|
Figure 1 |
Figure 2 |
Figure 3 |
D. Button Click event
VB: Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click webView1.Url = textBox1.Text.ToString() End Sub
C#: private void button1_Click(object sender, EventArgs e) { webView1.Url = textBox1.Text.ToString(); }
3. Modify the. Location attribute of the TextBox Control.
Display the control in the appropriate position (11, 1), 1;
B. WaterMarkText attributes
Set the text box watermark, set this attribute to "search or enter the URL", 2;
C. Size attribute
Set the width and height of the control to (88, 12) and 3;
|
|
|
Figure 1 |
Figure 2 |
Figure 3 |
4. Modify the attributes of the WebView control.
Display the control in the appropriate positions (0, 16), 1;
B. Size attribute
Set the width and height of the control to (120,184), 2;
5. s0000er Form Design Interface display effect 2. Mobile phone display