C builder IDE skills
No matter how long you have used C Builder, no doubt, there are always features that you ignore you. This article describes some of the freshly known functions in the IDE.
Quickly select Form
When you develop an app, you often need to select Form to change the Form's properties or generate a new FORM event handle. Sometimes, select the page simply click on the page. But more, the page is always completely hidden by the components on them.
It is a solution to the drop-down combination box at the top of the object viewer (Object Inspector). However, it is not easy to find the FORM class from the drop-down list, especially when the page contains a lot of components.
Fortunately, the IDE provides shortcuts to select Form. For example, when a MEMO component is aligned with a client area of the FORM. To select Form, you just click on Memo, then press the ESC key, you will select Form.
In fact, IDE turns focus to the parent object of the original selected object. If you placed a component on the Panel panel on the Form, you will choose the PANEL panel when you click this component and then press the ESC button. After pressing the ESC button, the form is selected.
Select the components in Container (container)
The PANEL panel is often used as a container for other components. You may want to select several components on the Panel panel to move them or change their common properties. You can of course select these components through SHIFT clicking. However, if you want to select by dragging the mouse, you will only run the Panel. Pressing the CTRL button to dragging, it is completely different. This approach applies to all container components (Groupbox, Scrollbox, Controlbar, etc.).
Fine-tuning
Many times, you will make a subtle adjustment on the components on the Form. After selecting a component, press and hold the CTRL button and then press the arrow key (four arrows) to move the components in the corresponding direction in units of pixels. Press and hold the SHIFT and CTRL keys at the same time, then press the direction key to move the component to the next grid positioning point.
If you want to make the component to elongate or shorten a pixel point, press and hold the SHIFT button and press the arrow button. The left and right key adjustment component width and adjust the height of the component up and down.
Change the properties of several components at the same time
When you select multiple components, the object viewer will display the common properties of these components. For example, if you want to make a few EDIT components in the Form, you only need to select them at the same time, then change the width property in the object viewer, all the component width you select will become a new width. value. This is also the way to clear the text attribute of many Edit components.
Use the ALIGNMENT dialog box!
You often need to ensure that a set of components can be aligned in some way. For example, you want an EDIT component to align in the middle of the corresponding Label component. First select the EDIT component, then press and hold the Shift key to select the Label component, right-click on one of the components, select the Align option on the pop-up menu. A Alignment dialog box will pop up, allowing you to align components in some sequence. Very simple, try it.
I must point out that this is just the one aspect of using the Alignment dialog, which is actually the principle of the component anchor (Anchor). The first component of a set of components you selected will be used as an anchor assembly. That is, the anchor assembly does not move, all other components are aligned in alignment.
The last thing to say is that View | Alignment Palette is exactly the same as the Alignment dialog. in conclusion
For some readers, this article is very coming! But I dare to bet most people you can learn from this article to something you haven't noticed before. The RAD characteristics of C Builder is impressive. Once you learn to play the IDE, this will be particularly correct.
Cker@sina.com