Hide, Slide And Fade Away Controls On A Delphi Form
A simple "Panel1.Visible := false;" will make a panel invisible, but why not make it more eye candy by providing a hiding animation.
Read the full article to learn how to Use AnimateWindow API To More Nicely Hide and Show Delphi Controls
Related:
Why Delphi? - For Novice Delphi Developers and First Time Visitors!
About Delphi Programming - for Novice Developers and First Time Visitors
What Is Delphi And What Can You Do With It (Better: What Delphi Can Do For You)
The Building Blocks Of A Delphi Application
Delphi History - from Pascal to Embarcadero Delphi XE 2
What Happened to "Borland Delphi"? What is CodeGear? What is Embarcadero?
Related:
Select XML Nodes Into IXMLNodeList Using XPath In XmlDom.Pas
The IXMLNode does not have a way of selecting child nodes into a node collection by node name. You can iterate through all the nodes and if TXMLNode.NodeName matches "name" process it. A far better approach is to take advantage of the powerful node processing features in XPath.
Read the full article to learn how to Get IXMLNodeList Using XPath's IDomNodeSelect
Related:
Let Your Delphi Application Be Executed When A Folder Is Right-Clicked in Windows Explorer
When a users right-clicks on a folder in Windows Explorer a context popup appears. Beside standard items you can add an item for your application. When a user click the item - your application gets started and you can send it (as a parameter) the folder selected.
Read the full article to learn how to Add Your Delphi Application as Item to Windows Explorer Folder Shell Menu
Related:
Have a Tab Specific Hint for TTabSet or TTabControl Tabs
For TTabSet and TTabControl there's only "one" Hint property you can set and this hint will appear for the entire control - not taking into account the selected tab or alike. Here's how to have different hints when the mouse hovers over a specific tab of the tab control.
Read the full article to learn how to Implement Custom Hints For Each Tab in Delphi's TTabSet or TTabControl
Related:
Add A Grab Bar To The TSplitter
The TSplitter Delphi control does a nice job of allowing the user to resize user elements like panels on a form to make the user interface more flexible. A nice to have for a splitter would be to have a grab bar - and here's how to easily paint one on all your splitters - without having to redesign your user interface.
Read the full article to learn how to Upgrade Your Delphi Application Resizable User Interface In Seconds
Related:
Faking HideSelection Property for a TCheckListBox
Even when you tab out of a check list box (where focus gets shifted to another control) there will still be a visual indicator for the selected item.
I am not interested in what is the selected item (if there is one) nor I want the visual indication of which item is selected when focus shifts to another control.
Read the full article to learn how to "Hide" The Selected Item When Focus Shifts Out Of A TCheckListBox
Related:
Shortcut Keys In Delphi MDI Applications - Predefined By Windows And User Defined
Read the full article to learn about Predefined Windows MDI Shortcut Keys - Or "Why CTRL+F4 closes my child form?"
Related:
Implementing Floating / Dockable Forms Without Dragging Or Dock Sites
There's a group of controls on a tab sheet of a page control. There's a group of controls on a panel. Here's how to undock the controls from their original parent and make them float in a floating form / window. And unfloat / dock again. No dragging, no docking sites, easy and scalable.
Read the full article to learn how to Dock And Float Forms In Delphi - No Dragging
Related:
Implementing OnStateIconClick In TListView - Radio Group Like ListView
I needed to have a way to allow a user to select / check / mark one item from the list. I could not use the Selected property as it was also needed that one item can be selected while the other can be checked. The Checkboxes property was not of help. Checkboxes allows checking several items at a time. What I needed is something like a radio group where only one list item in a list view can be checked at a time. I also needed for some items to be non-checkable.
Read the full article to learn how to Change the State of a List Item By Clicking on the State Image (htOnStateIcon)
Related:

