PDA

Click to See Complete Forum and Search --> : Many Questions Urgent!!!!!!


superkat
Feb 9th, 2001, 09:04 PM
1. How do I change the palette back after I loaded bmp and when i loaded it the palette was changed.

2. How do I stop flickering when I use get and put to move an object?

3. How do I make a dir list box?

Feb 15th, 2001, 08:13 PM
what r u talking about... qB?

superkat
Feb 16th, 2001, 04:42 PM
Qbasic
In Screen 13

TB
Feb 17th, 2001, 09:39 AM
You may usthe PALETTE function to change the palette values.

syntax:
PALETTE Color(0 to 255 in screen 13),NewColor

NewColor is a LONG variable that contains the RGB Color
but you can only use 262144 Colors.
(That means tha the maximum value of red,green or blue is not 255 but 64.)

To get the color value use this:

red + green*256 + blue*65535

the valiables red,green and blue contains a value between 0 and 64.
For example 64 + 64*256 + 64*65535 returns white.