Re: WinScreenLock help

2005-02-17 Thread Benoit Cerrina
As you saw I am effectively handling the case where null is returned and I 
still get a lockup. 
This is madening as I don't know any other way to avoir flickering when the os 
is drawing the form (FrmDrawForm).
Also as it was Ben Combee who initially see: 
http://news.palmos.com/read/messages?id=175569#175569
I think this is supposed to be working.

Best regards
Benoit

PS:
by the way in the code posted above you should replace WinScreenLockPadict by 
WinScreenLock and WinScreenUnlockPadict by WinScreenUnlock.  Seeing the above 
mentioned problem I am trying (unsuccessfully) to replace those APIs by another 
version.  the lockup occurs with the standard APIs
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: Interview with PalmSource CEO

2005-02-17 Thread Gary
It's for porn filtering.  You're not going to be able
to sell a phone without porn filtering if all the
ninny groups pressure the FCC into rules about it.

Unfortunate victim will be indie developers huh. 
Drag.  :(

Gary Douglas

--- Cory Pratt [EMAIL PROTECTED]
wrote:

 Some of you might find this interview with David
 Nagel interesting:

http://www.infoworld.com/article/05/02/14/HNpalmsourceceo_1.html
 
 He remarks on future plans for Linux and Cobalt.  If
 I understand correctly,
 Cobalt will be there (probably as a translation
 between the API's and the
 Linux kernel), but the apps are being ported to
 Linux (probably for the
 improved driver support).  It would be interesting
 to see some sample code.
 
 He also goes on to say that smartphone apps will
 have to be signed by the
 wireless carrier to be able to load them.  As a
 developer and a user I
 think this stinks.  Even if it stops piracy, it
 still stinks.  How does
 this make the OS more secure?  Any exploit anywhere
 in the system can still
 infect any app with a virus.  This could also be
 used to censor naughty
 apps or any apps that compete with the carrier's
 services (i.e. VOIP). 
 This looks like just another money grab for the
 carriers.  Do you have to
 get every last update signed?  What happens when
 someone buys from PalmGear
 but can't load it, etc.  I'm outraged at the extent
 to which PalmSource is
 doing the carrier's bidding at the expense of the
 consumer.
 
 
 -- 
 For information on using the Palm Developer Forums,
 or to unsubscribe, please see
 http://www.palmos.com/dev/support/forums/
 


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: Palm Library SQL

2005-02-17 Thread Per Trelje
Miguel Fernandes wrote:
Does anyone knows if there is a library with SQL commands to connect to 
a remote DataBase.

Found this for MySql:
http://solutions.mysql.com/software/?item=145
--
Find my ResToXrd converter at one of these sites
http://www.shoplagom.com/developer_all.asp?devid=2
http://www.trelje.nu/palm/
--
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


VFS block size?

2005-02-17 Thread Greg Sepesi
I'm implementing an n-ary tree stored on VFS.  The algorithm's
performance is optimized when n is the max number of nodes that fit into
the file system's block size.  With a reader, I've checked the
properties of a couple small files: my 128 MByte SD card has a block
size of 2 KByte and my 256 MByte SD card has a block size of 4 KByte.

With PalmOS 5, is there a way to determine block size programmatically?

Cheers,
Greg

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Memory Segmentation

2005-02-17 Thread Jeff Collett
Hi,
I am looking for some documentation on memory segmentation, specifically the 
.text, .data , and .bss sections. I am wondering what goes into those sections 
and how to control that. I have not been able to find anything on that in my 
books or the Palm Doc's.

Thanks 
Jeff
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Palm os limited source

2005-02-17 Thread Benoit Cerrina
Hi,
I'm almost sure there used to be a place where a limited portion of the 
palmos source could be downloaded for members of the developer program.
I cannot find it anymore.
Is it still possible?
Best regards
Benoit Cerrina


--
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: Palm Library SQL

2005-02-17 Thread Miguel Fernandes
Thank you,
I have already that one for MySql but what I am looking for is for SQL Server.

Do you known any?


On Thu, 17 Feb 2005 13:55:29 +0100, Per Trelje [EMAIL PROTECTED] wrote:
 Miguel Fernandes wrote:
  Does anyone knows if there is a library with SQL commands to connect to
  a remote DataBase.
 
 
 Found this for MySql:
 http://solutions.mysql.com/software/?item=145
 
 --
 Find my ResToXrd converter at one of these sites
 http://www.shoplagom.com/developer_all.asp?devid=2
 http://www.trelje.nu/palm/
 
 --
 For information on using the Palm Developer Forums, or to unsubscribe, please 
 see http://www.palmos.com/dev/support/forums/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Send and receive data over the USB port

2005-02-17 Thread ULStudent:Kieran.Long
Hi,
I am developing an application that requires me to send and recieve data
from a server. I know that it is possible to do this via the serial port but
i have a PDA with USB port.
How do I go about this in the PDA? Is there a USB driver software package or
example code somewhere? 
Thanking in advance,
Kieran




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


about palmos and linux

2005-02-17 Thread Armada.li
I can use palm desktop and conduit on Windows platform to synchronize
between PC and Palm device.
Now I want to do it on Linux platform.Who can give me a good solution?How do
I develop it?
Thanks.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Resizing Tables

2005-02-17 Thread Stefan Stolz
Hello everybody,
currently I'm adding DIA-Support to an Legacy-Application.
I've managed the first part with the resize-Lib from 
palmresize.sourceforge.net .

But now i have a strange Problem with resizing Tables. There is no 
Problem to change the width in Landscape-Mode. But the Table won't work 
correctly if i assing a new Height with TblSetBounds. It still draws the 
old amount of Rows. How do I say that it should draw more Rows?

Best regards
Stefan Stolz
--
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


How Do I Detect Tungsten T3 or T5 button bar at bottom

2005-02-17 Thread Mike McCollister
Is there a way to detect whether a device has a palmOne status bar?  I know
that I can detect for a T3 or a T5 but I want to make it more generic.  Also,
is there a way to detect where the status bar is, i.e. bottom left or right?

Thanks,

Mike


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: Interview with PalmSource CEO

2005-02-17 Thread Cory Pratt
Logan Shaw wrote:

 I didn't quite get that out of the interview.  It seems to me that he
 just badly phrased that one part that makes it sound like the apps will
 target Linux specifically, and instead he meant that they are porting
 the whole shebang (Cobalt plus apps) as a unit to Linux.  That is,
 that the apps will run on top of Linux but not directly on top of
 Linux and instead on top of Linux via Cobalt.

I agree that would make the most sense but, who knows, maybe HotSync needs
direct access to /dev/usb or something.

 It may just be another money grab for carriers.  But, bottom line is,
 Palm(Source|One) NEEDS to get into the smartphone market, and not just
 with $600 niche devices that the average joe will never buy.  The
 smartphone market is slowly eating away at the PDA market.

Yes, but in five years we could be forever locked into this system as
traditional PDAs disappear and smartphones prolificate.

 Anyway, carriers like to tightly control software installation on
 their customer's phones.  It saves them from dealing with lots of
 support calls, and in addition to that, if something goes wrong with

I understand their need to reduce problems with incompatible software and
their right to design their product as they see fit, but there has to be a
better way.  Why should we trust the carriers not to abuse this power to
eliminate competitive products like VOIP or WiFi?  Why should anyone get to
say what I can and can't load on MY device?  A better solution would be to
have an independent third party sign the apps.

Furthermore, what will become of freeware?  Surely, there will be some
developers that can't afford to get signed and others who will refuse on
principal (such as free open-source software developers).  Afterall, I can't
name a single freeware title for Xbox, Nintendo, or PlayStation (exempting
Xbox Linux which required an exploitable 007 Goldeneye disc or an illegal
chip).
 
 HOPEFULLY what the PalmSource CEO said really translates to, we
 support a method whereby BY DEFAULT only signed apps can be installed,
 although the user can choose to install unsigned apps as well.
 I believe the Tapwave Zodiac has a system similar to that, where
 they have signed apps but you can also install regular plain Palm OS
 as well if you want to.

Hopefully.  But if you're wrong, the time to act is now - before devices
start to ship.


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: Resizing Tables

2005-02-17 Thread Henk Jonas
Stefan Stolz wrote:
Hello everybody,
currently I'm adding DIA-Support to an Legacy-Application.
I've managed the first part with the resize-Lib from 
palmresize.sourceforge.net .

But now i have a strange Problem with resizing Tables. There is no 
Problem to change the width in Landscape-Mode. But the Table won't work 
correctly if i assing a new Height with TblSetBounds. It still draws the 
old amount of Rows. How do I say that it should draw more Rows?

IIRC, you have to define more rows in the resource file. The table will 
display only the neccessary number of rows to fill its space.

--
-
  Henk Jonas
  Palm OS ® certified developer
  [EMAIL PROTECTED]   www.metaviewsoft.de
-
--
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: Interview with PalmSource CEO

2005-02-17 Thread Cory Pratt
Craig Likes wrote:

 Didn't get this out of the article.  In the article it
 states a supported capability, it mentions nothing
 that I can find on a requirement but I could have
 missed something
 
 Nagel: We support a capability for signed code

True.  And that IS an important distinction.  But it's a capability the
carriers would be crazy to pass up.  Heck, they were probably the impetus
for it to begin with.


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: about palmos and linux

2005-02-17 Thread Cory Pratt
Armada.li wrote:

 I can use palm desktop and conduit on Windows platform to synchronize
 between PC and Palm device.
 Now I want to do it on Linux platform.Who can give me a good solution?How
 do I develop it?
 Thanks.

I've used JPilot for years.  If you are a developer, you probably want
pilot-link too for quickly installing apps on a device.  In fact I even put
it in my makefile:

.PHONY install
install:
export PILOTRATE=H115200 ; pilot-xfer --port /dev/pilot --install 
file.prc

Of course your device may be /dev/ttyS0 (for the first serial port)
or /dev/usb, or something else.  I just created a symbolic link in the /dev
directory from /dev/ttyS0 to /dev/pilot.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: Memory Segmentation

2005-02-17 Thread Cory Pratt
Jeff Collett wrote:

 Hi,
 I am looking for some documentation on memory segmentation, specifically
 the .text, .data , and .bss sections. I am wondering what goes into those
 sections and how to control that. I have not been able to find anything on
 that in my books or the Palm Doc's.
 
 Thanks
 Jeff

It's been a long time, but I think this is documented in the Motorola 68K
family assembly manual.

Basically, .text is constant code (strings, code, etc.), .data is for
non-const variables, and .bss stands for Block Started by Symbol and
contains uninitialized variables.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


get phone number for Treo600 CDMA

2005-02-17 Thread Keyur Patwa
Hi guys,

I know this question was asked and answered here before.
But my login is not working so I could not access the forum messages.

Can any one help me with the API call to access the phone number for CDNA
Treo600 phone.

Actually, I am trying to access the ESN number using,
PhnLibCardInfo (refrnceNum,0,0,version,serial);

but as it is not working, as an alternative I am trying to grab the phone
number.

Please help,
Keyur




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: How to store a program selection (like in Prefs button assignments)?

2005-02-17 Thread Luc Le Blanc
 On Mon, 14 Feb 2005 20:13:19 -, Luc Le Blanc  [EMAIL PROTECTED] wrote:

  What is the quickest way to get the name of the application
  that has this 
  creatorID (to display it in the popup trigger when displaying
  my pref form)? 
  DmGetNextDatabaseByTypeCreator followed by DmDatabaseInfo? Or
  is there a better option?

 Actually, Luc, that is the *quickest* way, and the easiest to
 code, but I'd probably open each in turn and load the 'tAIN'
 resource from each, to display the name that the user is used to
 seeing in the Launcher. I know it's slower that way, but it would
 be a little more user-friendly. I write exclusively for newer
 devices, though, and if I were targetting a Palm III, I might
 reconsider this approach. Just figured I'd present you with the
 option.

Well, for the sake of completing this thread, here's the final result of my 
readings: the simple solution is to create the list of applications with 
SysCreateDatabaseList, setting its last (loopupName) parameter to true, which 
then forces the automatic lookup of a tAIN resource, thus returning the names 
that get displayed in the Launcher. This is the list I use to associate with my 
popup trigger. Using the tAIN resource does make a difference in some cases 
(e.g. the built-in app Welcome would otherwise appear as Setup).

When I first initialize the popup trigger text, I call 
DmGetNextDatabaseByCreator with the stored creatorID, open the DB, get its tAIN 
1000 resource (if any) and use that string (or the DB name if the tAIN resource 
is missing).

Am I right to assume that if a tAIN resource is present, it must be numbered 
1000?


-- 
Luc Le Blanc
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: Memory Segmentation

2005-02-17 Thread jcollett

Thanks. I will see if I can find some Motorola info. Thought it might be
contained in Palm Doc's somewhere. I did find a file in Falch that was
somewhat helpfull.

Jeff


   
 Cory Pratt
 [EMAIL PROTECTED] 
 vealgorithms.com  To 
 Sent by:  Palm Developer Forum  
 bounce-405685-773 palm-dev-forum@news.palmos.com
 [EMAIL PROTECTED]  cc 
 m 
   Subject 
   Re: Memory Segmentation 
 02/17/2005 10:26  
 AM
   
   
 Please respond to 
  Palm Developer  
  Forum   
 [EMAIL PROTECTED] 
  ews.palmos.com  
   
   




Jeff Collett wrote:

 Hi,
 I am looking for some documentation on memory segmentation, specifically
 the .text, .data , and .bss sections. I am wondering what goes into those
 sections and how to control that. I have not been able to find anything
on
 that in my books or the Palm Doc's.

 Thanks
 Jeff

It's been a long time, but I think this is documented in the Motorola 68K
family assembly manual.

Basically, .text is constant code (strings, code, etc.), .data is for
non-const variables, and .bss stands for Block Started by Symbol and
contains uninitialized variables.



--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/





Although this e-mail and any attachments are believed to be free of any virus 
or other defect which might affect any computer system, it is the 
responsibility of the recipient to check that it is virus-free and the sender 
accepts no responsibility or liability for any loss, injury, damage, cost or 
expense arising in any way from receipt or use thereof by the recipient.

The information contained in this electronic mail message is confidential 
information and intended only for the use of the individual or entity named 
above, and may be privileged.  If the reader of this message is not the 
intended recipient, you are hereby notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.  If you 
have received this transmission in error, please  contact the sender 
immediately, delete this material from your computer and destroy all related 
paper media.  Please note that the documents transmitted are not intended to be 
binding until a hard copy has been manually signed by all parties.
Thank you.

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: How to store a program selection (like in Prefs button assignments)?

2005-02-17 Thread Ben Combee

Am I right to assume that if a tAIN resource is present, it must be 
numbered 1000?
It also could be numbered with 'tAIN' ID 1.  ID 1000 has priority if an 
application has both resources.

-- Ben Combee, Senior Software Engineer, palmOne, Inc.
   Combee on Palm OS weblog: http://palmos.combee.net/
   Developer Forum Archives:   http://news.palmos.com/read/all_forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


fonts txt

2005-02-17 Thread Yuen Kwee
hi hi!
i searched the forum and i noticed that i need txt files for custom forms, 
where do i get the txt file for pilrc fonts? i found a 5x11.txt in the 
examples, where can i get others?
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


RE: get phone/IMEI/ESM/IMSI number for Treo6xx

2005-02-17 Thread Jeffry Loucks

This is what we've encountered while looking for
phone identity on Treo 6xx:


1. If the phone is type hsAttrPhoneTypeCDMA (see
HsAttrGet(hsAttrPhoneType)):

// Treo 600 returns ESN
// Treo 650 crashes!
char *pEsn;
PhnLibCardInfoEx(telRefNum,0,0,0,pEsn,0,0,0,0);


2. If the phone is type hsAttrPhoneTypeGSM:

// Treo 600 returns IMEI and IMSI
// Treo 650 - don't know what happens (don't have one)
char *pImei,*pImsi;
PhnLibCardInfo(telRefNum,0,0,0,pImei);
PhnLibSIMInfo(telRefNum,pImsi);


Code to retrieve phone number:

// The own phone number is the first in the own numbers list.
// NOTE: The phone number is not always available right away.
// For example, a GSM phone number is not available until the SIM
// is queried, as much as 30-60 seconds after the phone is powered.

{
PhnAddressList list;
PhnAddressHandle address;
UInt16 count;
UInt32 phoneType;
Char *pPhoneNumber = 0;

// Get number list
if (PhnLibGetOwnNumbers(telRefNum,list) == 0)
{
// How many entries in the list?
if (PhnLibCount(telRefNum, list, count) == 0  count  0)
{
// Need the phone type, as it changes the API
HsAttrGet(hsAttrPhoneType,0,phoneType);
// Retrieve the 1st entry from the list
if (phoneType == hsAttrPhoneTypeCDMA)
err = PhnLibAPGetNth(telRefNum, list, 1, address);
else
err = PhnLibGetNth(telRefNum, list, 1, address);
if (err == 0)
{
// Extract the phone number from the entry.
// The returned phone number is a pointer to
// a malloc'd piece of memory which must
// be free'd after use.
if (phoneType == hsAttrPhoneTypeCDMA)
pPhoneNumber = PhnLibAPGetField(telRefNum,
address, phnAddrFldPhone);
else
pPhoneNumber = PhnLibGetField(telRefNum,
address, phnAddrFldPhone);
// Free the address handle
MemHandleFree(address);
}
}
// Deallocate the list
PhnLibDisposeAddressList(telRefNum,list);
}
return pPhoneNumber;
}



Jeff Loucks
Work 425-284-1128 [EMAIL PROTECTED]
Home 253-851-8908 [EMAIL PROTECTED]
Mobile 253-691-8812


-Original Message-
From: Keyur Patwa
Sent: Thursday, February 17, 2005 9:00 AM
To: Palm Developer Forum
Subject: get phone number for Treo600 CDMA


Hi guys,

I know this question was asked and answered here before.
But my login is not working so I could not access the forum messages.

Can any one help me with the API call to access the phone number for CDNA
Treo600 phone.

Actually, I am trying to access the ESN number using,
PhnLibCardInfo (refrnceNum,0,0,version,serial);

but as it is not working, as an alternative I am trying to grab the phone
number.

Please help,
Keyur

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: Display pics on Palm OS

2005-02-17 Thread Steve Lemke
Stefan Stolz wrote:
For Jpeg have a look at
http://www.bin-people.de/pnoJpegLib/
Wow, that looks great, thanks!
I've added that to the Palm OS Development Tools List:
http://flippinbits.com/twiki/bin/view/Main/DevelopmentToolsList
at the Palm OS Development FAQ TWiki site:
http://flippinbits.com/twiki/bin/view/FAQ/WebHome
I also realized that it was really hard (for me at least) to locate the 
Development Tools List page from other pages on the FAQ site, so I 
added it to the root DevelopmentTools page:
http://flippinbits.com/twiki/bin/view/FAQ/RootIDevelopmentTools

--
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: Form must be full width - why?

2005-02-17 Thread Steve Lemke
On Feb 17, 2005, at 12:15 AM, Ben Combee wrote:
At 11:52 PM 2/15/2005,  Curtis Cameron wrote:
I'm relatively new to Palm programming, and one of the projects I've 
done
is a little utility used by me and maybe a couple of other people. It
displays a modal dialog in the middle of the display, about 3/4 the 
width
and the height of the full diplay. Also, it's a 68000 app if that 
matters.

It runs fine on a real device, but the emulator is always telling me 
that
the modal dialog must be full width. I can't say that I understand the
reason for this. Can someone educate me?
The Palm OS UI model says that dialogs are always the full width of the
screen and bottom justified.  This makes it simpler to redraw the 
screen if
dialogs are stacked on top of each other, and it keeps the displays 
consistent.
For what it's worth...  One of the original reasons for this UI 
guideline (which dates back to Palm OS 1.0 in 1996) is that by having 
all dialogs stacked at the bottom edge of the display and occupying the 
full-width, the only buttons that are visible and therefore available 
to the user will be for the top-most dialog.  If the top-most dialog 
isn't sitting at the bottom edge, or isn't full-width, then there's a 
chance that other (currently unavailable) buttons may be visible (from 
the base form or other dialogs) and that could be confusing to the 
user, or at least visually distracting.

--
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: Display pics on Palm OS

2005-02-17 Thread Ingbert Grimpe
On Thu, 17 Feb 2005 13:31:13 -0800, Steve Lemke [EMAIL PROTECTED]  
wrote:

Stefan Stolz wrote:
For Jpeg have a look at
http://www.bin-people.de/pnoJpegLib/
Wow, that looks great, thanks!
Where can I sign this? ;)
Esp. a very good performance!
(though I'd also like to thank Yves for his initial release)
--
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Signature2 quality

2005-02-17 Thread IanB
Any way to increase the quality of the signature of the 1-bit bitmap in the
example for signature for OS = 5.2?

Curves get straightened, so I'm not sure if they pass for a legal document.

I tried increasing pixel depth and density, using a V3 bit map, but I that
seem to have any effect.

Thanks,
Ian Baxter.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: Signature2 quality

2005-02-17 Thread Chris Brooks
Ian,

Have you tried averaging the pen position over a number of steps?

I found with my drawing program, it gave much smoother lines than just
taking the absolute position each time.

Chris.


-
Protected by: http://mail.spaminspector.com


- Original Message - 
From: IanB [EMAIL PROTECTED]
Newsgroups: palm-dev-forum
To: Palm Developer Forum palm-dev-forum@news.palmos.com
Sent: Thursday, February 17, 2005 10:32 PM
Subject: Signature2 quality


 Any way to increase the quality of the signature of the 1-bit bitmap in
the
 example for signature for OS = 5.2?

 Curves get straightened, so I'm not sure if they pass for a legal
document.

 I tried increasing pixel depth and density, using a V3 bit map, but I that
 seem to have any effect.

 Thanks,
 Ian Baxter.



 -- 
 For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: Signature2 quality

2005-02-17 Thread Cory Pratt
Chris Brooks wrote:

 Have you tried averaging the pen position over a number of steps?

I'm not sure, but it sounds like he's not getting enough resolution.

Ian, although I've never tried this myself, maybe you could try a curve
fitting algorithm (http://mathworld.wolfram.com/CurveFitting.html) like
least squares (esp. the polynomial version).


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: Signature2 quality

2005-02-17 Thread Ben Combee
At 04:32 PM 2/17/2005, you wrote:
Any way to increase the quality of the signature of the 1-bit bitmap in the
example for signature for OS = 5.2?
Curves get straightened, so I'm not sure if they pass for a legal document.
I tried increasing pixel depth and density, using a V3 bit map, but I that
seem to have any effect.
The curve straightening may be a result of the code taking too long to 
run.  All drawing is done to an off-screen buffer which is then blitted 
back to the screen, and on some devices that takes long enough to add a bit 
of delay between pen readings.

I originally just drew lines both to the screen and to the buffer on each 
pen move, but that was problematic, as the on-screen lines were being drawn 
at double-density, while the off-screen buffer was single-density, so the 
on-screen image didn't match up.

But, you've got full code there.  Try things out and see what works for you.
-- Ben Combee, Senior Software Engineer, palmOne, Inc.
   Combee on Palm OS weblog: http://palmos.combee.net/
   Developer Forum Archives:   http://news.palmos.com/read/all_forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: VFS block size?

2005-02-17 Thread Greg Sepesi
I'll assume block size = capacity / 2**16

Cheers,
Greg

Greg Sepesi wrote:
 
 I'm implementing an n-ary tree stored on VFS.  The algorithm's
 performance is optimized when n is the max number of nodes that fit into
 the file system's block size.  With a reader, I've checked the
 properties of a couple small files: my 128 MByte SD card has a block
 size of 2 KByte and my 256 MByte SD card has a block size of 4 KByte.
 
 With PalmOS 5, is there a way to determine block size programmatically?
 
 Cheers,
 Greg

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


re: skins

2005-02-17 Thread roderick young
What you need to do is go to the Palm developer site, and follow the download 
links as if you're going to download the Emulator (which of course, you already 
have).  This will eventually take you to a page that offers a .zip file filled 
with skins.

This does not include the Handspring skins.  I got these from Handspring when 
they were a separate company, but don't know where someone would get them today.
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


PNOlet question

2005-02-17 Thread Brandon Roberson
Its my understanding that legacy Palm apps (m68k) are limited to jumps
of 32767 bytes or less, as a signed 16-bit integer is used to
represent the jump offset in the compiled code, limiting code
resources to roughly 32k, more if you're careful about what order your
functions are stored in.

Is native ARM code handled the same way, or are 32-bit values used for
jump offsets? I'm using the Metrowerks PNOLoader library to patch
together a half-meg of THUMB code, and I just wanted to make sure that
I should be able to call functions freely within it. I've seen this
technique used for PNOlets several megs in size, and I have a hard
time imagining that the author went through and structured everything
such that no piece of code ever called another piece of code more than
32767 bytes away.

Just hoping someone can either verify that this is correct, or perhaps
point me in the right direction if I've got it all wrong.

Thanks all,
Brandon

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: Writing my Own WinScreenLock

2005-02-17 Thread Benoit Cerrina
Sorry but I don't see the difference between Damir's and Mike's solution.
The problem in the case of Mike is that FrmDrawForm is changing the draw window 
(at least this is how it looks like when I use it on the emulator and 
simulator).  I think that this is not the correct behavior for this API (or at 
least it should be documented. But there is not much to do to go around it.

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: PNOlet question

2005-02-17 Thread Logan Shaw
Brandon Roberson wrote:
 Its my understanding that legacy Palm apps (m68k) are limited to jumps
 of 32767 bytes or less, as a signed 16-bit integer is used to
 represent the jump offset in the compiled code, limiting code
 resources to roughly 32k, more if you're careful about what order your
 functions are stored in.

I think this is true only if you use the Small code model rather
than the Smart code model.  The Smart code model should make
larger jumps possible, although because of the 64K limitation,
in practice you just think of it as 64K even if you have Smart
mode turned on.

 Is native ARM code handled the same way, or are 32-bit values used for
 jump offsets? I'm using the Metrowerks PNOLoader library to patch
 together a half-meg of THUMB code, and I just wanted to make sure that
 I should be able to call functions freely within it. I've seen this
 technique used for PNOlets several megs in size, and I have a hard
 time imagining that the author went through and structured everything
 such that no piece of code ever called another piece of code more than
 32767 bytes away.

You can find some documentation at www.arm.com.  They have a quick
reference guide to the Thumb instruction set (available at
http://www.arm.com/pdfs/QRC0001H_rvct_v2.1_thumb.pdf ), and
it shows 6 different conditional and unconditional branch
instructions.  Branches are either relative or to the address
in a given register.  I assume all compilers that produce PNOs
use relative branches exclusively within the PNO.  There are
four relative branch Thumb instructions, and the ranges they
use are:

[-252,+258] for conditional short branch,
[-2kB,+2kB] for unconditional short branch, and
[-4MB,+4MB] for the two types of long relative branches.

Therefore, it seems safe to assume that if a PNO with a 3K branch is
OK, then a PNO with a 3.99MB branch is also OK, since they would have
to use the same mechanism.  (At least, barring some weird compiler
behavior like computing its own branch destinations and then loading
that into a register, but that seems costly and pointless given what
instructions are available within Thumb.)

  - Logan

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: PNOlet question

2005-02-17 Thread Brandon Roberson
Thanks a bunch, Logan. That means the problems I'm seeing in my app
might actually be caused by something I can fix; always a Good Thing.

Brandon

On Thu, 17 Feb 2005 21:55:13 -0600, Logan Shaw [EMAIL PROTECTED] wrote:
 Brandon Roberson wrote:
  Its my understanding that legacy Palm apps (m68k) are limited to jumps
  of 32767 bytes or less, as a signed 16-bit integer is used to
  represent the jump offset in the compiled code, limiting code
  resources to roughly 32k, more if you're careful about what order your
  functions are stored in.
 
 I think this is true only if you use the Small code model rather
 than the Smart code model.  The Smart code model should make
 larger jumps possible, although because of the 64K limitation,
 in practice you just think of it as 64K even if you have Smart
 mode turned on.
 
  Is native ARM code handled the same way, or are 32-bit values used for
  jump offsets? I'm using the Metrowerks PNOLoader library to patch
  together a half-meg of THUMB code, and I just wanted to make sure that
  I should be able to call functions freely within it. I've seen this
  technique used for PNOlets several megs in size, and I have a hard
  time imagining that the author went through and structured everything
  such that no piece of code ever called another piece of code more than
  32767 bytes away.
 
 You can find some documentation at www.arm.com.  They have a quick
 reference guide to the Thumb instruction set (available at
 http://www.arm.com/pdfs/QRC0001H_rvct_v2.1_thumb.pdf ), and
 it shows 6 different conditional and unconditional branch
 instructions.  Branches are either relative or to the address
 in a given register.  I assume all compilers that produce PNOs
 use relative branches exclusively within the PNO.  There are
 four relative branch Thumb instructions, and the ranges they
 use are:
 
 [-252,+258] for conditional short branch,
 [-2kB,+2kB] for unconditional short branch, and
 [-4MB,+4MB] for the two types of long relative branches.
 
 Therefore, it seems safe to assume that if a PNO with a 3K branch is
 OK, then a PNO with a 3.99MB branch is also OK, since they would have
 to use the same mechanism.  (At least, barring some weird compiler
 behavior like computing its own branch destinations and then loading
 that into a register, but that seems costly and pointless given what
 instructions are available within Thumb.)
 
   - Logan
 
 --
 For information on using the Palm Developer Forums, or to unsubscribe, please 
 see http://www.palmos.com/dev/support/forums/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: fonts txt

2005-02-17 Thread LionScribe
Use PiFont which is part of the PiBuilder program to create your Palm Font 
txt files (traditionally the text files have an extension of (*.pfn)).
You can download it from http://pibuilder.sourceforge.net/

LionScribe

Yuen Kwee [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 hi hi!
 i searched the forum and i noticed that i need txt files for custom forms, 
 where do i get the txt file for pilrc fonts? i found a 5x11.txt in the 
 examples, where can i get others?
 



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


problem in WCA

2005-02-17 Thread priya
Hi,

I have created a link in my web page for a URl . When i click on this URl i
get an error

nonexistant DNS name (Net 123E)

I think proxy server is not working fine thats why i m getting this error.
Plz help.

Thanx and regards,
Priya Gupta



Disclaimer   :-   This e-mail message including any attachment may contain 
confidential, proprietary or legally privileged information. It should not be 
used by who is not the original intended recipient. If you have erroneously 
received this message, you are notified that you are strictly prohibited from 
using, coping, altering or disclosing the content of this message. Please 
delete it immediately and notify the sender. Newgen Software Technologies Ltd 
and / or its subsidiary Companies accept no responsibility for loss or damage 
arising from the use of the information transmitted by this email including 
damage from virus and further acknowledges that any views expressed in this 
message are those of the individual sender and no binding nature of the message 
shall be implied or assumed unless the  sender does so expressly with due 
authority of Newgen Software Technologies Ltd
 and / or its subsidiary Companies, as applicable.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/


Re: problem in WCA

2005-02-17 Thread YAMADA Tatsushi
Palm.net service is no longer working. You can't use WCA online.( WCA with 
only off line contents may work.)

At 13:02 05/02/18 +0530, priya wrote:
Hi,
I have created a link in my web page for a URl . When i click on this URl i
get an error
nonexistant DNS name (Net 123E)
I think proxy server is not working fine thats why i m getting this error.
Plz help.
Thanx and regards,
Priya Gupta

Disclaimer   :-   This e-mail message including any attachment may contain 
confidential, proprietary or legally privileged information. It should not 
be used by who is not the original intended recipient. If you have 
erroneously received this message, you are notified that you are strictly 
prohibited from using, coping, altering or disclosing the content of this 
message. Please delete it immediately and notify the sender. Newgen 
Software Technologies Ltd and / or its subsidiary Companies accept no 
responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus and further 
acknowledges that any views expressed in this message are those of the 
individual sender and no binding nature of the message shall be implied or 
assumed unless the  sender does so expressly with due authority of Newgen 
Software Technologies Ltd
 and / or its subsidiary Companies, as applicable.


--
For information on using the Palm Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/
YAMADA Tatsushi Hacker Dude-san
http://simple-palm.com
mailto:[EMAIL PROTECTED]

--
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/