Skip to content

Utility PropTable function#114

Merged
sloorush merged 2 commits intodevtfrom
proptable
Mar 9, 2026
Merged

Utility PropTable function#114
sloorush merged 2 commits intodevtfrom
proptable

Conversation

@cursork
Copy link
Contributor

@cursork cursork commented Mar 6, 2026

This is intended to be used to do a quick visual check of a component to see if PropList and Defaults are aligned and if Supported and Dynamic are correct.

Example:

      EWC.PropTable'Button'
Property    │ Sup │ Dyn │ Default                                                                   
────────────┼─────┼─────┼───────────────────────────────────────────────────────────────────────────
Type        │ ✓   │     │ 'Button'                                                                  
Caption     │ ✓   │     │ ''                                                                        
Posn        │ ✓   │ ✓   │ 37 217                                                                    
Size        │ ✓   │ ✓   │ 23 44                                                                     
Style       │ ✓   │     │ 'Push'                                                                    
Coord       │     │     │ 'Inherit'                                                                 
Align       │ ✓   │     │ 'None'                                                                    
State       │ ✓   │ ✓   │ 0                                                                         
Default     │     │     │ 0                                                                         
Cancel      │     │     │ 0                                                                         
Border      │     │     │ 0                                                                         
Justify     │     │     │ 'None'                                                                    
Active      │ ✓   │     │ 1                                                                         
Visible     │ ✓   │     │ 0                                                                         
Event       │ ✓   │     │ 2⍴0                                                                       
Sizeable    │     │     │ 0                                                                         
Dragable    │     │     │ 0                                                                         
FontObj     │     │     │ ''                                                                        
FCol        │     │     │ 0                                                                         
BCol        │     │     │ 0                                                                         
Picture     │ ✓   │     │ '' 3                                                                      
BtnPix      │     │     │ 3⍴⊂''                                                                     
CursorObj   │     │     │ ''                                                                        
AutoConf    │     │     │ 3                                                                         
Data        │     │     │ ⍬                                                                         
Attach      │ ✓   │     │ 4⍴⊂'None'                                                                 
EdgeStyle   │     │     │ 'None'                                                                    
Handle      │     │     │ 4138750                                                                   
Hint        │     │     │ ''                                                                        
HintObj     │     │     │ ''                                                                        
Tip         │     │     │ ''                                                                        
TipObj      │     │     │ ''                                                                        
ReadOnly    │     │     │ 0                                                                         
Translate   │     │     │ 'Inherit'                                                                 
Accelerator │     │     │ 2⍴0                                                                       
AcceptFiles │     │     │ 0                                                                         
KeepOnClose │     │     │ 0                                                                         
Redraw      │     │     │ 1                                                                         
TabIndex    │     │     │ 5                                                                         
Elevated    │     │     │ 0                                                                         
Note        │     │     │ ''                                                                        
MethodList  │     │     │ 'Detach' 'GetTextSize' 'Animate' 'GetFocus' 'ShowSIP' 'GetFocusObj' 'Ch...
ChildList   │     │     │ 'Font' 'Poly' 'Ellipse' 'Circle' 'Text' 'Rect' 'Marker' 'Bitmap' 'Curso...
EventList   │     │     │ 'Close' 'Create' 'DragDrop' 'Configure' 'ContextMenu' 'DropFiles' 'Drop...
PropList    │     │     │ 'Type' 'Caption' 'Posn' 'Size' 'Style' 'Coord' 'Align' 'State' 'Default...
CSS         │ ✓   │     │ ''                                                                        
CssClass    │ ✓   │     │ ''                                                                        

cursork added 2 commits March 6, 2026 12:40
This is intended to be used to do a quick visual check of a
component to see if PropList and Defaults are aligned and if
Supported and Dynamic are correct.

Example:

      EWC.PropTable 'Button'
Property    │ Default                                                                    │ Sup │ Dyn
────────────┼────────────────────────────────────────────────────────────────────────────┼─────┼────
Type        │ 'Button'                                                                   │ ✓   │
Caption     │ ''                                                                         │ ✓   │
Posn        │ 37 217                                                                     │ ✓   │ ✓
Size        │ 23 44                                                                      │ ✓   │ ✓
Style       │ 'Push'                                                                     │ ✓   │
Coord       │ 'Inherit'                                                                  │     │
Align       │ 'None'                                                                     │ ✓   │
State       │ 0                                                                          │ ✓   │ ✓
Default     │ 0                                                                          │     │
Cancel      │ 0                                                                          │     │
Border      │ 0                                                                          │     │
Justify     │ 'None'                                                                     │     │
Active      │ 1                                                                          │ ✓   │
Visible     │ 0                                                                          │ ✓   │
Event       │ 2⍴0                                                                        │ ✓   │
Sizeable    │ 0                                                                          │     │
Dragable    │ 0                                                                          │     │
FontObj     │ ''                                                                         │     │
FCol        │ 0                                                                          │     │
BCol        │ 0                                                                          │     │
Picture     │ '' 3                                                                       │ ✓   │
BtnPix      │ 3⍴⊂''                                                                      │     │
CursorObj   │ ''                                                                         │     │
AutoConf    │ 3                                                                          │     │
Data        │ ⍬                                                                          │     │
Attach      │ 4⍴⊂'None'                                                                  │ ✓   │
EdgeStyle   │ 'None'                                                                     │     │
Handle      │ 4138750                                                                    │     │
Hint        │ ''                                                                         │     │
HintObj     │ ''                                                                         │     │
Tip         │ ''                                                                         │     │
TipObj      │ ''                                                                         │     │
ReadOnly    │ 0                                                                          │     │
Translate   │ 'Inherit'                                                                  │     │
Accelerator │ 2⍴0                                                                        │     │
AcceptFiles │ 0                                                                          │     │
KeepOnClose │ 0                                                                          │     │
Redraw      │ 1                                                                          │     │
TabIndex    │ 5                                                                          │     │
Elevated    │ 0                                                                          │     │
Note        │ ''                                                                         │     │
MethodList  │ 'Detach' 'GetTextSize' 'Animate' 'GetFocus' 'ShowSIP' 'GetFocusObj' 'Ch... │     │
ChildList   │ 'Font' 'Poly' 'Ellipse' 'Circle' 'Text' 'Rect' 'Marker' 'Bitmap' 'Curso... │     │
EventList   │ 'Close' 'Create' 'DragDrop' 'Configure' 'ContextMenu' 'DropFiles' 'Drop... │     │
PropList    │ 'Type' 'Caption' 'Posn' 'Size' 'Style' 'Coord' 'Align' 'State' 'Default... │     │
CSS         │ ''                                                                         │ ✓   │
CssClass    │ ''                                                                         │ ✓   │
Copy link
Member

@sloorush sloorush left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No hard util function. LGTM! 🎊

@sloorush sloorush merged commit e8c0e68 into devt Mar 9, 2026
@sloorush sloorush deleted the proptable branch March 9, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants