Not getting notification for registered sysNotifyMenuCmdBarOpenEvent

2004-02-07 Thread Alex
Registered two notifications: error = SysCurAppDatabase(cardNo, dbId); SysNotifyRegister(cardNo, dbId, sysNotifyMenuCmdBarOpenEvent, NULL, sysNotifyNormalPriority, NULL); SysNotifyRegister(cardNo, dbId, sysNotifyKeyboardDialogEvent, NULL, sysNotifyNormalPriority, NULL); But can only

Unable to add Resource File to Project

2004-02-07 Thread Ken Dwyer
Hi everyone, Earlier this week I had a problem moving resource files from Mac to Windows, and thanks to the advice I received on this forum, I learned how to move the files successfully. I can now open the files using Constructor in Windows, and edit them without any problems. However, I can't

Custom font dimensions in lists

2004-02-07 Thread Jimmy_B
How to set the font used by a list has been discussed on this group before, but I haven't found a solution to how to change both the font and the font _height_. I can specify a font in the resource, and change the font with LstGlueSetFont, but in either case the amount of vertical space allocated

Re: Unable to add Resource File to Project

2004-02-07 Thread Vu Pham
Ken, I got some similar problem ( but for Windows project only, I don't have Mac ) but don't remember exactly how I fixed it. IIRC, I removed all the ( considered invalid ) resource files out of the projects, and then added them again. Or, you can re-create a new project, then add all of the

Re: hi-res bitmap not being displayed when using a BitmapFamily

2004-02-07 Thread Brian Preston
Manuel, Thanks for your reponse and the tip to use WinScreenMode. However, when I use that function to change the depth, the only thing it seems to affect is the color, not the density. For example, when I set the depth to 4, that changed the display to a grey-scale mode. When I changed it to 8

Possible compiler bug in CW 9.2

2004-02-07 Thread Regis St-Gelais
Here is a peace of code: typedef struct tagRGBTRIPLE { UInt8Red; UInt8Green; UInt8Blue; } RGBTRIPLE; UInt8 gustrArray[256]; void foo(void) { Int16 intI; RGBTRIPLE *rgbpTriplet; UInt8 uchrR,uchrG,uchrB; for (intI=0;intI256;intI++) {

Hi-res drawing...

2004-02-07 Thread Ryan Bruner
I'm trying to draw a graph in hi-res, if available on the PDA. My current code calls WinCreateOffscreenWindow to create the window to draw to. Later, after I do my drawing, I call WinCopyRectangle to draw this to the screen. Now, in hi-res, I'm confused. I know I have to set the coordinate

Re: Possible compiler bug in CW 9.2

2004-02-07 Thread Robert Scott
On Sat, 7 Feb 2004 10:48:46 -0500, Regis St-Gelais [EMAIL PROTECTED] wrote: Here is a peace of code: typedef struct tagRGBTRIPLE { UInt8Red; UInt8Green; UInt8Blue; } RGBTRIPLE; UInt8 gustrArray[256]; void foo(void) { Int16 intI; RGBTRIPLE

Re: Not getting notification for registered sysNotifyMenuCmdBarOpenEvent

2004-02-07 Thread Alex
I did test this on OS 5 simulator and read device. Thanks -- Alex Alex [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Registered two notifications: error = SysCurAppDatabase(cardNo, dbId); SysNotifyRegister(cardNo, dbId, sysNotifyMenuCmdBarOpenEvent, NULL,

Re: Unable to add Resource File to Project

2004-02-07 Thread Ben Combee
At 08:38 AM 2/7/2004, you wrote: Earlier this week I had a problem moving resource files from Mac to Windows, and thanks to the advice I received on this forum, I learned how to move the files successfully. I can now open the files using Constructor in Windows, and edit them without any problems.

Re: Custom font dimensions in lists

2004-02-07 Thread SLO Revo News
I can specify a font in the resource, and change the font with LstGlueSetFont, but in either case the amount of vertical space allocated is as per the default font, which is not what I want. The list widget correctly handles built-in fonts of different sizes, so the height's not hard coded or

Re: Custom font dimensions in lists

2004-02-07 Thread SLO Revo News
I can specify a font in the resource, and change the font with LstGlueSetFont, but in either case the amount of vertical space allocated is as per the default font, which is not what I want. The list widget correctly handles built-in fonts of different sizes, so the height's not hard coded or

memory usage on simulator???

2004-02-07 Thread vikram sonawane
hi, i'm getting an invalid read error while using MemMove function. i've locked the memory chunk before using it in MemMove.[tried using both memhandlenew and memptrnew]. Actually i'm using it in the callback function of sndstreamcreate(input). plz consider the fact tht i'm working on a

CW 9.2 socket Connection error to sim/emulator

2004-02-07 Thread RVRoadie
Launch of POSE or Sim works from CW. But debug or run from CW yields the following message: Attempting a socket connection to Palm OS Emulator or Simulator. Will timeout in 10 seconds... This is followed by a dialog box saying connection failed. I can drop a prc file one either

Re: CW 9.2 socket Connection error to sim/emulator

2004-02-07 Thread Ben Combee
At 04:52 PM 2/7/2004, you wrote: Launch of POSE or Sim works from CW. But debug or run from CW yields the following message: Attempting a socket connection to Palm OS Emulator or Simulator. Will timeout in 10 seconds... This is followed by a dialog box saying connection failed. I can drop a prc

Re: How do I find and display application icon(s)

2004-02-07 Thread Ben Combee
At 07:36 AM 2/6/2004, you wrote: I'm writing a launcher app, and want to display the icons of the all applications. I have the Creator ID and the database of the PRC file. Open the application's database and retrieve the 'tAIB' 1000 and 1001 resources. 1000 will be the large icon, 1001 will be

A way to quit from within a program?

2004-02-07 Thread Brad Jones
I am working on a PalmOS version of a UI library (Glk), and have run into a problem I don't see an easy solution to. The issue is that the control flow for this library looks like this: PilotMain (provided by me) calls glk_main (provided by author of Glk-using program) calls glk_select

Updating screen during a penDownEvent

2004-02-07 Thread Michael Jones
Having trouble with this: I have a program where I want someone to press and hold a button. For as long as they hold the pen down on the button, I want a timer on the screen to increment and update it's display. Right now I'm doing the following within the ctrlEnterEvent: (Thanks to Aaron

Int32 only 16 bits?

2004-02-07 Thread Trevor Powell
I've just written the following code: Int32 value = 1 16; Compiling with gcc and PRC-Tools, sdk5-r3, I get the following warning: warning: left shift count = width of type Shifting left by 15 doesn't generate the warning. Anybody have a clue about what's going wrong, here? Trevor Powell --

RE: Int32 only 16 bits?

2004-02-07 Thread Keith Rollin
Trevor, At the time the compiler evaluates an expression, it doesn't take into account the type of the storage you'll ultimately be putting it into. That means that the compiler doesn't know that 1 16 will be put into an Int32. Therefore, it evaluates the expression based on the types at

Re: Int32 only 16 bits?

2004-02-07 Thread Trevor Powell
I've just written the following code: Int32 value = 1 16; Compiling with gcc and PRC-Tools, sdk5-r3, I get the following warning: warning: left shift count = width of type Shifting left by 15 doesn't generate the warning. Anybody have a clue about what's going wrong, here? Ah, never

Re: CW 9.2 socket Connection error to sim/emulator

2004-02-07 Thread RVRoadie
With POSE running, netstat -a shows the following relavent entry: TCP desktop:2000 desktop:0 LISTENING When I exit POSE, this entry goes away. Looks like PSOSE is ready for connection, but CW doesn't get there. Have tried using EndItAll to kill everything running, then try the CW to POSE

Re: CW 9.2 socket Connection error to sim/emulator

2004-02-07 Thread RVRoadie
Success!! Your comments about McAfee got me to poking around.. Turns out that CW was blocked from internet access. Don't remember why I did that, but guess I am too paranoid. Allowing access corrected the problem. Thanks for your thoughts. Ben Combee [EMAIL PROTECTED] wrote in message