delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/22/17:20:32

From: et1850 AT aol DOT com (Et1850)
Newsgroups: comp.os.msdos.djgpp
Subject: I NEED SOME ANSWERS TO MY QUESTIONS
Lines: 36
NNTP-Posting-Host: ladder05.news.aol.com
X-Admin: news AT aol DOT com
Date: 22 Mar 1999 21:31:56 GMT
Organization: AOL http://www.aol.com
Message-ID: <19990322163156.10646.00000122@ng-fb1.aol.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Some Questions

1. how do i get and r,g,b, into a one diget color. rgb needs three numbers but
   the command in allegro want one number.

   RGB mycolor = {43,56,123};   *rgb colors here are ex.

   set_color = (0,mycolor);	*Wrong, mycolor is not const 
               (0,&mycolor)     *Wrong, mycolor is not int
   
   looking to mask sprites. but can't figure out my colors. (did it in windows
   using hex colors). so how would i get grey or pink (24-bit). also need to
   use colors for gui.

2. when getting .bmp or .pcx files(pics) from a data file is there a way to
   index to the next file without calling the name of the pic i have chose

   BASIC Ex.
     for i=0 to eof
       bmp = i
     next i  

   if so that would shrink my code down considerably. :)

3. is there a way to get two dialogs to initialize at once, i've tried to
create a tool bar of icons and a menu bar(in one dialog), but with all the icon
procs the menu bar does not display correctly. when i put the menu bar in one
dialog and the tool bar in another they both display fine. but i lose the
ability to use one of the dialogs in the process.(usually the menu bar). memory
is not a prob have 13M to play with. if code would be of help e-mail me for its
somewhat big.

4. i get strange errors in something called sigxxx ?

5. how would one create a .h file so that way i could add them as new libs to
djgpp?

- Raw text -


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