X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 19 Aug 2011 04:37 PM by  anon
startup files in WIndows in IDL 7.0 - help!
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
19 Aug 2011 04:37 PM
    Hi folks - I am triyng to set up a very simple startup file for IDL 7.0 in Windows. I know to set the environment variable, and IDL obviosuly sees my file and tries to exceute it... but parts of it work and others do not. I am at a loss! here is the code: DEVICE, RETAIN=2, TRUE_COLOR=24, DECOMPOSED=0 LOADCT, 0 !P.BACKGROUND=’FFFFFF’x !P.COLOR=’000000’x !P.FONT=-1 DEVICE, SET_CHARACTER_SIZE=[9,12] Window, XSIZE=400, YSIZE=400, /PIXMAP Plot, Findgen(11) WDelete, !D.Window here is the result upon startup: % Keyword TRUE_COLOR not allowed in call to: DEVICE % Execution halted at: $MAIN$ % Compiled module: LOADCT. % Compiled module: FILEPATH. % Compiled module: PATH_SEP. % LOADCT: Loading table B-W LINEAR % Variable is undefined: B. % Execution halted at: $MAIN$ % Variable is undefined: B. % Execution halted at: $MAIN$ .. any ideas what is going on, here? It's says like this I miss Unix.. thanks, Cyndy

    Deleted User



    New Member


    Posts:
    New Member


    --
    23 Aug 2011 01:24 PM
    Hi Cyndy, The TRUE_COLOR keyword to the DEVICE procedure is only valid if you are using the following devices: METAFILE, PRINTER, X Take a look at the IDL help about DEVICE, it says: TRUE_COLOR (METAFILE, PRINTER, X) Use this keyword to select TrueColor visuals for the output device. For the METAFILE and PRINTER Devices: Set this keyword to a value greater than zero to place the output device in in RGB or 24-bit TrueColor mode. The number of bits per pixel specified is ignored. For the X Device: Set this keyword equal to the number of bits per pixel to be used. This keyword has effect only if no windows have been created. Cheers, I hope that's the problem, Fernando
    You are not authorized to post a reply.