I am trying to write a function to implement a vertical slider, one
which I can assign my own "thumb" and background image. I detect a
penDown event and pass the coordinates located in screenX/screenY. Here
is an excerpt:
case penDownEvent:
AdjustSlider(pEvent->screenX, pEvent->screenY);
break;
static void AdjustSlider(UInt16 X, UInt16 Y)
{
UInt16 sliderWidth = 14, sliderLength;
// slider #1
if( X >= 39 && X < (39 + sliderWidth))
{
if(Y < 79) DrawBitmap(3600, 78, 98); // temp move
thumb to bottum
else DrawBitmap(3600, 78, 213); // temp move
thumb to top
DrawBitmap(6000, 78, 116); // temp
erase old thumb position
}
// slider #2
// slider #3
etc...
If I use more than 3 sliders (I need to use 6 in my example), I get the
following error, can anyone help me?
>>>>>>>>>
make all
m68k-palmos-gcc -c src/AppMain.c -Isrc/ -palmos5r4
-D__PALMOS__=0x05000000 -O0 -g -o Debug/AppMain.o
....Linking...
m68k-palmos-gcc -o Debug/sample Debug/AppMain.o -g
/usr/m68k-palmos/bin/ld: region coderes is full (Debug/sample section
..text)
collect2: ld returned 1 exit status
make: *** [Debug/sample] Error 1
>>>>>>>>>
thanks in advance!
~Tony
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/