https://youtu.be/rmOaqIGUI4U
Bom Dia/Boa Tarde/Boa Noite
Esse Ao Vivo vai estrear as 16:00 do dia 15/09/2020
DICAS 3073 -WEBDEV TUTORIAL 7-Licao 1.3-15-09-2020 16hrs-Lesson 1.3. Minha Primeira Pagina - CRIANDO CONTROLES - PARTE C
Lesson 1.3. My first pages
ASSUNTOS
CRIANDO CONTROLES
CRIANDO EDT ULTIMO NOME
ALTERANDO TAMANHO PARA 30 NOME
DEFINIR OS OUTROS CAMPOS
COLOCANDO TODOS OS CAMPOS FORMULARIO
MOSTRANDO LINHA MULTI LINHA
MUDANDO COR LOGIN CSS
ADICIONANDO STYLE PARA PROJETO
APROVEITANDO O MESMO STYLE
EXPLICANDO F4 - ULTIMA MODIFICACAO COPIA
TESTANDO FORMULARIO
PlayList WebDev tutorial Amarildo Webdev
Playlist Windev Tutorial Amarildo Windev
Playlist windev Franca PcSoft
Amarildo
Windev
WxSolucoes
Matos Informatica
Repositorio Windev
Site forum Google
Video sobre 3 Mil Videos Windev
PlayList Pedrosao
Video sobre Alfaserver servidor
Ultimo Video
DICAS 3067 -WEBDEV TUTORIAL 1-Licao 1.1-14-09-2020 11hrs-DESCUBRA WEBDEV
DICAS 3068 -WEBDEV TUTORIAL 1-Licao 1.2-14-09-2020 15hrs-Web development and WEBDEV - PARTE A
DICAS 3069 -WEBDEV TUTORIAL 3-Licao 1.2-14-09-2020 16hrs-Web development and WEBDEV - PARTE B
DICAS 3070 -WEBDEV TUTORIAL 4-Licao 1.2-14-09-2020 17hrs-Web development and WEBDEV - PARTE C
DICAS 3071 -WEBDEV TUTORIAL 5-Licao 1.3-15-09-2020 11hrs-Lesson 1.3. Minha Primeira Pagina - PARTE A
DICAS 3071 -WEBDEV TUTORIAL 5-Licao 1.3-15-09-2020 11hrs-Lesson 1.3. Minha Primeira Pagina - PARTE A
Creating controls
Let's create the different form controls. These controls will allow the user to fill the data required for the registration.
The form base is created. We are now going to improve it.
The form includes the following controls:
- Last name.
- First name.
- Address.
- Email.
- Login.
- Password.
- To create an edit control:
- On the "Creation" pane, in the "Usual controls" group, click .
- The control currently created follows the mouse movement.
- Click inside the blank page to create the control. The control is created and handles are displayed to indicate that the control is selected.
Remark
You must create a control? Display the "Creation" pane of WEBDEV: all available controls are accessible in this pane.
- To modify the control caption:
- Click the control (simple click): the caption becomes editable. If you prefer to use the keyboard, press the Space key or the Enter key in order for the caption to become editable.
- Type "Last name" and press Enter to validate. The caption is immediately modified. The control name is also modified: it appears in the tooltip when hovering over the control: EDT_Last_name.
Remark | Study the control name proposed by WEBDEV: this name starts with the letters "EDT_". This prefix is automatically added because the project uses a code style. The code style is used to define a prefix for each type of object, allowing you to quickly identify the element:
|
- To modify the detailed control characteristics, all you have to do is double-click the control. A control description window appears:
- We are going to modify the maximum input size: all you have to do is type the new size (30 in our case) in the "Input size (characters)" control. Several other characteristics can be modified. Click "OK" to save the changes.
- Now, it's your turn. Use the same method to create the following edit controls, below the "Last name" control:
Caption Type Size First name Text 30 Address Multi-line text Email Text 255 Login Text 10 Password Password 10
Let's see the page that we want to get:
- The "Address" edit control is used to type several lines.
- The different edit controls are aligned.
- The "Login" and "Password" controls have a red caption.
Improving the page
We are going to make some changes to the interface of this page.
First of all, let's take a look at the "Address" control. This control must display several lines on the screen. We are going to enlarge it.
Then, we are going to align the controls in the page.
Finally, we will modify the style of "Login" and "Password" controls.
- To enlarge the "Address" control:
- Click the "Address" control.
- Handles appear.
- With the mouse, grab the handle at the bottom of input area and enlarge the area.
- This allows you to increase the width of different page controls.
- To align the controls in the page:
- Select the "Last name" control then all edit controls found in the window (hold the Ctrl key down while clicking the different controls).
Remark
Caution: the first selected control is essential. Indeed, the alignment options are based on: - The size of first selected control: it will be used as reference for the size of other controls.
- The position of first selected control: all selected controls will be aligned in relation to the first selected control.
- Display the "Alignment" pane of WEBDEV menu. This pane contains all alignment options available for the controls.
- We want the left and right sides of controls to be aligned. Click "Justify (Ins and Out)".
Remark
If you don't know which alignment to choose, hover the different options proposed by the "Alignment" pane of WEBDEV. When an option is hovered by the mouse cursor, the controls selected in the page are automatically positioned according to the hovered option. If the positioning suits you, all you have to do is click the option.If the positioning does not suit you, all you have to do is click inside the page: the controls move back to their initial position. - Save the page: click among the quick access buttons (or press Ctrl + S).
- Select the "Last name" control then all edit controls found in the window (hold the Ctrl key down while clicking the different controls).
Modifying the style of "Login" and "Password" controls
To display the caption of "Login" and "Password" controls, we are going to modify the default style associated with these controls.
- To modify the default style:
- Select the "Login" control.
- Open the control description window (double-click the control for example).
- In the "Style" tab, select the "Caption (CSS)" element.
- Expand the "Color" combo box and select the red color.
Remark
This style can be added to the style sheet of project in order to be re-used. To do so: - Click "Add this style to the project" in the "WEBDEV style" pane on the right of description window.
- Give a name to the style.
- Click the "Add" button.
To re-use the created style and to associate it with another control:- Select the control whose style must be modified.
- Open the popup menu of the control (right click) and select "Choose a WEBDEV style".
- In the window that appears, select the desired style and validate.
- Validate the description window of the "Login" control.
- To apply the same style to the "Password" control:
- Select the "Password" control.
- Press F4.
Remark
The F4 key is used to apply the last modifications performed to the selected controls. In our case, the change of color is automatically applied to the "Password" control. - You get the following interface:
When creating a form, the first thing that we want to do is save the data typed. This data can be saved in a text file, in an XML file or even in a database.
We have chosen the last option.
In WEBDEV, the database description is performed in a specific editor, the data model editor. This editor will be presented in details in the next section.
In this example, we are going to define the database linked to the created controls via a straightforward feature: the reverse engineering.
Nenhum comentário:
Postar um comentário