Store the Column Configuration [in tables] - WINDEV November 07, 2018 12:47PM |
Registered: 5 years ago Posts: 38 |
Re: Store the Column Configuration [in tables] - WINDEV November 07, 2018 07:50PM |
Registered: 5 years ago Posts: 28 |
Re: Store the Column Configuration [in tables] - WINDEV November 08, 2018 06:13AM |
Admin Registered: 54 years ago Posts: 280 |
PROCEDURE ResetColumnConfiguration() TC,TX, TW, TD are int PopName is string = PopupField() TN is string TC = TableCount(PopName,toColumn) FOR TX = 1 TO TC TN = TableEnumColumn(PopName,TX) TableMoveColumn(PopName,TN,TX) IF {PopName+"."+TN,indControl}..InitialVisible = False THEN {PopName+"."+TN,indControl}..Visible = False ELSE {PopName+"."+TN,indControl}..Visible = True END END FOR TX = 1 TO TC TN = TableEnumColumn(PopName,TX) {PopName+"."+TN,indControl}..Width = {PopName+"."+TN,indControl}..InitialWidth IF {PopName+"."+TN,indControl}..Visible = True THEN TW += {PopName+"."+TN,indControl}..Width END END TD = {PopName,indControl}..Width - TW - 18 // 18 ~= Width of vertical scrollbar of Table FOR TX = 1 TO TC TN = TableEnumColumn(PopName,TX) {PopName+"."+TN,indControl}..Width += TD * {PopName+"."+TN,indControl}..AnchorRateWidth / 1000 END RETURN
Re: Store the Column Configuration [in tables] - WINDEV November 08, 2018 10:12AM |
Registered: 5 years ago Posts: 38 |
Re: Store the Column Configuration [in tables] - WINDEV November 09, 2018 08:49AM |
Admin Registered: 54 years ago Posts: 280 |
Re: Store the Column Configuration [in tables] - WINDEV November 09, 2018 10:57AM |
Registered: 5 years ago Posts: 38 |