PsControls Updates

Started by Paul Squires, July 24, 2026, 06:23:19 PM

Previous topic - Next topic

Paul Squires

I'll try to post any news related to new Ps Custom Controls, or additions and changes to existing controls.

Here is the list of controls (so far):
PsListBox, PsColumnHeader, PsVScrollBar, PsHScrollBar, PsStatusBar, PsTabBar, PsTextBox, PsMenuBar, PsPopupMenu, PsSplitter, PsIconPanel, PsSelectBar, PsToggle, PsScrollPanel, PsComboBox, PsNumericUpDown, PsButton, PsMessageBox, PsCheckBox

Documentation for all controls can be found at the Help Center:
https://www.planetsquires.com/docs

Source code and demo files are in their individual repositories located at: 
https://github.com/PaulSquires?tab=repositories

Paul Squires
PlanetSquires Software

Paul Squires

3 new features for the PsListBox control

Spanned rows
An ordinary, selectable row can be made to paint as one cell across the whole column band instead of one cell per column — PsListBox_SetRowSpanColumns( h, row, true ). Use it for a section note, a "no results" line, or any wide message row that lives among columned rows.

Non-selectable rows
A row can be made non-selectable — PsListBox_SetRowSelectable( h, row, false ). It then cannot be selected or focused by any path, and keyboard navigation skips over it.

Drag-and-drop reordering
Opt in with PsListBox_SetDragReorder( h, true ) (default is OFF) and the user can drag a row, or a group of selected rows, to new positions inside the same list.


Paul Squires
PlanetSquires Software

Paul Squires

New control: PsDatePicker

This is a very good control and quite feature complete.

I have attached some screenshots.
Paul Squires
PlanetSquires Software

Paul Squires

New control: PsProgressBar

Easier one because it is all visual.

Paul Squires
PlanetSquires Software

Paul Squires

New control: PsOptionButton

Similar to PsCheckButton but allows for mutual exclusive selection with a group of PsOptionButtons.

Paul Squires
PlanetSquires Software

Paul Squires

Help Center documentation updated for the new controls. PsProgressBar and PsOptionButton

https://www.planetsquires.com/docs/

Paul Squires
PlanetSquires Software

Paul Squires

New control: PsToolbar

The attached screenshot is from the test demo. I'm sure that in practice we can design and implement more beautiful looking toolbars.  :-)
Paul Squires
PlanetSquires Software

Paul Squires

New control: PsCalendar

Similar to its related sibling the PsDatePicker. This control embeds into a form whereas PsDatePicker is a popup. They share some commonality but also a number of quite different properties.
Paul Squires
PlanetSquires Software

Paul Squires

New control: PsTooltip

Easier to use ownerdraw, multiline, themed, and icon enabled tooltip popup.
Paul Squires
PlanetSquires Software

Paul Squires

New control: PsImage

A small support class for loading a raster image — .ico, .png, .bmp, .jpg, or an existing HBITMAP/HICON — so an owner-drawn control can show a real picture in an icon slot instead of (or as well as) a Segoe Fluent Icons glyph. Works in harmony with other controls such as PsButton, PsToolBar, PsIconPanel.
Paul Squires
PlanetSquires Software

Paul Squires

Updated control:  PsListBox -> renamed to -> PsListTree

Changed the name in order to better reflect the new capabilities. PsListTree emulates the best of traditional listboxes and treeviews. The recent treeview additions allow for unlimited parent/child branches and in-place node editing.

Paul Squires
PlanetSquires Software

Paul Squires

FYI - taking a week to build all of these standalone custom controls is really starting to pay dividends now that I am refactoring the guts of Tiko. Large areas of code, often times duplicated, is now replaced with better defined custom controls.
Paul Squires
PlanetSquires Software