home *** CD-ROM | disk | FTP | other *** search
EPOC OPL Source | 1998-07-20 | 1.4 KB | 69 lines |
-
-
- include "AppInfo.oxh"
-
- PROC main:
- local aifFile$(255)
- local iconFile$(255)
- local size&
- local hidden&,newfile&,embed&
-
- rem extract icons from an aif file
-
- busy "Extracting icons"
- aifFile$="z:\system\apps\Comms\Comms.aif"
- size&=48
- iconFile$="c:\System\Temp\icon"
- AppExtractAifIcon:(aifFile$, 16, 0, iconFile$+"16")
- AppExtractAifIcon:(aifFile$, 24, 0, iconFile$+"24")
- AppExtractAifIcon:(aifFile$, 32, 0, iconFile$+"32")
- AppExtractAifIcon:(aifFile$, 48, 0, iconFile$+"48")
- busy off
-
- rem display icons
-
- showmbm:(iconFile$+"16",0)
- showmbm:(iconFile$+"24",20)
- showmbm:(iconFile$+"32",48)
- showmbm:(iconFile$+"48",100)
-
- rem scan for apps
-
- busy "Scanning..."
- AppUpdate:
- busy off
- AppStartScan:
- while AppNext:
- cls
- gcls
- print AppFileName$:
- print AppCaption$:
- AppCapability:(hidden&,newfile&,embed&)
- if hidden&
- print "App is hidden"
- endif
- if embed&=1
- print "App supports embed"
- elseif embed&=2
- print "App supports embed only"
- endif
- AppExtractIcon:(2, 0, iconFile$)
- showmbm:(iconFile$,300)
- get
- endwh
- print "Done"
- get
- ENDP
- PROC showmbm:(name$,x%)
- local id%,w%,h%
- id%=gloadbit(name$)
- w%=gwidth
- h%=gheight
- guse 1
- gat x%,0
- gcopy id%,0,0,w%,h%,0
- gclose id%
- ENDP
-
-
-