pscan-dev Mailing List for PScan (Page 8)
Brought to you by:
clonebarkins,
dspanky
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(5) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(5) |
Dec
(19) |
2007 |
Jan
(1) |
Feb
(11) |
Mar
(7) |
Apr
(6) |
May
(12) |
Jun
(10) |
Jul
(8) |
Aug
(24) |
Sep
(27) |
Oct
(14) |
Nov
(14) |
Dec
(7) |
2008 |
Jan
(11) |
Feb
(6) |
Mar
(32) |
Apr
(23) |
May
(12) |
Jun
(3) |
Jul
(2) |
Aug
(3) |
Sep
(2) |
Oct
|
Nov
(1) |
Dec
|
2009 |
Jan
(16) |
Feb
(8) |
Mar
(12) |
Apr
(25) |
May
(89) |
Jun
(79) |
Jul
(43) |
Aug
(25) |
Sep
(19) |
Oct
(31) |
Nov
(6) |
Dec
(4) |
2010 |
Jan
(1) |
Feb
|
Mar
(26) |
Apr
(50) |
May
(53) |
Jun
(78) |
Jul
(46) |
Aug
(57) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
|
2011 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Curtis W. <dy...@an...> - 2001-07-16 14:57:41
|
Here's another one. >Hey... Here is how I do that for sending an event at the press >of the power key (power on) which only sends a nilEvent >so I needed another event type to act upon.... > > >// global definition >#define WakeUpEvent ( firstUserEvent ) > > >// defined within func() >EventType customEvent; // for wake up... > >// hit to power off > case 520: // POWER KEY!! you only get this when powered up and hittin > customEvent.eType = WakeUpEvent; // set our custom event > EvtAddEventToQueue( &customEvent ); // toss it out > break; > > >// acted upon when powered up... >if (eventP->eType == firstUserEvent ){ > SysSetAutoOffTime (0); handled=true; > return handled;} // return a false Link: http://groups.google.com/groups?hl=en&safe=off&ic=1&th=38db0e5a0ec3d756,2&seekm=6r7eaqD7%24GA.44%40www.massena.com#p Get 250 color business cards for FREE! http://businesscards.lycos.com/vp/fastpath/ |
From: Curtis W. <dy...@an...> - 2001-07-16 14:50:02
|
Found some info on the pilot.programmer news. >It's fairly simple: > >void QueueUserEvent(int iEventType,Word data1,Word data2=0,Word >data3=0,Word >data4=0,Word data5=0,Word data6=0,Word data7=0,Word data8=0); >void QueueUserEvent(int iEventType); > >void QueueUserEvent(int iEventType,Word data1,Word data2,Word >data3,Word >data4,Word data5,Word data6,Word data7,Word data8){ > EventType event; > MemSet(&event,sizeof(EventType),0); > event.eType=(events)iEventType; > event.data.generic.data1=data1; > event.data.generic.data2=data2; > event.data.generic.data3=data3; > event.data.generic.data4=data4; > event.data.generic.data5=data5; > event.data.generic.data6=data6; > event.data.generic.data7=data7; > event.data.generic.data8=data8; > EvtAddEventToQueue(&event); >} > >void QueueUserEvent(int iEventType){ > EventType event; > MemSet(&event,sizeof(EventType),0); > event.eType=(events)iEventType; > EvtAddEventToQueue(&event); >} >Just use an event firstUserEvent(part of an enum) or above. >When handling the event, just retrieve the data from >eventP->data.generic . Here's the link at google (with previous/prior posts). http://groups.google.com/groups?hl=en&safe=off&ic=1&th=8c9fb43cee1b1b66,3&seekm=5m8J8qIvAHA.52%40www.massena.com#p Get 250 color business cards for FREE! http://businesscards.lycos.com/vp/fastpath/ |
From: Curtis W. <dy...@an...> - 2001-06-26 13:36:54
|
-- On Mon, 25 Jun 2001 23:42:14 Dave wrote: >Here's the latest code I have, which includes the bit I mentioned. I took out the nilEvent code where I found it (might want to check up on that) and added the loop in PScanForm.c > >It compiles, but is still not right. > >1. I'm pretty sure more needs to be added to the loop to handle all necessary events. >2. binary craps out when you click the scan button. Says something about calling a shared library that doesn't exist or something. I thought I might have left an old extern call from a nonexistant function or something, but couldn't find one. Doesn't relate to the event bit I added because commenting this out has no effect. > >BTW, burned your cd tonight. When will I see ya? I can post it out if that's easiest. A single cd will cost nothing to mail. > >Dave. > Get 250 color business cards for FREE! http://businesscards.lycos.com/vp/fastpath/ |
From: Curtis W. <dy...@an...> - 2001-06-26 13:35:54
|
>1. I'm pretty sure more needs to be added to the loop to handle all necessary events. Yes. The events we need to handle are button presses on the ResultsForm. We will have to do this manually. Fortunately, with the buttons, we will only need to do like one or two function calls (like, FormGotoForm() if the "New Scan" button is pressed, ScanClose() if the "Stop Scan" button is pressed, etc.) I've moved the loop to the top of ResultsFormHandleEvent(). Also, I've moved the button handling to a new function: ResultsFormHandleButtonEvent(). The new function is called from two places within ResultsFormHandleEvent: in the scan loop, and in the switch statement. a. In the scan loop, the return from ResultsFormHandleButtonEvent() is checked. If true, the event loop portion is stopped and the scanstop var is set. If not, the event loop continues. Then, the scanstop variable is checked (at the very end of the scan loop). If true, break, else continue. b. In the switch statement, I don't do any checking for the result--I just set handled equal to the ResultsFormHandleButtonEvent() return value. >2. binary craps out when you click the scan button. Says something about calling a shared library that doesn't exist or something. I thought I might have left an old extern call from a nonexistant function or something, but couldn't find one. Doesn't relate to the event bit I added because commenting this out has no effect. I'm having trouble with POSE. For some reason I can't transfer my ROM. Anyway, I'll work later when I get a chance on getting a ROM and checking it out. I can't compile this because of my recent upgrade, so I'll let you do it if you can. If you have any questions, you know where to find me. Curtis. Get 250 color business cards for FREE! http://businesscards.lycos.com/vp/fastpath/ |
From: Dave <d.m...@ho...> - 2001-06-15 22:28:17
|
Cool. I'll take a look and see what I can find. I haven't had a chance to do anything today because I was at camp all day. Hopefully tonight I'll bust out. I recall someone mentioning something about events on the plucker dev list. Maybe a look through that code will help out. ----- Original Message ----- From: "Curtis Weyant" <dy...@an...> To: <d.m...@ho...> Sent: Friday, June 15, 2001 5:10 PM Subject: To ponder > Hey, > > More on the event-based scanning. There is a EvtAddUniqueEventToQueue() call. Basically, we could use a unique nilEvent to do what we want. However, I can't figure out how to read the id of the posted event (i.e., I can set it id, but not check it). This is not very useful. Let me know if you come up with anything. > > Attached is a tarball of the code I've been working on. Note that it's NOT compilable (hey, it's after 5 on Friday and I ain't sittin around here no more!) > > Curtis. > > > > > > > > Get 250 color business cards for FREE! > http://businesscards.lycos.com/vp/fastpath/ |
From: Curtis W. <dy...@an...> - 2001-06-15 18:48:13
|
I'm trying to figure out the best way to implement the scan through the event manager. Basically, we don't want to do our own loop because then you would have to go through the entire scan before it goes back to the event handler. If we're going to be creating a results field, this could potentially overflow the event queue. I think the best thing to do is simply create a custom event (pscanScanEvent?), but documentation on such a thing is sparse. All I've found so far is one mailgroup post that says a guy was thinking of creating a custom event. Of course, he didn't mention how he was going to go about doing that. Any ideas or any references would be helful. Curtis. Get 250 color business cards for FREE! http://businesscards.lycos.com/vp/fastpath/ |
From: Curtis W. <dy...@an...> - 2001-06-14 21:06:00
|
Yo, I've been busting out. 1. Created ResultsForm. a. Results field b. Save as: Memo/Doc (just the list, doesn't actually save) c. Stop Scan button d. New scan button (takes you back to main form) 2. Added "Edit" menu. Doesn't sound like much, but it took me a little while because Pilrc doesn't have a GUI preview like it used too! Also, I was messing around with the popup list control, but couldn't get it to work right, so I said screw it and went to a regular list instead. Doesn't look bad. Also, I added a scrollbar resource, but I can't get it to show up. Any ideas? The pilrc manual is at http://www.ardiri.com/index.cfm?redir=palm&cat=pilrc&subcat=manual Right now, Scan() is called before going to ResultsForm, which means the scan is completed before going there. I'd like to change this, but as we discussed last night, not sure how exactly to do it. Anyway, here's the zipped code. Curtis. Get 250 color business cards for FREE! http://businesscards.lycos.com/vp/fastpath/ |