PrefSetPreference() won't set alarm volume?

2004-04-07 Thread Stan Hunter
This simple code seems like it should play the alarm sound three times at three different volumes, but instead it plays the alarm three times at the exact same volume. Am I missing something here? PrefSetPreference( prefAlarmSoundVolume, (sndMaxAmp/2) ); SndPlaySystemSound( sndAlarm );

Double-density bitmaps not displaying on Sony Clie but working on Palm

2004-03-21 Thread Stan Hunter
My bitmap families with high-density bitmaps display in high-density just fine on my Palm OS 5.1 and 5.2.1 devices, but display as normal-density on my OS 4.1 Sony Clie. It is a 320x320 device. Same problem with the Sony using the non-high-def versions of the launcher icons. Both the normal

Simulator title-bar coords -- switching on off

2004-03-18 Thread Stan Hunter
In the title bar, the Palm OS 5 Simulators sometimes display the x and y coordinates of the point being moused over. I find this handy for my current project, but sometimes the title bar just says Palm OS Simulator - [ROM name]. Does anyone know what switches between these modes? I can't find

Ignoring / changing fldEnterEvent?

2002-11-26 Thread Stan Hunter
I have a table of text fields and if the user tries to put text in an illegal field (by tapping in that field), I'd like the program to put the cursor into a legal field. I tried three different ways to do this, and none of them seems to have any effect at all. The cursor keeps blinking in the

Menu items at incorrect coordinates for menu

2002-04-11 Thread Stan Hunter
I have a menu bar with two menus on it. In the app, when I tap the silk-screen menu button, the menu appears correctly, but when I tap one of the menu items and it redraws (to invert color), it draws the wrong menu item. E.g., I tap Cut and it repaints Copy with inverted colors. I figured out

WinDrawBitmap chooses wrong color depth on some devices?

2002-03-25 Thread Stan Hunter
Hello all, I've got an app that displays a bitmap family with WinDrawBitmap. The depths in this bitmap family are 1, 2, 4, and 16 bit. On an m505, this displays the 16 bit version, as it should. If I recompile with a bitmap family of 1, 2, and 4 bit images, the 4 bit image shows on the m505

Re: WinDrawBitmap chooses wrong color depth on some devices?

2002-03-25 Thread Stan Hunter
I've got an app that displays a bitmap family with WinDrawBitmap. The depths in this bitmap family are 1, 2, 4, and 16 bit. snip ... result in a one bit image being displayed on a Sony Clie, which should be showing the 4 bit version. snip What is the default color depth on the Clie?

Re: Running out of creator IDs ?

2001-11-29 Thread Stan Hunter
Don't you mean 3rd party developers have (upper lower numbers) - (just lower) = (26*2+10)^4 - 26^4 = 14,319,360 unique creator IDs to use? It would be great for Palm to have 14 million 3rd party apps out there. Stan As for the ID space, it is interesting math question. If Palm takes all

Non-Rectangular Imagemaps

2001-10-05 Thread Stan Hunter
I'm looking for general advice on how to tackle the imagemap task. The functional requirement for a Palm app I'm working on involves imagemapping over photographic images. For instance, the Palm could show a full-color bitmap of a room, and I'd want to make an imagemap that would know when you

formID changes after ctlEnterEvent? (causing read from unused portion of stack)

2001-09-17 Thread Stan Hunter
POSE emulating a PalmVx tells me my app just read from memory in the unused portion of the stack whenever I tap on a certain popup trigger in a certain form. All other popup triggers lists on that form work fine, as do all other forms in the application. On actual PalmVx devices, this does not

Updating field's scrollbar on insertion point movement

2001-09-07 Thread Stan Hunter
I have a field that updates its scrollbar on every fldChangedEvent. The problem is that this doesn't catch cases where the user moves the insertion point, causing the field to scroll. For instance, if the insertion point is at the end of the last visible line of the field and the user does the

RE: Updating field's scrollbar on insertion point movement

2001-09-07 Thread Stan Hunter
How does Memo Pad work? I don't think it handles any other events. Is your field resource set up the same as in the memo edit form? Follow the leads... -- Peter Epstein Thanks. Actually, I think this is just the way PalmOS v3.1 works -- annoying, but true. I was frustrated when I compared the

RE: Updating field's scrollbar on insertion point movement

2001-09-07 Thread Stan Hunter
If nothing else, your formhandleevent routine can watch for keydown events, call the scrollbar update routine if the user hits up/down arrow the field scrolls. Yes, checking for keyDownEvent is a workaround I'll probably use. I wonder why Memo Pad on v3.1 devices doesn't do this. Memo Pad on

Stopping Gremlins with condition

2001-08-17 Thread Stan Hunter
I've been using Gremlins to test a rather large, multi-segment app. One problem occurs when a global variable suddenly gets a ludicrously high value. How can I find out exactly where this global gets assigned that value? I've been playing with breakpoints, but that requires me to know where in

Non-word-aligned handle

2001-06-25 Thread Stan Hunter
I get the error message: MemoryMgr.c, Line:4347, Non-word-aligned handle. I searched the knowledge base but found nothing on this. What causes non-word-aligned handles? (What are they?) Thanks a lot, Stan -- For information on using the Palm Developer Forums, or to unsubscribe, please see

Displaying contents of Palm database

2001-03-23 Thread Stan Hunter
Is there a tool for showing the contents of Palm databases? Something that shows the records and what they contain at various offsets would be very handy for developing/debugging. Does something like that exist? thanks, Stan -- For information on using the Palm Developer Forums, or to

Newbie editable tables question

2001-03-06 Thread Stan Hunter
I'm kinda new to Palm programming and have been stuck on this bug for a long time. Any leads would be much appreciated. I have a four column table, and I want all columns except the first (left) one to be editable, so I made the left column a non-editable customTableItem and the other three