Re: Key Q size

2003-12-25 Thread Dhanashri
Hello Ken, Thanks for the reply. These are my comments: 1) As per the palm OS API documentation, EvtKeyQueueSize() returns how large the current key queue is. We want to know the total capacity of the Key queue. 2) As for the Bus Error , these are the details-- we have written a serial driver

Re: how to draw the slope text ?

2003-12-25 Thread Aaron Ardiri
does anyone know how to draw text with different slope/angles (e.g. 30, 45, 90 degrees) ? thx! implement your own rotation algorithm... or, wait until PalmOS catches up to every other platform with providing graphic context support (and, stuff like this), in Palm OS6 :) --- Aaron Ardiri

Re: how to draw the slope text ?

2003-12-25 Thread KEN
Aaron Ardiri [EMAIL PROTECTED] ??? news:[EMAIL PROTECTED] ???... does anyone know how to draw text with different slope/angles (e.g. 30, 45, 90 degrees) ? thx! implement your own rotation algorithm... or, wait until PalmOS catches up to every other platform with providing graphic context

re: how to draw the slope text ?

2003-12-25 Thread Steve
Rotating bitmap fonts… pretty ugly, except for 90°*n with n an integer. TrueType fonts would be the real solution, as promised for palmOS V6… but you have still to manage V5 device (v6 will not replace v5 but will co-live for a time) and v6 will not be really on the market before a year (My own

Re: how to draw the slope text ?

2003-12-25 Thread Aaron Ardiri
does anyone know how to draw text with different slope/angles (e.g. 30, 45, 90 degrees) ? thx! implement your own rotation algorithm... or, wait until PalmOS catches up to every other platform with providing graphic context support (and, stuff like this), in Palm OS6 :) many

Re: how to draw the slope text ?

2003-12-25 Thread KEN
Aaron Ardiri [EMAIL PROTECTED] ??? news:[EMAIL PROTECTED] ???... does anyone know how to draw text with different slope/angles (e.g. 30, 45, 90 degrees) ? thx! implement your own rotation algorithm... or, wait until PalmOS catches up to every other platform with providing

Re: how to draw the slope text ?

2003-12-25 Thread Aaron Ardiri
void rotate(x,y,*_x,*_y,angle) { *x = ( cos(angle) * x) + (sin(angle) * y); *y = (-sin(angle) * x) + (cos(angle) * y); } I don't really understand the above algorithm sorry, that should have read: *_x = ( cos(angle) * x) + (sin(angle) * y); *_y = (-sin(angle) * x) +

Re: how to draw the slope text ?

2003-12-25 Thread KEN
Aaron Ardiri [EMAIL PROTECTED] ??? news:[EMAIL PROTECTED] ???... void rotate(x,y,*_x,*_y,angle) { *x = ( cos(angle) * x) + (sin(angle) * y); *y = (-sin(angle) * x) + (cos(angle) * y); } I don't really understand the above algorithm sorry, that should have read: *_x

Re: how to draw the slope text ?

2003-12-25 Thread KEN
Aaron Ardiri [EMAIL PROTECTED] ??? news:[EMAIL PROTECTED] ???... void rotate(x,y,*_x,*_y,angle) { *x = ( cos(angle) * x) + (sin(angle) * y); *y = (-sin(angle) * x) + (cos(angle) * y); } I don't really understand the above algorithm sorry, that should have

Re: how to draw the slope text ?

2003-12-25 Thread Aaron Ardiri
sorry, that should have read: *_x = ( cos(angle) * x) + (sin(angle) * y); *_y = (-sin(angle) * x) + (cos(angle) * y); new co-ordinates = value based on old co-ordinates the orginial XY system changes to the new X'Y' system, however, if I draw the texts, they should appear as

Re: Multiple segments shared library

2003-12-25 Thread Ben Combee
At 10:30 PM 12/21/2003, Arye Schreiber wrote: Does anyone have a working link to a multiple segment shared library project? All previously posted links seem to be extinct. Also, did CodeWarrior ever implement a mult-segment shared library? No, we never have implemented that. :( -- Ben Combee

Re: ensuring .rcp file is compiled first in CodeWarrior.

2003-12-25 Thread Ben Combee
At 04:03 PM 12/22/2003, Matthew Henry wrote: How do I ensure my .rcp file is compiled first in CodeWarrior 9.2? Because it doesn't always seem to. I suppose I want to set up a dependency that says the output of my .rcp file generates this header file, and all my other files require this header

Problem Freeing table's content (memory leaks)

2003-12-25 Thread Victor .
Dear developers: I was wondering if there is a way to remove the content of a table because after displaying table I have memory leaks. The scenario: I load the content of each displayable row from database records (using callback function) and also I provide saving callback function. However

Re: about longjmp on ARM platform

2003-12-25 Thread Ben Combee
At 07:52 AM 12/22/2003, Armada.li wrote: I use codewarrior9.2,and develop for palm os5 or above. In my 68K demo project,I use setjmp and longjmp.It run well. I add setjmp and longjmp to my ARMlet project,and include signal.h,setjmp.h and float.h.After I compile it,the following information appear:

Re: Why?

2003-12-25 Thread Ben Combee
At 04:45 PM 12/22/2003, Ruben Luna wrote: codewarrior disable lines of codes ? Huh? Why are you thinking that CW has disabled lines of code? If you can't click on the lines to set breakpoints and you're building 68K code, either a) you don't have the debug dot turned on for the file b) it is

Re: CW9.2 Multisegment app

2003-12-25 Thread Ben Combee
At 03:36 AM 12/23/2003, Wojtek wrote: Hello. I'm going to write multi-segment app in CW 9.2 Using stationery I can create skeleton for multi segment app, but it uses old style of compiling ( using Macintosh 68K linker ). Which way should I create multi-segment app using new style (Palm OS linker)

Re: about demohack

2003-12-25 Thread Ben Combee
At 08:58 AM 12/23/2003, Armada.li wrote: Merry Christmas to all! I compile the demohack project using demohack debug.After generate .prc program,I install it into treo180g(os4.1) and sony TJ25(os5.2).I find it run well on treo180g,but can't run above os5.I hit it on palm device,and do nothing.

Re: app icon

2003-12-25 Thread Ben Combee
At 03:20 PM 12/23/2003, Pablo Martin Vera wrote: How do I change my app icon using Pilrc designer with codewarrior?? In the RCP file, look for the APPLICATIONICON item and change the filename to point to your own BMP file with your own icon. PilRC Designer is not a bitmap editor. -- Ben Combee

Re: Segmenting by function with CW?

2003-12-25 Thread Ben Combee
At 03:37 PM 12/23/2003, David Beers wrote: Thanks again, Matt. I had the same problem with trying to use #pragma Segment 1 (space between Segment and 1) so that the name would match the default name that CW supplies. But using #pragma Segment1 (without the space) did not cause the compiler to

Re: Segmenting by function with CW?

2003-12-25 Thread Ben Combee
Wonder where Ben is today, he usually answers these Codewarrior questions right away. Who told the slacker he gets to take the day off? Who told me I get to have the flu and be stuck in bed miserable for three days? :) -- Ben Combee [EMAIL PROTECTED] CodeWarrior for Palm OS technical lead Palm

Re: Segmenting by function with CW?

2003-12-25 Thread Aaron Ardiri
Wonder where Ben is today, he usually answers these Codewarrior questions right away. Who told the slacker he gets to take the day off? Who told me I get to have the flu and be stuck in bed miserable for three days? :) flu? bed? bah :) i would have to be unconscious not to be online.

Re: Palm Clock for SystemPreferencesChoice -Pls help

2003-12-25 Thread apple k
--- apple k [EMAIL PROTECTED] wrote: Hi, Is there anybody can help me and let me know it can be done or not? I have to prevent the entrance from my user for the Clock icon on the silk screen. Is there any hex value or enum constant to set it by using SystemPreferencesChoice??? Pls help...

Re: how to draw the slope text ?

2003-12-25 Thread KEN
Aaron Ardiri [EMAIL PROTECTED] ??? news:[EMAIL PROTECTED] ???... sorry, that should have read: *_x = ( cos(angle) * x) + (sin(angle) * y); *_y = (-sin(angle) * x) + (cos(angle) * y); new co-ordinates = value based on old co-ordinates the orginial XY system changes to the

Re: how to draw the slope text ?

2003-12-25 Thread Albert J. Franklin
Ken, I think that what Aaron means is that the every pixel in the offscreen window buffer is rotated before being overlayed on the original window display. What you are doing is calculating one point, and using that as the source of the a WinDrawChars (hence, new origin, but no rotation). Al

Re: how to draw the slope text ?

2003-12-25 Thread Aaron Ardiri
I think that what Aaron means is that the every pixel in the offscreen window buffer is rotated before being overlayed on the original window display. What you are doing is calculating one point, and using that as the source of the a WinDrawChars (hence, new origin, but no rotation).