This forum is for eXpress++ general support.
			
		
		
			
				
																			
								skiman 							 
									
		Posts:  1218 Joined:  Thu Jan 28, 2010 1:22 amLocation:  Sijsele, Belgium
				Contact: 
				
			 
				
		 
		
						
						
													
							
						#1 
						Post 
					 
								by skiman  Wed Feb 24, 2010 6:08 am 
			
			
			
			
			Hi Roger,
Is seems as the following isn't working with my external resources DLL? 
Code: Select all 
DCBROWSECOL DATA ;
{|| stock->(dbseek(bonart->art_nummer)),if(bonart->(deleted()), ABO_MINI_CANCEL,ABO_MINI_EMPTY )} ;
HEADER "Del" ;
PARENT oBrowseart WIDTH 1 ;
TYPE XBPCOL_TYPE_BITMAP 
		 
				
		
		 
	 
	
		
		
			
				
								rdonnay 							 
						Site Admin 			
		Posts:  4868 Joined:  Wed Jan 27, 2010 6:58 pmLocation:  Boise, Idaho USA
				Contact: 
				
			 
				
		 
		
						
						
													
							
						#2 
						Post 
					 
								by rdonnay  Wed Feb 24, 2010 7:50 am 
			
			
			
			
			Try this:
Code: Select all 
DCBROWSECOL DATA ;
{|| stock->(dbseek(bonart->art_nummer)),DC_GetBitmap(if(bonart->(deleted()), ABO_MINI_CANCEL,ABO_MINI_EMPTY ))} ;
HEADER "Del" ;
PARENT oBrowseart WIDTH 1 ;
TYPE XBPCOL_TYPE_BITMAP The eXpress train is coming - and it has more cars. 
						 
		 
				
		
		 
	 
	
		
		
			
				
																			
								skiman 							 
									
		Posts:  1218 Joined:  Thu Jan 28, 2010 1:22 amLocation:  Sijsele, Belgium
				Contact: 
				
			 
				
		 
		
						
						
													
							
						#3 
						Post 
					 
								by skiman  Wed Feb 24, 2010 7:51 am 
			
			
			
			
			Hi,
I just tested it with the BITMAP_BUG_M and this is working. So it seems as it is nothing in my code this time.  
Using a bitmap from my ABORES.DLL isn't working for the dcBrowseCol.
 
		 
				
		
		 
	 
	
		
		
			
				
								rdonnay 							 
						Site Admin 			
		Posts:  4868 Joined:  Wed Jan 27, 2010 6:58 pmLocation:  Boise, Idaho USA
				Contact: 
				
			 
				
		 
		
						
						
													
							
						#4 
						Post 
					 
								by rdonnay  Wed Feb 24, 2010 8:09 am 
			
			
			
			
			Are you saying that the DC_GetBitmap() addition isn't working?
Columns of XBPCOL_TYPE_BITMAP require an XbpBitMap() object and that is the purpose of DC_GetBitmap().
It should always return a bitmap object.
Try this in your code and tell me what it returns:
 
 The eXpress train is coming - and it has more cars. 
						 
		 
				
		
		 
	 
	
		
		
			
				
																			
								skiman 							 
									
		Posts:  1218 Joined:  Thu Jan 28, 2010 1:22 amLocation:  Sijsele, Belgium
				Contact: 
				
			 
				
		 
		
						
						
													
							
						#5 
						Post 
					 
								by skiman  Wed Feb 24, 2010 9:06 am 
			
			
			
			
			Roger,
			
			
									
									
						 
		 
				
		
		 
	 
	
		
		
			
				
								rdonnay 							 
						Site Admin 			
		Posts:  4868 Joined:  Wed Jan 27, 2010 6:58 pmLocation:  Boise, Idaho USA
				Contact: 
				
			 
				
		 
		
						
						
													
							
						#6 
						Post 
					 
								by rdonnay  Wed Feb 24, 2010 9:10 am 
			
			
			
			
			I can't figure this out unless you send me your resource dll.
			
			
									
									 The eXpress train is coming - and it has more cars. 
						 
		 
				
		
		 
	 
	
		
		
			
				
																			
								skiman 							 
									
		Posts:  1218 Joined:  Thu Jan 28, 2010 1:22 amLocation:  Sijsele, Belgium
				Contact: 
				
			 
				
		 
		
						
						
													
							
						#7 
						Post 
					 
								by skiman  Wed Feb 24, 2010 9:44 am 
			
			
			
			
			Roger,
I just mailed my resources DLL to you.
Code: Select all 
    DCBROWSECOL DATA {||  DC_GetBitmap(ABO_SEARCH_MINI) } ;
       HEADER "Del" ;
       PARENT oBrowseart WIDTH 1 ;
       TYPE XBPCOL_TYPE_BITMAP
The above also doesn't work.
 
		 
				
		
		 
	 
	
		
		
			
				
								rdonnay 							 
						Site Admin 			
		Posts:  4868 Joined:  Wed Jan 27, 2010 6:58 pmLocation:  Boise, Idaho USA
				Contact: 
				
			 
				
		 
		
						
						
													
							
						#8 
						Post 
					 
								by rdonnay  Wed Feb 24, 2010 10:43 am 
			
			
			
			
			Run the below code:
It works fine for me.
Code: Select all 
#INCLUDE "dcdialog.CH"
FUNCTION Main()
LOCAL GetList[0], oBrowse, aBitmaps[0], nDll, i, oBitmap
nDll := DllLoad('abores.dll')
DC_BitmapResourceFile(nDll)
FOR i := 10000 to 10333
  oBitmap := DC_GetBitmap(i)
  IF Valtype(oBitmap) == 'O' .AND. oBitmap:xSize > 0
    AAdd(aBitmaps,{Alltrim(Str(i)),DC_GetBitmap(i),i})
  ENDIF
NEXT
@ 0,0 DCBROWSE oBrowse DATA aBitmaps SIZE 20,20 FIT
DCBROWSECOL ELEMENT 1 HEADER 'Res[1]' WIDTH 10  PARENT oBrowse
DCBROWSECOL ELEMENT 2 HEADER 'Bitmap[2]' WIDTH 10  PARENT oBrowse ;
   TYPE XBPCOL_TYPE_BITMAP
DCBROWSECOL DATA {||DC_GetColArray(3,oBrowse)} HEADER 'Res[3]' WIDTH 10  ;
   PARENT oBrowse PICTURE '99999'
DCBROWSECOL DATA {||DC_GetBitmap(DC_GetColArray(3,oBrowse))} HEADER 'Bitmap[3]' ;
   WIDTH 10  PARENT oBrowse TYPE XBPCOL_TYPE_BITMAP
DCREAD GUI FIT TITLE 'Browse ABORES.DLL bitmaps'
RETURN nil
PROC appsys ; return The eXpress train is coming - and it has more cars. 
						 
		 
				
		
		 
	 
	
		
		
			
				
																			
								skiman 							 
									
		Posts:  1218 Joined:  Thu Jan 28, 2010 1:22 amLocation:  Sijsele, Belgium
				Contact: 
				
			 
				
		 
		
						
						
													
							
						#9 
						Post 
					 
								by skiman  Wed Feb 24, 2010 1:10 pm 
			
			
			
			
			Roger,
I added the following to your sample.
Code: Select all 
DCBROWSECOL DATA {|| dc_getbitmap(ABO_SEARCH_MINI)  } HEADER 'dcgetbitmap' WIDTH 10  PARENT oBrowse ;
   TYPE XBPCOL_TYPE_BITMAP
DCBROWSECOL DATA {|| ABO_SEARCH_MINI } HEADER 'ext. res' WIDTH 10  PARENT oBrowse ;
   TYPE XBPCOL_TYPE_BITMAP
DCBROWSECOL DATA {|| BITMAP_BUG_M } HEADER 'int. res' WIDTH 10  PARENT oBrowse ;
   TYPE XBPCOL_TYPE_BITMAP
It is working with the dc_getbitmap in the sample. I have to check why this doesn't work in my application.
The second column isn't working. If it is necesary to add the dc_getbitmap I have to modify it in all my sources. This is not a big problem, if there is no other solution.
 
		 
				
		
		 
	 
	
		
		
			
				
								rdonnay 							 
						Site Admin 			
		Posts:  4868 Joined:  Wed Jan 27, 2010 6:58 pmLocation:  Boise, Idaho USA
				Contact: 
				
			 
				
		 
		
						
						
													
							
						#10 
						Post 
					 
								by rdonnay  Wed Feb 24, 2010 1:34 pm 
			
			
			
			
			The second column isn't working. If it is necesary to add the dc_getbitmap I have to modify it in all my sources. This is not a big problem, if there is no other solution.
Yes, it is necessary.  Sorry, but I don't know how to get around this.
I could modify the source for DC_XbpBrowse() to have it automatically modify your code block if it is an XBPCOL_TYPE_BITMAP, but I'd rather not do this unless it is absolutely necessary.
 The eXpress train is coming - and it has more cars.