Changing color in a pop up list or check box

2007-08-15 Thread stuffandstuffandstuffus
I want to change the color of a control that frequently redraws itself like a pop up list or a check box which redraw every time they are changed. For labels my book said the best way was to change the draw color, hide the label, then show it again, and since labels aren't generally updated

RE: Changing color in a pop up list or check box

2007-08-15 Thread John V Sutton
LstSetDrawFunction is the easiest way for lists. Not so sure about checkboxes, maybe just redraw it every time you get a changed event from it? From the docs... LstSetDrawFunction Purpose Set a callback function to draw each item instead of drawing the item's text string. Regards John

RE: Changing color in a pop up list or check box

2007-08-15 Thread stuffandstuffandstuffus
But won't that just change the color in the list itself. In a pop-up it's the trigger label that gets updated automatically with the current list selection, so the color of the list shouldn't affect that. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see

RE: Changing color in a pop up list or check box

2007-08-15 Thread John V Sutton
But won't that just change the color in the list itself. Yes, you're right, sorry I thought you wanted that as well. For all other controls you'll have to redraw them when you get the relevant events, none seem to have a SetDrawFunction sadly. Regards John -- For information on using the ACCESS

Re: Changing color in a pop up list or check box

2007-08-15 Thread Michal Seliga
try to play with UI COlor Lists (described in palmos reference docs, in chapter User Interface) by setting these you may temporarily change colors for some parts of screen and system will use them for drawing. for popup list you can do it just before calling LstPopup and return it back to

Re: Changing color in a pop up list or check box

2007-08-15 Thread stuffandstuffandstuffus
I'm a bit concerned about blinking effects. For example, with a check box when I catch the control event it has already redrawn it, so then I would have to change color and redraw again, which could cause a blinking effect. I can see this now already in one case. I have a check box that can not

Re: Changing color in a pop up list or check box

2007-08-15 Thread stuffandstuffandstuffus
Okay, I realized that I can catch an EnterEvent for the check box to at least stop it from blinking when I prevent it from unchecking. I also thought i could catch the pop up trigger here, and tried this as well as just resetting the label myself in the selectevent and then setting handled to

RE: Changing color in a pop up list or check box

2007-08-15 Thread John V Sutton
I'm a bit concerned about blinking effects. For example, with a check box when I catch the control event it has already redrawn it, so then I would have to change color and redraw again, which could cause a blinking effect. With a check box, have you tried catching the ctlEnterEvent, I think

RE: Changing color in a pop up list or check box

2007-08-15 Thread John V Sutton
I tried an exit even on both the pop up trigger and on the pop up list itself, but neither of these seem to work to rest the color, so they are being generated. There are 3 events generated if you tap outside of a popup list in the way you describe; 1. winExitEvent 2. winEnterEvent 3.

Re: Changing color in a pop up list or check box

2007-08-15 Thread Michal Seliga
for poptrigger you can react on ctlEnterEvent, when it comes do LstPopupList and process returned selections, its -1 if nothing was selected or position which was selected. then you can update trigger control and mark event as handled. you will never get popselectevent anymore but all processing

palm codec manager

2007-08-15 Thread Andrew Tamoney
Im trying to play mp3 files in my application and I am using a treo 700P. I thought the treo 700P had support for this feature but whenever A call err = SysLibFind(kCodecMgrLibName, gMiniInfo.CodecMgrLibRefNum); A get error 0x050A which is sysErrLibNotFound which makes me think that the 700P

ZLib without globals?

2007-08-15 Thread Greg
I would like to use ZLib as part of a library. The library must not access globals. Is it possible to use ZLib without using globals? I am getting an error on the calls to check for ZLib on the Palm, ZLibRef is a global and because I initiated in a mode where globals are not allowed I am

Re: ZLib without globals?

2007-08-15 Thread PhreakOnALeash
Hi Greg, you can store the libref in feature mem, accessing when necessary... Just a quickthought from a Phrk on the run... Greg wrote on 8/15/07 7:17 pm I would like to use ZLib as part of a library. The library must not access globals. Is it possible to use ZLib without using globals?

Run68K.c, Invalid read from FFFFFFF0

2007-08-15 Thread Viswanathan
hi.. when i m running my application i am getting error as Run68K.c, Invalid read from FFF0..since i am new to Palm OS i couldnt find out why it is happening..and also in the debugging mode it stops atunlk a6(in disassemble stage)... plz help me to do something.. thanks in