I.T. Discussion Community!
-Collapse +Expand
Delphi
Search Delphi Group:

Advanced
-Collapse +Expand Delphi To/From
To/FromCODEGuides
-Collapse +Expand Delphi Store
PRESTWOODSTORE
   ► KBProgrammingDelphi for W...Using Controls   Print This     

Delphi KB: Using Controls Topic



7 Articles Found in the Using Controls Topic 

  KB Article    

Larry J. Rutledge
1. Advanced Delphi: Resize Drop-down List

To resize the list box of a combobox, you merely need to send the Windows API message: CB_SETDROPPEDWIDTH to the combo box.

11 years ago, and updated 10 years ago
(2 Comments , last by Alyssa.P )

Article
Nothing New Since Your Last Visit
7467
Hits

Pascal and Delphi Coding

Larry J. Rutledge
2. Components 101: Form Size Limiting

Windows sends the WM_GETMINMAXINFO message when the user tries to resize a window either by clicking the maximize button or dragging the borders of the window. By creating a suitable message-response method, you can specify the minimum and maximum window sizes for that form.

11 years ago, and updated 10 years ago

Article
Nothing New Since Your Last Visit
9183
Hits

Pascal and Delphi Coding

Wes Peterson
3. TDBGrid: Rerarranging Columns at Will

Delphi's TDBGrid is an incredibly useful component; one you'd expect to find in any professional development tool.

One of it's handy behaviors is that users can click in column headers and drag to rearrange column ordering to their liking.

Unfortunately, TDBGrid doesn't offer the developer any really easy way to rearrange grid columns from code. This is inconvenient because you might offer the user a choice of various columns upon which they can search, and it would be nice to make their chosen column the leftmost - at least. Often it makes sense to rearrange other columns as well.

This little class allows you to do that.

It has no exposed methods, and only two properties, so it's incredibly easy to use.

Read on to learn how it works and to get the code.

6 years ago

Article
Nothing New Since Your Last Visit
9107
Hits

Pascal and Delphi Coding

Larry J. Rutledge
4. TEdit OnChange events I have a form with two TEdit components on it. For the OnChange event for both, it clears the contents of the TEdit that is not changing. However, when clearing on TEdit the OnChange fires and clears the other TEdit, this then causes the OnChange in the other TEdit to fire. Fortunately, the second time the OnChange hits the original TEdit, it is already clear and nothing happens. How can I prevent the circular event firing?
11 years ago
(3 Comments , last by Azeem.A )

FAQ
Nothing New Since Your Last Visit
14287
Hits

Pascal and Delphi Coding

Mike Prestwood
5. TStringGrid Example To determine the total number of columns in a String Grid, refer to its ColCount property and for the total number of rows, refer to RowCount. Determing the currently selected cell is a simple matter of referring to the Col and Row properties.
11 years ago
(2 Comments , last by mprestwood )

KB Post
Nothing New Since Your Last Visit
23514
Hits

Pascal and Delphi Coding

Larry J. Rutledge
7. Zooming main forms under Windows 95 Windows 95 adds several visual elements and actions that enhance the user's perception of how the system operates (editor's note: This also applies to Windows 98 and NT 4.0). One such enhancement is window zoom animation, which displays an animated, shrinking window that disappears into the window's icon on the Taskbar when you minimize the application. However, if you've run a Delphi 2.0 (editor's note: This applies to Delphi 3 and 4 as well) application on a Windows 95 system, you may have noticed that instead of seeing the standard zoom animation, the window simply disappears. In this article, we'll explain why this happens and how you can work around this disappearing act to enable zoom animation for your Delphi 2.0 applications.
11 years ago, and updated 11 years ago

Article
Nothing New Since Your Last Visit
6187
Hits

Pascal and Delphi Coding

Icon Legend:
Recent or not:
- Recent activity (within last two weeks).
- No activity last two weeks.
 Since your last logged visit:
- New to you or updated since your last visit (sign in now to activate).
- NOT new to you since your last visit (sign in now to activate).

New Pascal and Delphi Coding Knowledge Base Post...

Share your knowledge with the WORLD! In addition to adding comments to existing posts, you can post knowledge you've acquired. We welcome full articles (intro with screen shots), general posts (shorter), and tidbits (tips, FAQs, definitions, etc.).

Post New...

Tidbit Post: Short Flashcard FAQ Definition Quick Tip Code Snippet
Longer Post: Full Article General Post File Link Error News
Other: Blog Topic
Or, if YOU have a question...
  Pascal and Delphi Coding Message Board

Follow PrestwoodBoards on: 


©1995-2019 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech