When using the gCREATE command to create a new
window and setting the flag% to $010 (from the OPL
Wiki example) then gCOPYing into it still allows a full
colour screen to be generated.
eg:
gCREATE 0,0,100,100,1,$010 should create a 2 colour-
mode (black and white) shadowed window 4 pixels high
When you copy a bitmap onto it, all the colours are
shown
Logged In: YES
user_id=954979
Would be nice to know, which platform you are talking about.
Is it UIQ, S60, S80?
Logged In: YES
user_id=954979
Sorry West,
I haven't spot that you assign this to UIQ group.
Please look at following part from the const.oph file.
rem For DEFAULTWIN
CONST KDefaultWin2GrayMode%=0
CONST KDefaultWin4GrayMode%=1
CONST KDefaultWin16GrayMode%=2
CONST KDefaultWin256GrayMode%=3
CONST KDefaultWin16ColorMode%=4
CONST KDefaultWin256ColorMode%=5
CONST KDefaultWin64KMode%=6
CONST KDefaultWin16MMode%=7
CONST KDefaultWinRGBMode%=8
CONST KDefaultWin4KMode%=9
I havent test combination of flag% ANDed with different
options, but this works for me (at least on emulator).
If I assign flag%=KDefaultWin2GrayMode% then I can see
only blakc and white images.
Try this with Evan's Core application.
Bye,
Pawel
Logged In: YES
user_id=988867
Tried changing the gcreate command to gCREATE
0,0,100,100,1,0 but it still shows bitmaps pasted to it in full
colour. Is the wiki documentation for this command correct?
EPOC and Symbian: id%=gCREATE(x%,y%,w%,h%,v%,flags%)
where v is the visibility and flags is the mode.
However, when I try it on the emulator the command works
fine.
by the way, I am using a P800 as the test device.