From: | Nick Clover |
Date: | 30 Sep 2000 at 15:04:10 |
Subject: | Re: Luky's problems |
Hello Lukas
On 29-Sep-00, you wrote:
> 1)How can I get a colour number
> of any pixel in workbench window ?
If you can get the rastport address of the workbench window use:
colour.l=readpixel_ [rastport],[x],[y]
> 2)I use command WBlit to display a brush into
> workbench window. But it is slow.
> Is there any fastest way ? WB Sprites ?
I use this to copy a bit of the workbench screen into my own window, maybe you
can modify it.
WIN_HEIGHT.w=total(menunum)*FontHeight+3
WIN_WIDTH.w=maxlength
WIN_X.w=winx
WIN_Y.w=BHeight+FontHeight+2
*bm2.BitMap=AllocBitMap_(WIN_WIDTH,WIN_HEIGHT,*SCR\RastPort\BitMap\Depth,$10,*SCR\RastPort\BitMap)
rastp\BitMap=*bm2
res=BltBitMapRastPort_(*SCR\RastPort\BitMap,WIN_X,WIN_Y,&rastp,0,0,WIN_WIDTH,WIN_HEIGHT,$C0)
Window 1,WIN_X,WIN_Y,WIN_WIDTH,WIN_HEIGHT,$1800,"",-1,-1
*rp.l=RastPort(1)
BltBitMapRastPort_ rastp\BitMap,0,0,*rp,0,0,WIN_WIDTH,WIN_HEIGHT,$C0
> 4)How can I play a module (*.MOD)
> and sounds at the same time ?
Only way I can think of is to use AHI and audio: device to mix the channels
> 6)How can I declare GLOBAL variable ?
Use SHARED command in all functions and statements
> 7)A problem with tooltypes.
> How can I get the program-name ?
> I use GetIconObject("example"),
> but if you rename the program "example",
> tooltypes don't work.
I use this method:
name.s=Peek$(Peek.l(FindTask_(0)+$B0)+4) ;find my programs task name (same as filename)
GetIconObject("PROGDIR:"+name)
> 9)Is there any program, which convert
> BB2 files into ASC ?
Save ASCII....... in the Project Menu
> 10)Where can I found a lot of 'Blitzlibs' ?
Try the Blitz Webring
# http://nav.webring.org/cgi-bin/navcgi?ring=blitzring#;list
Regards
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie