set column

set column

Postby Silvio.Falconi » Tue Nov 16, 2021 12:12 pm

Nages ,
I ask on this topic How select the column to print
http://forums.fivetechsupport.com/viewtopic.php?f=3&t=40956&sid=487478362ab4a54540a59f1b0e59eb8f&sid=487478362ab4a54540a59f1b0e59eb8f#p245511
the problem is I have a Xbrowse with :SetMultiSelectCol() and on the column acols are not this column of checkbox

I explain you
I have an xbrowse with some buttons below
when I press "print" a small window opens where the user can set the type of printing (horizontal or vertical) and can press a button to select the columns to be printed

Image

when the user presses to select the columns, a dialog opens OptionPrint(oBrw) that you see with the list of columns

BITMAP "PRINT_CONFIG" LEFT;
ACTION ( aColumns:= OptionPrint(oBrw),;
cSave := oBrw:SaveState(),;
oBrw:ReArrangeCols( aColumns ) )



Note that the first column is the checkbox and the others are the columns that are in the main xbrowse
when the user has selected the columns and confirm it I return to the report option dialog and return a content to acolumns

ACTION ( aCols := {}, ;
AEval( oBrw:aArrayData, { |a| If( a[ 3 ], AAdd( aCols, oBrowse:aCols[ a[ 2 ] ] ), nil ) } ), ;
oDlgOptions:end( IDOK ) )

...

IF oDlgOptions:nresult == IDOK
return aCols
ENDIF

return NIL


everything works fine but my concern is that if the user does not click on the first column (checkbox) then he prints the FALSE value for that column


Image
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7033
Joined: Thu Oct 18, 2012 7:17 pm

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 59 guests