... to sort the dbf https://i.postimg.cc/28W1PtJb/j.png initial run ok , them when I click on header it refresh the oBrw but not the nHeadBmpNo why ? look this sample #include "fivewin.ch"REQUEST DBFCDXfunction Main() local oDlg, oBrw local ...
Recommendations: Please avoid using ADD COLUMN TO oBrw. This syntax was created long time back only to help easy migration of already existing code from TCBrowse. Also we better inform the xbrowse that the datasource is the array while creating the browse. Recommended syntax: aData := {; ...
... run ok I have WITH OBJECT oApp():oGrid WITH OBJECT oApp():oGrid:aCols[1] :AddResource("SORT_1_16") :AddResource("SORT_2_16") :nHeadBmpNo := 1 :nHeadBmpAlign := AL_RIGHT :bLClickHeader :={ ||(CuSel_Index(1,"CU"), CU->(DbSetOrder(1),nOrder:=1) ) } END END IF I insert ...
... la clase de xbrowse, tuve que improvisar: En Botón en los Header puse una imagen: oLbx:aCols[ 3 ]:AddResource("flecha"); oLbx:aCols[ 3 ]:nHeadBmpNo := 1;oLbx:aCols[ 3 ]:nHeadBmpAlign := AL_RIGHT oLbx:aCols[ 4 ]:AddResource("flecha"); oLbx:aCols[ 4 ]:nHeadBmpNo := 1;oLbx:aCols[ ...
... Alpha /* SetCheck() adds to 2 bitmaps to the column. After that the bitmap ("sort.bmp") you added is the 3rd bitmap. So you should use :nHeadBmpNo := 3 Method AddBitmap( <bmpfile/resource/array> ) superceded obsolete methods AddBmpFile() and AddResource() from FWH 10.01 :nHeadBmpNo ...
SetCheck() adds to 2 bitmaps the the column. After that the bitmap ("sort.bmp") you added is the 3rd bitmap. So you should use :nHeadBmpNo := 3 Method AddBitmap( <bmpfile/resource/array> ) superceded obsolete methods AddBmpFile() and AddResource() from FWH 10.01 :nHeadBmpNo ...
... of showing text in the header, it is also possible to display an icon/bitmap/any image, using oBrw:nRecSelHeadBmpNo same way as we use oCol:nHeadBmpNo. However to simplify programming, it is also possible to specify the image name Eg: oBrw:nRecSelHeadBmpNo := "c:\fwh\icons\hires\ie.ico" ...
... ) :oHeaderFont := oVFont // defined font of a selected column :cHeader := "Age Of Employee" :AddBmpFile( '..\bitmaps\attach.bmp' ) :nHeadBmpNo := 1 END that was the reason I used : oBrw:oFont := oSysFont1 best regards Uwe :D
With predefined images at startup it works changing < :nHeadBmpNo > with my sample above I wanted to rearange the images with new names not calling the image-position Image changed by position works FOR nCol := 1 to 3 WITH OBJECT oBrw:aCols[ ...