Re: How do I judge the device model?

2004-03-31 Thread Damir
UInt32 processorType; UInt32 companyID; UInt32 deviceID; UInt32 halID; // get the processor type FtrGet(sysFileCSystem, sysFtrNumProcessorID, &processorType); FtrGet(sysFtrCreator, sysFtrNumOEMCompanyID, &companyID); FtrGet(sysFtrCrea

Re: Digitizer Input

2004-03-04 Thread Damir
Hi, Franco. You can use EvtGetPen() Damir FF> I'm trying to make an app that will display pen coordinates in OS 4 . FF> I've been reading the API reference but I'm still not getting it. FF> What order uses the OS to work with pen coordinates? FF> there seems to be

Re: Identifying precisely a CPU on a Palm device

2003-12-02 Thread Damir
You can got the device list from: http://homepage.mac.com/alvinmok/palm/codenames.html Damir EF> In PalmOS, a call to FtrGet(...) can gets you the processor currently used. EF> The problem with that function is that it only returns the processor EF> generation (ARM920T, DragonBall EZ, ARM

Re: How can I use the PC infrared adapter to communicate with palm TT!

2003-11-14 Thread Damir
Hi, Wang. I have an IR adapter connected to my PC (Win2K), and I can bean/receive data with all my PDA (T|T, T|3, SONY NX73, T|E ) with no problems. Which OS do you have on the PC? Damir. WX> Hi, WX>I have an idea that I connect a PC infrared adapter with WX> the PC's se

Re[2]: can't run the case inside cases

2003-11-11 Thread Damir
is in the MainFormButton1 bounds then do your //code, otherwise skip it break; } Damir. K> so how can I correct the code to run penDownEvent ? K> I want to select the button and then run the code of penDownEvent K> thanks! K> "Damir" <

Re: can't run the case inside cases

2003-11-11 Thread Damir
Hi KEN, Following your code, line 10 will handle ctlSelectEvent for MainFormButton1 control only, you never get penDownEvent this way. You see, one event cannot have eventP->eType to be equal to ctlSelectEvent and penDownEvent at the same time. You need to change code logic. Damir.

Re: Treeview in Palm-OS???

2003-10-31 Thread Damir
Have a look at http://www.palmgear.com/software/showsoftware.cfm?prodid=52412 nice looking tree view HS> Hi all, HS> how can i use a tree-view or a tree-control in PALM OS? HS> Is it possible or must i develop a tree-view for myself? HS> Thx for answering HS> Bye HS> Harry -- For informati

Re: Sony Hi-res, or mixing hi-res screen coords with low-res control coords :(

2003-10-25 Thread Damir
Hi Luc, I am using PalmOS HiRes this way: case penDownEvent: { Int16 penX = eventP->screenX * 2; Int16 penY = eventP->screenY * 2; } Damir LLB> My application displays a zoomabl

Re: unsigned character problem

2003-10-04 Thread Damir
Hello, Brian. Try this: unsigned char thisone[] = ""; Damir B> Good Day, B> Has anyone encountered a problem when copying a data of type B> unsigned characters to Char*? B> example: B> unsigned char* thisone= ""; B> unsigned lo

Re[2]: Timing out an application for inactivity (security feature)

2003-09-15 Thread Damir
that time to the current time. On the mainloop, frequently TN> check to see if it is time out or not, TN> if time out, then queue the close event to exit the program. You better to set: EvtGetEvent(&event, xxx); where xxx - is number of system ticks. Then you need to catc

Re: Convert 24 bit to 16 bit

2003-09-10 Thread Damir
into 16 bit? Damir mailto:[EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

How play sound from resource on SONY OS5.0

2003-09-10 Thread Damir
Can anybody help me to play PCM sound from resource on SONY NX? My device does not have "Sound Stream feature", so I can't use SndPlayResource(). Damir. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: please please please help with sound?

2003-09-08 Thread Damir
;m still trying to find a way to temporarily turn off sounds (like those MWS> that happen when you press a button) during a small part of my app and have MWS> posted 4 times with no luck...I know someone out there must have some good MWS> ideas? MWS> thanks all. -- Damir

Re: Hotsync ID

2003-09-07 Thread Damir
Hi, you can use this MemHandle nameH = MemHandleNew(dlkUserNameBufSize); char* nameP = (char*)MemHandleLock(nameH); // Obtain the user's name DlkGetSyncInfo(NULL, NULL, NULL, nameP, NULL, NULL); // ... Do something with the user name here ... // Now

Re: Graphical Progress Bar

2003-09-01 Thread Damir
more specific question. Damir. RDdO> Hy all!! RDdO> I would like to draw a graphical progress bar that will show the progress of RDdO> a process that will take some time to complete. I was using the Progress RDdO> Dialog to do this, but i think that using a graphical progress bar will be RDd

Re: Show/Hide Scroll Bar problem

2003-08-29 Thread Damir
Hi, Boris. Set Usable in resource, and MinVal, MaxVal to 0; Calling SclSetScrollBar() should be enough to make it shown. Damir. BE> I have a relatively simple table where all cell are custom drawn. BE> Sometimes the number of records to display is minimal -- so no need BE> for

Re: How to wrap lines for list items?

2003-08-29 Thread Damir
Hi, Sri. Do you use List Control? BSRB> Hello, BSRB> I have a list with some of the items which does not fit BSRB> in one line. So, I want to show them as wrapped in multiple BSRB> lines. BSRB> Can anybody help me how to do this? -- For information on using the Palm Developer Forums, or to un

Re: Transparency in 16-bit land

2003-08-29 Thread Damir
way RZR> to finesse the needed red/green/blue values into the 565 form in C RZR> code? I am using encoding to 5-6-6: //make 5-6-5 bitmap coding (16bit) //UInt8 R,G,B R = (R-7) / 8; G = (G-3) / 4; B = (B-7) / 8; //put all colors to one value

Re: Multiple Palms, One Computer

2003-08-28 Thread Damir
ay. If you find it, let me know. Currently I sync TungstenC, Kyocera and SONY NX73 I have Hot Sync Manager v.4.1.0, and Palm Desktop 4.1 Damir. GA> I recently purchased a Sony Clie PEG TG-50 so that I could debug a problem GA> known to occur on that device (my previous post). I already have a

Re: Writing my Own WinScreenLock

2003-08-27 Thread Damir
Hi, Mike. I am using another method: 1. Make my offscreen window 2. When I need to draw, I set DrawWindow to my window 3. Make drawing all I need 4. Set DrawWindow back to screen window 5. Copy my window to screen window It works fine. Damir. MM> Hi, MM> I am tyring to write

MemSemaphoreReserve ????

2003-08-25 Thread Damir
with phone unit and device locks-up. And my question is. How can I restrict OS to work with another pice of code, while I am making "real-time" task for couple of mSec? Thank you in advance. Damir. -- For information on using the Palm Developer Forums, or to unsubscribe, please