delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/02/13:02:24

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro GUI colors
Date: Wed, 30 Jul 1997 21:16:55 +0100
Organization: None
Distribution: world
Message-ID: <UfX2TCA3E63zEwvu@talula.demon.co.uk>
References: <33DF78D5 DOT ABD AT cam DOT org>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 15
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Vic writes:
>I'm using the file_select routine. However my palette is different
(it's a PSP standard palette) and the dialog box is black. I solved this 
>problem by setting the desktop palette before calling file_select but 
>the rest of the screen gets messed up. What colors does the File_select
function use? 

They are set by the global variables gui_fg_color and gui_bg_color
(which default to 255 and 0 respectively). Just change these to whatever
colors you want to use before displaying the dialog....


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019