Programming

Programming

Tags:C BuilderGraphicsOwner DrawnTcontrols

Several controls let you customize the way the control is rendered. These include list boxes, combo boxes, menus, headers, tab controls, list views, status bars, tree views, and toolbars. Instead of using the standard method of drawing a control or its items, the control's owner (generally, the form) draws them at runtime. The most common use for owner-draw controls is to provide graphics instead of, or in addition to, text for items. For information...

Programming - C++Builder

Tags:C BuilderMenuTcontrolText

This article tell you how to use the menu in text controls, including: Disabling menu items Providing a pop-up menu Handling the OnPopup event

Disabling menu items

It is often useful to disable menu commands without removing them from the menu. For example, in a text editor, if there is no text currently selected, the Cut, Copy, and Delete commands are inapplicable. An appropriate time to enable or disable menu items is when the user selects the menu...

Programming - C++Builder

Tags:C BuilderClipboardCopyCutDeletePasteTcontrolsTextTmemo

In this article, we taking about the following topics: how to use various features of rich edit and memo controls. Some of these features work with edit controls as well. Setting text alignment Adding scrollbars at runtime Adding the clipboard object Selecting text Selecting all text Cutting, copying, and pasting text Deleting selected text Disabling menu items Providing a pop-up menu Handling...

Programming - C++Builder

Tags:C BuilderDelphiDrag And Drop

Descendants of TWinControl can act as docking sites and descendants of TControl can act as child windows that are docked into docking sites. For example, to provide a docking site at the left edge of a form window, align a panel to the left edge of the form and make the panel a docking site. When dockable controls are dragged to the panel and released, they become child controls of the panel. Making a windowed control a docking site Making a control a...

Programming - C++Builder

Tags:C BuilderDelphiDrag And DropTcontrol

This article tell you how to use controls in C++Builder, let us learn it from the drag and drop features.

Drag-and-drop is often a convenient way for users to manipulate objects. You can let users drag an entire control, or let them drag items from one control--such as a list box or tree view--into another. Starting a drag operation Accepting dragged items Dropping items Ending a drag operation Customizing drag and drop with a drag...

Programming - C++Builder

Tags:C BuilderComponent PaletteDelphi

You can install custom components' written by yourself or third parties--on the Component palette and use them in your applications. To write a custom component, see Overview of component creation. To install an existing component, see Installing component packages in the following.

Installing component packages

All components are installed in the IDE as packages. If you've written your own components, create and build a package that contains them. Your...

Programming - C++Builder

Tags:C BuilderComponents

The Component palette contains a selection of components that handle a wide variety of programming tasks. The components are arranged in pages according to their purpose and functionality. For example, commonly used components such as those to create menus, edit boxes, or buttons are located on the Standard page. Which pages appear in the default configuration depends on the edition of the product you are running.
The following table lists typical default pages and...

Programming - C++Builder

Tags:C BuilderEvent HandlersMenu Events

The Menu Designer, along with the MainMenu and PopupMenu components, make it easy to supply your application with drop-down and pop-up menus. For the menus to work, however, each menu item must respond to the OnClick event, which occurs whenever the user chooses the menu item or presses its accelerator or shortcut key. This topic explains how to associate event handlers with menu items. For information about the Menu Designer and related components, see...

Programming - C++Builder

Tags:C BuilderExamples

How to use the "Sender" parameter in C++Builder program.

In an event handler, the Sender parameter indicates which component received the event and therefore called the handler. Sometimes it is useful to have several components share an event handler that behaves differently depending on which component calls it. You can do this by using the Sender parameter.

See an example, create a new project, and put two buttons on the form. Change button1's caption to "Hello" and...

Programming - VB/VB.NET

More Articles...

Page 8 of 13

8