Skip to content

Commit 8541eb4

Browse files
committed
feat: allow sorting columns in table designer
Refs #2220
1 parent caeae88 commit 8541eb4

File tree

2 files changed

+81
-175
lines changed

2 files changed

+81
-175
lines changed

source/table_editor.lfm

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -998,98 +998,81 @@ object frmTableEditor: TfrmTableEditor
998998
item
999999
Alignment = taRightJustify
10001000
MinWidth = 20
1001-
Options = [coDraggable, coEnabled, coParentBidiMode, coParentColor, coShowDropMark, coVisible, coAllowFocus]
10021001
Position = 0
10031002
Text = '#'
10041003
Width = 25
10051004
end
10061005
item
10071006
MinWidth = 50
1008-
Options = [coDraggable, coEnabled, coParentBidiMode, coParentColor, coResizable, coShowDropMark, coVisible, coAllowFocus]
10091007
Position = 1
10101008
Text = 'Name'
10111009
Width = 125
10121010
end
10131011
item
1014-
Options = [coDraggable, coEnabled, coParentBidiMode, coParentColor, coResizable, coShowDropMark, coVisible, coAllowFocus]
10151012
Position = 2
10161013
Text = 'Datatype'
10171014
Width = 112
10181015
end
10191016
item
1020-
Options = [coDraggable, coEnabled, coParentBidiMode, coParentColor, coResizable, coShowDropMark, coVisible, coAllowFocus]
10211017
Position = 3
10221018
Text = 'Length/Set'
10231019
Width = 112
10241020
end
10251021
item
1026-
Alignment = taCenter
1027-
Options = [coDraggable, coEnabled, coParentBidiMode, coParentColor, coResizable, coShowDropMark, coVisible, coAllowFocus]
10281022
Position = 4
10291023
Text = 'Unsigned'
10301024
Width = 75
10311025
end
10321026
item
1033-
Alignment = taCenter
1034-
Options = [coDraggable, coEnabled, coParentBidiMode, coParentColor, coResizable, coShowDropMark, coVisible, coAllowFocus]
10351027
Position = 5
10361028
Text = 'Allow NULL'
10371029
Width = 81
10381030
end
10391031
item
1040-
Options = [coDraggable, coEnabled, coParentBidiMode, coParentColor, coResizable, coShowDropMark, coVisible, coAllowFocus]
10411032
Position = 6
10421033
Text = 'Zerofill'
10431034
end
10441035
item
1045-
Options = [coDraggable, coEnabled, coParentBidiMode, coParentColor, coResizable, coShowDropMark, coVisible, coAllowFocus]
10461036
Position = 7
10471037
Text = 'Default'
10481038
Width = 125
10491039
end
10501040
item
1051-
Options = [coDraggable, coEnabled, coParentBidiMode, coParentColor, coResizable, coShowDropMark, coVisible, coAllowFocus]
10521041
Position = 8
10531042
Text = 'Comment'
10541043
Width = 162
10551044
end
10561045
item
1057-
Options = [coDraggable, coEnabled, coParentBidiMode, coParentColor, coResizable, coShowDropMark, coVisible, coAllowFocus]
10581046
Position = 9
10591047
Text = 'Collation'
10601048
Width = 125
10611049
end
10621050
item
1063-
Options = [coDraggable, coEnabled, coParentBidiMode, coParentColor, coResizable, coShowDropMark, coVisible, coAllowFocus]
10641051
Position = 10
10651052
Text = 'Expression'
10661053
Width = 125
10671054
end
10681055
item
1069-
Options = [coDraggable, coEnabled, coParentBidiMode, coParentColor, coResizable, coShowDropMark, coVisible, coAllowFocus]
10701056
Position = 11
10711057
Text = 'Virtuality'
10721058
Width = 125
10731059
end
10741060
item
10751061
Hint = 'Spatial reference system'
1076-
Options = [coDraggable, coEnabled, coParentBidiMode, coParentColor, coResizable, coShowDropMark, coVisible, coAllowFocus]
10771062
Position = 12
10781063
Text = 'SRID'
10791064
end
10801065
item
10811066
Hint = 'Hide in certain contexts'
1082-
Options = [coDraggable, coEnabled, coParentBidiMode, coParentColor, coResizable, coShowDropMark, coVisible, coAllowFocus]
10831067
Position = 13
10841068
Text = 'Invisible'
10851069
end
10861070
item
10871071
Hint = 'Storage-Engine Independent Column Compression'
1088-
Options = [coDraggable, coEnabled, coParentBidiMode, coParentColor, coResizable, coShowDropMark, coAllowFocus]
10891072
Position = 14
10901073
Text = 'Compressed'
10911074
end>
1092-
Header.Options = [hoColumnResize, hoDblClickResize, hoDrag, hoVisible, hoDisableAnimatedResize]
1075+
Header.Options = [hoColumnResize, hoDblClickResize, hoDrag, hoHotTrack, hoShowSortGlyphs, hoVisible, hoDisableAnimatedResize]
10931076
Header.PopupMenu = MainForm.popupListHeader
10941077
Images = MainForm.ImageListIcons8
10951078
IncrementalSearch = isAll
@@ -1111,10 +1094,10 @@ object frmTableEditor: TfrmTableEditor
11111094
OnGetText = listColumnsGetText
11121095
OnPaintText = listColumnsPaintText
11131096
OnGetNodeDataSize = listColumnsGetNodeDataSize
1097+
OnHeaderClick = listColumnsHeaderClick
11141098
OnInitNode = listColumnsInitNode
11151099
OnKeyPress = listColumnsKeyPress
11161100
OnNewText = listColumnsNewText
1117-
OnNodeMoved = listColumnsNodeMoved
11181101
end
11191102
object btnSave: TButton
11201103
AnchorSideLeft.Control = btnDiscard

0 commit comments

Comments
 (0)