Now let's see how to bind single bitmap files into one MBM file.
Since you've already installed View+, the easiest way is to take use of CLIPBIT.OPX.
Edo
Code:
REM MbmBind code snippet ŠEdo 22.09.05.
REM Bind single bitmap files into one MBM file
REM Bitmap files must be named like 000.mbm, 001.mbm, 002.mbm etc...
REM MBM file will be created in the same folder where source files are found
REM CLIPBIT.OPX must be installed in your \system\opx\ folder
INCLUDE "Const.oph"
INCLUDE "Clipbit.oxh"
PROC MbmBind:
LOCAL path$(255), MBM$(255), bitmaps%
MBM$ = ".mbm"
dINIT "Bind bitmaps into single MBM file", KDlgButRight%
dEDIT MBM$, "MBM file name", 15
dFILE path$, "Source folder", KDFileFoldersOnly% + KDFileSelectorWithSystem%
dBUTTONS "Cancel",KDButtonEsc%, "Ok",KDButtonEnter%
IF 0 = DIALOG
STOP
ENDIF
bitmaps%=MbmBind%:(Path$, MBM$)
PRINT ""
PRINT "Added", NUM$(bitmaps%,3), "bitmaps"
IF EXIST(MBM$)
PRINT "MBM file", MBM$, "created"
ENDIF
PRINT "Press any key to close"
GET
ENDP
PROC MbmBind%:(path$, mbm$)
LOCAL dummy%, bitfile$(100,150), bitmaps&, bid&(100), i%
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum