Re: Illegal default arguments in CW 9.3
Make sure you have the default paramater only in the function declaration, not in the implementation. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
HP buying Palm
The news sources are reporting that HP is buying Palm for 1.2 Billion USD. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Large fonts under PalmOS4
Use Pilrc to create the fonts from text. (pilrc is used by default by CW9). There is a gui program, I believe called xfont.exe, that did a good job creating the text files (you were able to start with a Windows font), with just a few bugs. If you cannot find it, I will try to search my archives for it. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Large fonts under PalmOS4
Regis St-Gelais wrote: Would it be that one ? http://www.smartphonetoday.com/symbian/software/pc/xFONT-2000-01-23-palm-pc.html Yes -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: StyleTap for iPhone
But it's only for Jailbroken devices! Thank Apple for that one! -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Can part of a PRC be optionally loaded by user?
Just do 2 compiles. Use preprocessor defines to include/disclude certain parts. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Can part of a PRC be optionally loaded by user?
And better yet, if you are using codewarrior, make 2 seperate targets, each one having a different file with the same functions, with one of them being just stubs that show alerts. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Progress bar in ProgressDialog ?
Luc, Do you still need this? I once wrote code to do a custom progress bar with cancel. I can email it to you if you need. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: SCOOP: New GarnetOS (PalmOS) Handhelds Coming From Aceeca!
The problem is with the 64 bits version of Windows 7. They have no 64 bit driver. Maybe if we beg Dimitry, he may come to the rescue... -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Preventing auto DIA in form with fields
Regis St-Gelais wrote: It's a good thing we have you Luc to keep the forum alive by posting a question from time to time ;o) It's simple! Luc writes programs for cave exploration, which are being used by the ancient cavemen, who are still using their Palms... :-) -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Cascaded frmUpdateEvent overwrites overlapping modal form
That's exactly what's causing the problem, as the Active Window is not the Draw Window. I believe that checking if Form getting the message is the DrawWindow should solve the issue. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Cascaded frmUpdateEvent overwrites overlapping modal form
I believe I had a similiar situation, and I added a check in the frmUpdateEvent like this if (frmP == FrmGetActiveFrm) or maybe it was WinGetActiveWindow or WinGetDrawWindow that way, if the frm gets the message when it's not to be drawn, it ignores it. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: C APIs to read/write PDB records?
You can also use PalmDataLib from PocketPurchase. Though PocketPurchase shut down, it can still be downloaded from http://codecobblers.com/tools/index.htm It's free, and it implements most Palm database function for your Windows code. I have used it successfuly. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Random crash in Armlet via PCENativeCall
Make sure that the myParmType *parm IS byte aligned, since it is being passed as a pointer to the Armlet. To do it simply, use MemPtrNew, not a struct on the stack. Void * parm = MemPtrNew(sizeof(myParmType)); InitParamaters Call Armlet. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: OT: Re: strange default resolution on treo pro
Cirrection: This WAS a PalmOS developers forum Ryan Rix wrote: This is a PalmOS developers forum, not WinMo... -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Palm WebOS SDK publicly available
You can't compare. Apple was really planning on Web applications only, and that was how they marketwd there product. They had no need for developers, and they only released the SDK after it was hacked. We cannot blame companies if they don't want to allow extra functionality, and it's the consumer who will decide. Palm always claimed that their products are great because of the developers. This forces developers to port their product to it, otherwise they will be beaten to it by others. So you will expect that they really will want to help the developers, and that's why Dmitry is fuming. In addition, you can be sure that some developers will get preferential treatment, and they will be allowed to develop in native language, and others will be left out... -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Palm WebOS Rough Cuts
Did anyone out there also buy the Palm webOS Rough Cuts from Safari. I must say, I have read many programming books in many languages, but this one rates 0 on a scale of 1-10. I mean, I really have to struggle to figure out what he's talking about, though I have a basic knowledge of Javascript. It's basicaly a list of instructions, with zero explanation of what is going on I could do that from the API. A book is supposed to help you understand. Did anyone else have these feelings, or am I starting to lose it in old age? In addition, all the books I have read, though they sometimes assume you have basic knowledge in a base language, they still reference you along the way, using sidebars or the like, but not here. They seem to expect you to have ADVANCED knowledge of HTML, DHTML, JAVASCRIPT, AJAX and more. I believe even for the advanced there is missing. For example, it starts using the this object extensivly, without explaining to what object the this is refering to, when used in the context of a View. In the same way, they use the div all over. Well, the div is used very often in HTML, but not in the way they use it. I had to break my head to figure out what and why they are using all those divs for. A little explanation would go a long way. Sorry, just rattling off my feelings -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Palm WebOS SDK publicly available
I just got this email; As an applicant for the Palm webOS Mojo SDK early access program, we wanted you to be among the first to know that the Mojo SDK is now publicly available. This is a very exciting and important stage for Palm webOS development, and we want you to be part of it. Were opening the doors to the SDK by launching a new developer portal at http://developer.palm.com called webOSdev, where you can download the SDK and accompanying documentation, and join the public webOS community forums. I want to thank you for your patience while we allowed a few developers to kick the tires on our APIs, tools and docs before we released them to the rest of the world. Were working hard to ensure that Palm webOS becomes a world-class platform for application development, but we need to do so in a measured and focused way so we can be sure were providing a great development experience and attentive developer support.We know that a thriving app marketplace and a vibrant developer ecosystem are critical to the success of Palm webOS, and that relies largely on you. We think we have something amazing here, and were inviting you to join the Palm webOS community and help us fulfill the potential of this compelling new platform. Welcome! -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Palm WebOS SDK publicly available
Ryan, you sound like you voted for OBAMA and his socialism. Palm is forcing users to update their OS within 10 days, so any Hacks won't work, as Palm would exclude them on the next update. That is the method of the Obama Socialists, the powers supposedly know better than the people, and they make the decisions for them. Dmitry was born in a socialist country, and he knows that it stinks, and that the people know better... Way to go. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: webOS SDK
Well, Luis seems to be upset that Palm seems to be favoring a few large developers by giving them a runaway lead in developing for the Pre, while us smalltime but feriously loyal developers, were completely IGNORED, with not even a glimpse or a passing mention. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: webOS SDK (PalmSDK-Win-0 3 4)
And IMHO if Ale would make an iPhone SDK that can be used on Windows, they will be even more successful. I would love to develop for the iPhone, but I don't own a Mac. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: webOS SDK
This forum is basicaly dead from a Palm OS (Access) prespective, and probably will soon be used only for tinkering Palm OS applications to make them better suited for the Classic emulator. That is except if Dimitry gets DGOS running :-) -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: USB port fine, but HotSync stopped seeing it
Maybe you have something wrong in the project settings. Try with a new project, created with the wizard. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: USB port fine, but HotSync stopped seeing it
See this http://palmos.combee.net/blog/USBDebuggingandtheTreo650.html Also, try turning off HotSync manager before debugging. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Problem catching penDownEvents with sysNotifyEventDequeuedEvent
OK, so just make sure to unregister when you application exits. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Problem catching penDownEvents with sysNotifyEventDequeuedEvent
Make sure ByteSwap16 is a Macro, not a function, as you don't want any drag in a deque notification! Better yet, just make your own define #define penDequeEventArm 0x. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Problem catching penDownEvents with sysNotifyEventDequeuedEvent
Globals may not be available by the notification! Also there is no reason for it as Dimitry mentions. The best simplest is using your own defines. Also, you should register for the notification only when you adjust light, and unregister as soon as light is restored. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: UIBrightnessAdjust vs BrightnessFix
Does any system event happen before the UI show? If so, you can trap it before SysHandleEvent, and then enque your event. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
CreatorID
For the past week or more, ACCESS's site to register CreatorIDs is down. www.developerpavilion.com See a post at http://www.accessdevnet.com/index.php/Forums/Tools-Garnet-OS-Development-Suite/1084-ReI-want-to-regist-CreatorID.html Does anyone have anymore information? Is there any other method? Or should I just guess use an uncommon set of letters, hope for the best. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: UIBrightnessAdjust vs BrightnessFix
So how about enqueing a custom event after calling the API? Thus your event will be handled after the system screen shows. You will be able to get the brightness when you get the custom event. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Classic emulator interface on Palm Pre
One thing I cannot understand. If Palm has the source code for the OS, the source code for the Windows Simulator, how hard would it be for them to port it to the Pre? Why do they have to outsource it to a 3rd party, and make users buy it? Unless the underlying OS of the Pre is so bad, that they couldn't do it themslves! Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: cannot clear dmRecAttrDirty bit, help please
I am not sure if you tried this, but I am sure that you should change the dirty attr after MemHandleUnlock, and after DmRelease record, and probably after DmInsertionSort (just you will first have to find the record, since the index has changed during the sort. Use the id). Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Getting ready for WebOS
Which one CRASHES more often, DGOS or the plane? :-) Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Getting ready for WebOS
Well Dmitry, I understand you are upset, but you also seem to be giving up, your DGOS blog hasn't been updated in 2 months!. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Seeking API to just look into he event queue
How about using EvtAddUniqueEvent? Even better, have your handler for winredraw enque a custom event using EvtAddUnique, handle the redraw in the unique event. When you return from the progress screen, use EvtAddUnique for your custom event. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Seeking API to just look into he event queue
My solution would solve this issue. For example, when the dialog closes, you get a frmUpdate, rather than redrawing, add a unique custom event at end of queue. Now if there us a WinRedraw event, it will be processed before the event you enqued. So when you get the WinRedraw you should also post the unique custom event at end o queue, which will remove the previous event from queu. So when all is done, it will only be handled once. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Are you feeling special?
Well it's a question between Capitalism Socialism. Usualy Capitalism is more successful. Though OpenSource projects are great for the savvy, they usualy are not successful with end consumer. For example, Linux may be great for servers which are maintained by techs, but it will never be a real option for the average Joe. The reason, is there is not much money to be made. So for a PDA OS, stop OpenSource talking, and start finding investors. Lionscribe Frantisek Dufka wrote: So, umm, since you brought it up, what about opensourcing it and sharing some knowledge? This is how projects like ReactOS, AROS, Haiku stay alive. And even then it is tough to stay relevant. When talking about dinosaurs - this closed mindset is IMO part of it too :-) -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Sending a Contact
You can check the Address Book sample (ver 4.1) to see if it registers for this -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: White screen on app launch
How do you launch the application? -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: How many people exchange vCards?
Mobile Phones: No Smart Phones: Yes Many people who have Palms have sent me contacts. The code is available in the Address Book sample. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Database corruption
I have a program that uses a single record database for its data. On the start of the applicationam the db is opened, and the record is gotten Locked. Upon exit all is unlocked, released closed. problem is that some user, after many months the program starts showing garbage data, as if the data is corrupted. Resetting the Palm usually does not help, but if the user just reinstalls the same database, or copies it to the card then back to devoce, everything is fine. In addition, when there is an Alarm, we open database read-only, Query Record, Lock, Read , Unlock, Close, evrything reads fine. Is there anyone who can figure thus out? Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: locking code
Dmitry, Can you explain the idea behind this to us simple souls. I imagine you are trying to imitate MemPtrNew (with allocation at bottom of heap) in the dbMemory, but please explain. Also, wouldn't it be better to use feature memory, so that we can close database? Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: locking code
To create notification, do not copy function to Feature memory. Just reopen application database with the dmModeLeaveOpen flag. Lock code resource 1 using DmGetResource MemHandleLock This will really be a second lock, and will prevent the resource from being unlocked when application exits. Do not unlock it or close database when exiting application. Now just pass a pointer to the function (not the resource) when setting the notification. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: locking code
Why don't you just use the launch method, and save the hassle. If you are doing it to save speed, and you only need the notification in a few instances, then just have the locked function do the checking if you should handle it, and ifyou do then it should send it's own launch code when necessary. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Porting GNU Pth
Well you all don't seem to know Dmitry! He is one of the Supreme Hacking master of the Palm OS. There is nothing that he loves more then doing dumps and cracking the 68K ARM Code. But it seems that he has to make a living too, and therefore he does not seem to want to share the hard work with us lazy C progranmers. If we would all offer him let's say 10K, I am sure he would be open for discussion. So who is starting the PayPal donations collections? :-) Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: prcexplorer for macos?
Ben Combee in this article http://www.palmoswerks.com/stories/storyReader$49 mentions using Virtual PC on the MAC -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: sysExternalConnectorAttachEvent: NotifyDetailsP
That's why I wrote to him, based on your information I didn't research it, but it did strike me odd that it should pass a pointer to a UInt16, that's why I added those words. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: sysExternalConnectorAttachEvent: NotifyDetailsP
Christopher Stamper wrote: case sysAppLaunchCmdNotify: If (((SysNotifyParamType*)cmdPBP)-n == DeviceType) //Do action for that device 1 Wrong, based on your information it should probably be the other way case sysAppLaunchCmdNotify: DeviceType = *((UInt16*)( ((SysNotifyParamType*)cmdPBP)-notifyDetailsP)); switch (DeviceType) { case 99: Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Palm Time
Thanks for your comments. There were some bugs in that first release which only affected POSE users. I have just fixed it, and have uploaded the newer version at: http://www.lionscribe.com/downloads/files/freeware/palmvalues.prc Enjoy! LionScribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: One-and-a-half and triple density custom fonts
Shalom, Try dropping the Glyph size to 10 (remove the top line), and then you will be able to make it all proportional. And if I am correct, Hebrew glyphs by default are better off in 10 than 11. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: One-and-a-half and triple density custom fonts
In addition, make sure all your letters have an even width, that way you can also make the with proportional. For example, if the Bet is 6*10, you would make the 108 at 9*15 I imagine it won't look perfect, but it should work. Lionscribe P.S. You don't have to edit all letters for the testing purpose. You can create a font with a single Glyph, and test with it. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Palm Time
Beautiful! Didn't try it yet, but it sure beats doing it manually using Excel (Formula=ROUND((A1-DATE(1904,1,1))*86400,0) BTW, You just prompted me to release my own freeware utility which I wrote for myself, called 'PalmValues', which calculates all Palm values (HEX, OCT, BIN, DATE, SIGNED, UNSIGNED). You can download it at http://www.lionscribe.com/downloads/files/freeware/palmvalues.prc Drop me a line if you enjoy it. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: CWDebugger preventing crashes?
Create a log file, and write to it at every step. See if it crashes at the same place. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: How to tell if I am compiling for PalmOS?
Do you need that header for yourself (compile time), or for the end user? If it's for yourself, you can probably add a define in the project setup (commandline or GUI). If it's for the end user, then just add a file which will be called Palm_*, which will define __PALMOS__, and then will include the standard header file. Then have the users only include the new header file. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Linking a single Glue API in the midlle of a C file
Welcome back Aaron! You were very much missed. I see your humor has stayed with you. :-) Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: MemPtrNew fragmentation
Well this calls for the good old fashioned method of seperate records for each index. The cost of 16-18 bytes per record will pale in comparison to the 100+ bytes saved per record. You can then use all the Dm* functions for sorting and etc. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Can the OS decide to flush a (bad?) PRC
Sounds like the PRC header got corrupted, and that's why it's gone. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Data Encryption on Palm OS
AESLib http://www.copera.com/AESLib/index.html -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Programmatically setting the Shift key?
Just set the Field as Numeric in your resource file, the OS will do it automatically. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Treo modem/phone emulator?
In the first stage of testing you can create your own small sister application, that sends the phone notifications. You can also use the alarm to send multiple notifications. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: DmWriteCheck failed?
Well blaim it on Palm. They should have defined it as dmErrorClass | 0x0E BTW, I made the same mistake this morning. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: GsiEnable() crashes Sony simulator
Two more suggestions. 1. Try moving FrmSetActiveForm before GsiEnable. 2. Try to isolate the bug, by sreating an empty project. Try the call to GsiEnable in different places. See whuch crash. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: GsiEnable() crashes Sony simulator
Try moving the FrmInitForm to begining of Function.. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: GsiEnable() crashes Sony simulator
We would need more code then that. Please post all the code from FrmInitForm. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Palm OS Plumbing: Key and Pen flushes don't flush
You shouldn't be using FrmDispatchEvent. That bypasses the que, shouldn't be used by other than the eventHandlser. Use EvtEnqueEvent! That should que it after the pen events. Lionscribe Jonathan Carse wrote: EventType evt; evt.eType = frmCloseEvent; evt.data.frmClose.formId = FrmGetFormId(tmp); FrmDispatchEvent(evt); // Dispatch close event. The should be handled by the handler after all the pendowns, but somehow doesn't -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Palm OS Plumbing: Key and Pen flushes don't flush
The best thing to do it is to create a new form, which does not respond to any penDowns, show the form, and then do the long function. When done, post a frmCloseEvent, which should be handled after all the penDown events. Once you have this form, you can add a progress bar to it, as the previous post mentioned, and maybe a 'Cancel' button (just remember to check for events if you add the c Cancel button). Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Handle side button (Voice memo button)
You can also register for the VirtualKey notification. That should work anywhere as lon as you have OS4 and above. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Locking of the background apps ?
What you have to do is 1. When your application starts, Open the application ('appl') database in ReadOnly LeaveOpen mode. That way, even after the application exits, the app database stays open. 2. Lock all code resources with DmGet1Resource, MemHandleLock. That way even when app exits, everything stays locked. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Locking of the background apps ?
Do you alarms use the launch method, or do they use function pointers? -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Alternative to LstGetTopItem API prior to OS 4.0
On pre 5.0 you can always access the ListType internals directly. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Locking of the background apps ?
Also, make sure you open your application database, make sure to open it in leaveopen mode. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Newlines don't work with FldSetTextPtr
You have to call FldRecalculateField after FldSetTextPtr on mukti-line text fields.. FldSetTextHandle calls it internally. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Form object (field) not found error
I would imagine the problem is that calendar contacts use table fields, which are created on the fly, while Memo uses a single field. The way around this would be to store the table info, and get a new pointer to current cell (field). -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Loading a PRC file directly?
I disagree. Your user may not know how to copy from the card. Just invest $29.00, get Nutshell, you can run it either on the Palm or PC. Create an installer, call the installer start.prc, put in on the card in the /PALM folder. The program will self install when users insert the card, and you will have many happy users. You should also put a copy of the installer into the /PALM/LAUNCHER folder, so if it fails to start automatically, users can run the install directly from the card. I have done this in the past with many happy users. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Loading a PRC file directly?
I did that originaly, but now I would charge $200 an hour so it's not worth it :-) Nutshell also has the additonal benefit of ZIP compression, for when being downloaded. Believe it or not, but even Google uses Nutshell for Google Maps. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Alarm Silent/Loud on Treo650
Just use a profile Manager like Profiles. It gives you the option to change settings for a period of time. And it's Free. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: non-standard font alignment
Just call this function to center the object. You will have to call FrmDrawForm when done. void CenterObject(FormType * formP, UInt16 objectID) { RectangleType rect, rectForm; UInt16 objIndex = FrmGetObjectIndex(formP, objectID); FrmGetObjectBounds(formP, objIndex, rect); FrmGetFormBounds(formP, rectForm); rect.topLeft.x = (rectForm.extent.x - rect.extent.x) / 2; FrmSetObjectBounds(formP, objIndex, rect); } -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: multi-segment shared library
See http://www.mail-archive.com/palm-dev-forum@news.palmos.com/msg99330.html -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: non-standard font alignment
Just call the following function to center the object. You will have to call FrmDrawForm when done. void CenterObject(FormType * formP, UInt16 objectID) { RectangleType rect, rectForm; UInt16 objIndex = FrmGetObjectIndex(formP, objectID); FrmGetObjectBounds(formP, objIndex, rect); FrmGetFormBounds(formP, rectForm); rect.topLeft.x = (rectForm.extent.x - rect.extent.x) / 2; FrmSetObjectBounds(formP, objIndex, rect); } Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: DB question, searching
It seems that you have this Palm database thing all confused. The Palm database system has nothing to do with the standard database of Access or the like, other than it is a collection of records. The PdbTools you are using, I believe is meant for the db program, which is a free database program for the Palm. There are also commercial database programs available for the Palm (JFile for example). If that is good enough for you, just use that, and you don't have to program at all, just set up your database format. If you want to custom create a program, then you will have to custom create the database format, and use a Desktop Palm Database Creator tool like PRC or the like. Also you should note that every record in the Palm Database wastes around 18 bytes, so that is another reason to limit the number of records. In any case it may be better using a Resource type database, and using one Resource type for Words and index, and another for definitions. You might have to write some scripts on your desktop to create the files. LionScribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: MemHandleSize always returns 0
Peter Lane wrote: Ha! Can you tell I've been programming in Java for the past seven years? Well that will also explain your disregard for thrifty memory usage, using an UInt32 when a UInt16 will sufice. :-) -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Icons and Bitmaps
JSeb wrote: I felt it would be more elegant to be at least able to specify its position in the resource file Well, you can put a gadget in the resource, and then draw the icon it the gadget's bounds. If you wnt more fun, make it an extended gadget. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Hotsync ID Checksums
Check this out http://whizoo.com/apps/regcode.php It might cost some $, but it will speed up develppment. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Accessing Browser bookmarks
Donald C. Kirker wrote: Sure. Bookmark importing. Well with an email address of [EMAIL PROTECTED] it pretty much gives away what Nokia has up its sleeves in developing their next PDA :-) -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: display menu/list in another application
[EMAIL PROTECTED] wrote: The list shows up without even having to draw the form. I am sure it's being drawn somehow, wether by FrmPopupForm of FrmDoDialog, which internally call FrmDrawForm (eventually). -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: display menu/list in another application
Never touch a different applocatiion's resources. You are asking for trouble. What you should do is create a Form the size of the list you want (with no title), create a list in that form at coordinates 0,0 and popup the form. You can create the form and list dynamically, with FrmNewForm LstNewList for maximum usability. Set the Form to SaveBehind, so that there will be no need to redraw. Good Luck, Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: ZLib without globals?
Here is the code I used. The commented-out code is code that we changed in second version. Don't remember the reason. Lionscribe Int16 zCompressLevel = 5; UInt32 newSize; while (zCompressLevel) { newSize = 9000; err = myCompress(destP, newSize, sourceP, totalSize, zCompressLevel); if (!err) break; else zCompressLevel--; // Try smaller compression } if (err)// All levels have failed, so exit return err; Err myCompress(UInt8 * dest, UInt32 * destLen, const UInt8 * source, UInt32 sourceLen, Int16 memoryLevel) { _err = 0; //_err = ZLibcompress2(ZLibRef, dest, destLen, source, sourceLen, memoryLevel); // Some versions of ZLib work this way, others that way. Beats me. //if (_err _err != Z_MEM_ERROR) { z_stream stream; UInt16 level = (memoryLevel * 2) + 1; if (level 9) level = 9; stream.next_in = (UInt8 *)source; stream.avail_in = sourceLen; /* Check for source 64K on 16-bit machine: */ if ((UInt32)stream.avail_in != sourceLen) return _err = Z_BUF_ERROR; stream.next_out = dest; stream.avail_out = *destLen; if (stream.avail_out != *destLen) return _err = Z_BUF_ERROR; stream.zalloc = (alloc_func)0; stream.zfree = (free_func)0; stream.opaque = (voidpf)0; // _err = deflateInit(stream, memoryLevel); _err = deflateInit2(stream, level, Z_DEFLATED, memoryLevel + 7, memoryLevel, Z_DEFAULT_STRATEGY); if (_err != Z_OK) return _err; _err = deflate(stream, Z_FINISH); if (_err != Z_STREAM_END) { deflateEnd(stream); return _err == Z_OK ? Z_BUF_ERROR : _err; } *destLen = stream.total_out; _err = deflateEnd(stream); } return _err; } As for globals, what we did (in a differrent situation), is change 'ZLibRef' from an UInt16 to a Macro which calls a function which returns the value from a feature memory, which is set when we start the library like this. (The code was copied for use from a different library using search replace, so there might be some errors.) // UInt16 ZLibRef #define ZLibRef getZLibRef() #define featureNumberZLibOpenCount 0x6500 UInt16 getZLibRef() { UInt32 value; if (errNone != FtrGet(appFileCreator, featureNumberZLibRef, value)) value = sysInvalidRefNum; return (UInt16)value; } static void setZLibRef(UInt16 refNum) { UInt32 value = (UInt32)refNum; if (refNum == sysInvalidRefNum) FtrUnregister (appFileCreator, featureNumberZLibRef); else FtrSet(appFileCreator, featureNumberZLibRef, value); } static Int16 getZLibOpenCount() { UInt32 value = 0; FtrGet(appFileCreator, featureNumberZLibOpenCount, value); return (UInt16)value; } static Int16 incrementZLibOpenCount() { UInt32 value = getZLibOpenCount(); value++; FtrSet(appFileCreator, featureNumberZLibOpenCount, value); return value; } static Int16 decrementZLibOpenCount() { UInt32 value = getZLibOpenCount(); if (value 0) value--; if (value == 0) FtrUnregister (appFileCreator, featureNumberZLibOpenCount); else FtrSet(appFileCreator, featureNumberZLibOpenCount, value); return value; } Err ZLibLoad() { Int16 openCount = getZLibOpenCount(); incrementZLibOpenCount(); if (openCount == 0) { UInt16 iZLibRef = sysInvalidRefNum; if (errNone != SysLibFind(ZLibName, iZLibRef)) { SysLibLoad(LibType, ZLibCreator, iZLibRef); } if (iZLibRef != sysInvalidRefNum) { if (mlErrNone != ZLibOpen(iZLibRef)) { /* if error loading library, reset reference */ iZLibRef = sysInvalidRefNum; } } setZLibRef(iZLibRef); if (iZLibRef == sysInvalidRefNum) return -1; } return 0; } Err ZLibUnload() { decrementZLibOpenCount(); Int16 openCount = getZLibOpenCount(); if (openCount == 0) { UInt16 iZLibRef = getZLibRef(); if (iZLibRef != sysInvalidRefNum) { UInt16 useCount; ZLibClose(iZLibRef, useCount); if (useCount == 0) { SysLibRemove(iZLibRef); } iZLibRef = sysInvalidRefNum; setZLibRef(iZLibRef); } } return 0; } -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: ZLib without globals?
Use this version of the forum www.mail-archive.com/palm-dev-forum@news.palmos.com/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Power state and Phone call event
Michal Seliga wrote: if your program is running device is on for sure. when device is off everything sleeps so no program is running. maybe you want to check display if its on or off? or some other special state? Most probably they were refering wether the device was just woken up by a phone call or an alarm. Yiu can try figuring that out by registering for the earlywakeup and wakeup notifications. See the docs. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: ZLib without globals?
Using SysLibFind many times is a waste of resource, since it calls SysCompare multiple times. What you should do is store the reference value as a feature. In addition you should store in a different feature a Boolean value if you loaded the library, for you should only unload it if you were the one to load it. As for the compression bug, I believe I posted a long time ago a bug in certain builds of the library, and I had posted a workaround. (There are 2 methods to call, one works with some builds fails with the other, and one works with the other fails with the first). If you don't find the post, let me know, and I will search my files. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Some Debugger problem....
How about the DotDotTwo program? -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Input.h header
[EMAIL PROTECTED] wrote: The up and down arrows are defined by the Page-Up and Page-Down keys. That is not always correct, though sometimes the OS converts them to pageUpChars. As for the actual char codes, it is very complicated, since differrent devices issue differrent codes. Some use the vchrRockerXXX codes, while others use some NAV bit twiddling, and others use differrent codes. There are some usable macros included in the PalmOne SDK (not Access), but even those aren't perfect. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Create a simple palm db on PC for manual transfer
You can also use PalmDataLib from PocketPurchase. Though PocketPurchase shut down, it can still be downloaded from http://codecobblers.com/tools/index.htm It's free, and it implements most Palm database function for your Windows code. I have used it successfuly. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Adding categories programatically
You should unlock the category ptr brfore setting the name. Also you do not unlock if you do not find the name. In any case you should rather code this way without directly accessing the appInfoPtr (though it's a drop slower: UInt16 i; char name[dmCategoryLength]; for (i = 0; idmRecNumCategories; i++) { CategoryGetName (database, i, name); if (name[0]=='\0') { CategorySetName (database, i, trackName); return i; } } return dmAllCategories; // no room to add... -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
WinScreenLock question
In my application I have to draw a form, make it active, but I don't want it to be visible. So I do the following WinSaveBits WinScreenLock FrmInitForm FrmSetActiveForm FrmDrawForm WinRestoreBits WinScreenUnlock It works fine, I am just wondering why I am doing 2 copies of the screen, as WinScreenLock also creates a second Window. Maybe I can somehow copy back from the original Screen Window, to the new Screen Window, thus not needing WinSaveBits? Also, WinScreenLock is supposed to return a pointer to the new draw screen, but though it works, it seems to return a NULL pointer on the simulator. Or, maybe there is a complete different and simpler method to get the same results that I need? Thanks in advance, Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: WinDrawBitmap not working
Or else put it in as an Extended Gadget, and have the GadgetHandler draw itself. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Disable Blinking bell from launcher when our app get deleted.
See http://kb.palmsource.com/cgi-bin/palmsource.cfg/php/enduser/std_adp.php?p_faqid=897 for an example. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Compile Errors using the new 5.4SDK from palm
Make sure you download the SDK specified for CodeWarrior. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Compile Errors using the new 5.4SDK from palm
Is one of the errors 'File not found'. If so, maybe you have an error in the Access Path. Also, do you also have the SDK from PalmOne (Palm, not PalmSource(Access)) -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Focus rings, AvantGo and the Zire 31.
Most probably they draw it themselves. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/