![]() Main_form = frm_.getbyindex(0)įunctions for moving to different rows in the record source are, among others (look at. Main_form = form_container.getByName("MainForm")įor opening a form, I have seen this, which appears to get to the same place: form_container = ("Form1") The best API reference is here but it is not so user-friendly.įor the functional question, I have found most useful an alternative syntax, which refers to the form root and controller:: root_doc = ThisComponentįorm_ctrlr = root_doc.getCurrentController() The green handles appear around the field but not around the Label.The cleanest way to explore functions and methods in LO Basic is to identify the object in question and then execute: MsgBox target_object.dbg_properties Control+click the Payment field for Breakfast.If I enter the first letter of the payment type, the rest of the word automatically appears. In my case, each of my payment types begins with a different letter. Then we can choose the type of payment from the Payment Type table rather than having to manually enter the type. We want to replace the PaymentType field with a List Box. Top of page Step 6: Replace fields with other fields. Use the guide lines to determine the width. Drag and drop the cursor to the left to shorten the control or to the right to lengthen the control.Move the cursor over the middle green handle on the right.The border around it appears with eight green handles. Payment needs to be changed to 3 cm (1.2 inches). All of the payment fields were changed in step 2, but Misc. We want the following controls to be 2 cm wide (0.8 inches): Breakfast, Lunch, Supper, Odometer, Snack No., Tolls, Snack Cost, Motel, and Misc. Top of page Step 5: Change the widths of the labels and fields. When you have some time, you might want to experiment with different settings just to see the results you get. For example, by changing the Alignment from Left to Center, the word or words in the label are centered within the Label. You can then drag and drop it where you want.Īll of the listings in the Properties window can be modified by you. A border appears around the control with eight green handles (Figure 26). Clicking a label or field selects the entire control.There are times when we want to work with a group of controls. Sometimes we want to work with the entire control, and other times we want to work with only the label or field. The controls in the main form consists of a label and its field. Here are some pointers that we will be using in these steps. The font color of the headings need to be changed as well. Some of the labels will have to be modified so that they can be read clearly. The background needs to be changed to a picture. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |