Re: Dynamic UI troubles

2007-02-01 Thread Dmitry Grinberg
it has been discussed here many times (with solutions and lots of details in problems) that palm's dynamic ui functions are very unreliable. for example removing ui elements is guaranteed to fail if removing anything but the last element. consider creating the list as hidden at design time, and hi

re: Dynamic UI???

2005-03-07 Thread marcus csk
how can i relate with the event handler to do the following job in my function... * setFieldText(8001," /*some text print out here*/ "); if( event->eType == ctlSelectEvent ) { FrmGetActiveForm(); //a button was clicked

re: Dynamic UI???

2005-03-07 Thread mguo
where is your event handler you set for the custom form? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Dynamic UI and PalmOS 4.0 (warning, probably it doesn't work correctly)

2002-11-22 Thread Aaron Ardiri
> My question to Aaron Ardiri, > have you tried at least similar example > on PalmOS 4.0 ? > > What could you suggest? > > I use dynamic UI too, but in particular example > it is a little challenge. what example? --- Aaron Ardiri [EMAIL PROTECTED] CEO - CTO

Re: Dynamic UI and PalmOS 4.0 (warning, probably it doesn't work correctly)

2002-11-21 Thread Sinoptic
I've found the way how it works stable on PalmOS 4.0. On FrmLoadEvent a dynamic form and its UI must be created. On frmOpenEvent program just draw the form, no dynamic UI creation. Hope my experience will be useful for anyone who works with it. Sinoptic. "Aaron Ardiri" <[EMAIL PROTECTED]> ?

Re: Dynamic UI and PalmOS 4.0 (warning, probably it doesn't work correctly)

2002-11-21 Thread Sinoptic
What do you mean "archives"? Is it PalmOS Companion? In my code PalmOS 4.0 operates by invalid Form pointer, that leads to its crash, with message "Memory Managed data access" Thanks, Sinoptic "Aaron Ardiri" <[EMAIL PROTECTED]> ???/ ? ?: news:102013@palm-dev-forum...

Re: Dynamic UI and PalmOS 4.0 (warning, probably it doesn't work correctly)

2002-11-21 Thread Sinoptic
Dynamic UI gives us a lot of opportunities! It is a point where software begins work for you, but not you for software. So I'll break this nutshell it is a question of compromise and affordable way. My question to Aaron Ardiri, have you tried at least similar example on PalmOS 4.0 ? What could yo

Re: Dynamic UI and PalmOS 4.0 (warning, probably it doesn't workcorrectly)

2002-11-21 Thread Larry Gilbert
Aaron Ardiri wrote: > hey, i use dynamic UI :) works fine for me - some little rules you have > to be aware of, and, they have all been brought up in the archives. Thanks, Aaron. I had somehow forgotten about the archives. (I don't think a rule like "Don't use FrmRemoveObject on anything but t

Re: Dynamic UI and PalmOS 4.0 (warning, probably it doesn't work correctly)

2002-11-21 Thread Aaron Ardiri
> As a relatively new programmer to the Palm world, I have to say that > dynamic forms are my biggest source of pain and misery right now. My > advice: avoid dynamic UI if at all possible. hey, i use dynamic UI :) works fine for me - some little rules you have to be aware of, and, they have all

Re: Dynamic UI and PalmOS 4.0 (warning, probably it doesn't workcorrectly)

2002-11-21 Thread Larry Gilbert
As a relatively new programmer to the Palm world, I have to say that dynamic forms are my biggest source of pain and misery right now. My advice: avoid dynamic UI if at all possible. --Larry -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos

Re: dynamic UI inconsistencies

2002-04-03 Thread Ellen Dash
Nevermind again ... upon closer inspection, the lines were a dark purple. Pixels and chars show in my other ROM which has no color. Thanks for the tip. Ellen _ Join the world’s largest e-mail service with MSN Hotmail. http://w

Re: dynamic UI inconsistencies

2002-04-03 Thread Ellen Dash
>WinDrawPixel, which works only on 3.5 and later (3.5 New Feature Set), >draws in the current draw window using the current foreground color. >So, make sure that the ROM is for 3.5 or later, the current draw window >is the one you think it is, and that the current foreground color is >something yo

Re: dynamic UI inconsistencies

2002-04-02 Thread Joe
--- Ellen Dash <[EMAIL PROTECTED]> wrote: > > Still have the pixel problem though. Can anyone use WinDrawPixel in > POSE? > I can, so I assume many others can, too. WinDrawPixel, which works only on 3.5 and later (3.5 New Feature Set), draws in the current draw window using the current foregro

Re: dynamic UI inconsistencies

2002-04-02 Thread Ellen Dash
Ooops... resolved the popup trigger problem. (Don't ask.) Still have the pixel problem though. Can anyone use WinDrawPixel in POSE? Ellen >From: "Ellen Dash" <[EMAIL PROTECTED]> >Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]> >To: "Palm Developer Forum" <[EMAIL PROTECTED]> >Subject: dyna

Re: Dynamic UI

2002-03-28 Thread dan mason
Anton definitely explained this; you have a choice of doing links as a button or as plain text. I prefer the button because you can use all the Form Manager tricks (setting position, show/hide, redraw if you need it), and because it behaves, by default, like the Web Clipping links. There are do

Re: Dynamic UI

2002-03-28 Thread Joseph Chan
n <[EMAIL PROTECTED]> > Newsgroups: palm-dev-forum > To: Palm Developer Forum <[EMAIL PROTECTED]> > Sent: Thursday, March 28, 2002 10:10 AM > Subject: Re: Dynamic UI > > > > Thanks Anton, > > > > I want to ask one more question. Why the links are un

Re: Dynamic UI

2002-03-28 Thread Anton
]> Newsgroups: palm-dev-forum To: Palm Developer Forum <[EMAIL PROTECTED]> Sent: Thursday, March 28, 2002 10:10 AM Subject: Re: Dynamic UI > Thanks Anton, > > I want to ask one more question. Why the links are underlined and can be > push like a button? > > Thanks >

Re: Dynamic UI

2002-03-27 Thread Joseph Chan
Thanks Anton, I want to ask one more question. Why the links are underlined and can be push like a button? Thanks Joseph Chan "Anton" <[EMAIL PROTECTED]> ???:[EMAIL PROTECTED] > > 1.Write a text with WinDrawChars > 2. Save position of written text in a structure, for variables or > Rectangl

Re: Dynamic UI

2002-03-27 Thread dan mason
If you're going to use WinDrawChars, yeah, but if you want to use a frameless button, you need to define the font, I think? -d On 27 Mar 2002, Jake Donham wrote: > "dan" == dan mason <[EMAIL PROTECTED]> comments: > > dan> You have to define an underlined font. [...] > > Or you can use Win

Re: Dynamic UI

2002-03-27 Thread Jake Donham
"dan" == dan mason <[EMAIL PROTECTED]> comments: dan> You have to define an underlined font. [...] Or you can use WinSetUnderlineMode(). Jake -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Dynamic UI

2002-03-27 Thread dan mason
You have to define an underlined font. Why there isn't one included with the OS, I'll never know. Look up something like Pilot Font Editor, which will allow you to load a font resource, edit the characters, and save it, and then you can use FntDefineFont to load it. There's also a PRC floating

RE: Dynamic UI

2002-03-27 Thread Craig Austin
Developer Forum Subject: Re: Dynamic UI But how they write an underline to the link? "Anton" <[EMAIL PROTECTED]> ???:[EMAIL PROTECTED] > > 1.Write a text with WinDrawChars > 2. Save position of written text in a structure, for variables or > RectangleType . >

Re: Dynamic UI

2002-03-27 Thread Joseph Chan
But how they write an underline to the link? "Anton" <[EMAIL PROTECTED]> ???:[EMAIL PROTECTED] > > 1.Write a text with WinDrawChars > 2. Save position of written text in a structure, for variables or > RectangleType . > 3. Handle penDownEvent. Check out whether the pen is tapped in this > rec

Re: Dynamic UI

2002-03-27 Thread Anton
Subject: Re: Dynamic UI > If you don't want to roll your own, as Anton suggests, you can use a > frameless button, although I believe there's no way to set buttons to be > frameless without manually setting ControlType->attr->frame to noFrame. > Maybe there's a glue f

Re: Dynamic UI

2002-03-27 Thread dan mason
If you don't want to roll your own, as Anton suggests, you can use a frameless button, although I believe there's no way to set buttons to be frameless without manually setting ControlType->attr->frame to noFrame. Maybe there's a glue function that does it? I think this will give you the clo

Re: Dynamic UI

2002-03-27 Thread Anton
1.Write a text with WinDrawChars 2. Save position of written text in a structure, for variables or RectangleType . 3. Handle penDownEvent. Check out whether the pen is tapped in this rectangle. Very simple :) Anton - Original Message - From: Joseph Chan <[EMAIL PROTECTED]> Newsgroups: pa

Re: Dynamic UI

2001-11-17 Thread Steve Mann
>The problem I've run into is after cleaning up the >form and exiting the program when I run it a second time the system reboots. >Anyone have any ideas as to where to look for a problem. Why not just use the debugger to trace the second execution? Regards, Steve Mann -- For information on usi

Re: Dynamic UI and Visor Platinium

2001-04-11 Thread Ken Krugler
> I have a little problem and would like to hear your comments. When >executed during standard frmLoad event, the following code (the only one in >a new PalmOS project) causes crash on the Visor ROM and on an actual >Platinium, while working perfectly fine on all other tested roms, including >

RE: Dynamic UI and Visor Platinium

2001-04-10 Thread Steve Mann
>That is, call to FrmGetActiveForm() is not >necessary, because the function already returns the new form structure >address. What can I say? Duh? Regards, Steve Mann -- --- Creative Digital Publishing Inc. 1315 Palm Street, San Luis Obispo, CA 93401-3117

RE: Dynamic UI and Visor Platinium

2001-04-10 Thread Borislav Kolev
orum Subject: RE: Dynamic UI and Visor Platinium Nope...none of you is right, I believe. To start with, there is no difference between LstNewList((void**) frmP, 5010, 10, 40, 100, 40, stdFont, 2, 0); LstNewList((void**) frmP, 5011, 10, 40, 100, 40, stdFont, 2, 0); and fPP = (void **)&frmP

Re: Dynamic UI and Visor Platinium

2001-04-10 Thread John Marshall
Richard Burmeister <[EMAIL PROTECTED]> wrote: > I'm just guessing (because I'm too lazy to really look into it) but the Docs > say "the old formPP value is not necessarily valid after this function > returns. In subsequent calls, always use the new formPP value returned by > this function." Whil

RE: Dynamic UI and Visor Platinium

2001-04-10 Thread Borislav Kolev
addition, the test of both suggestions (for the sake of my pride) shows that it still crashes on that particular ROM. - bobby -Original Message- From: Steve Mann [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 10, 2001 3:50 PM To: Palm Developer Forum Subject: RE: Dynamic UI and Visor Pla

RE: Dynamic UI and Visor Platinium

2001-04-10 Thread Steve Mann
>If I understand this correctly, it means LstNewList isn't >going to work correctly when called twice unless you do something like: > > void ** fPP; > > fPP = (void **)&frmP; > LstNewList(fPP, 5010, 10, 40, 100, 40, stdFont, 2, 0); > LstNewList(fPP, 5011, 10, 40, 100, 40, stdFont, 2, 0);

RE: Dynamic UI and Visor Platinium

2001-04-10 Thread Richard Burmeister
> From: Bobby Kolev > I have a little problem and would like to hear your comments. When > executed during standard frmLoad event, the following code (the > only one in > a new PalmOS project) causes crash on the Visor ROM and on an actual > Platinium, while working perfectly fine on all other

Re: Dynamic UI

2001-02-24 Thread Mark Hamann
never you create a new control be sure and either use the new > >pointer > >> which you get back from that particular dynamic ui function (you probably > >> passed a form ptr by reference), otherwise call FrmGetActiveForm, if it > is > >> your active form that

Re: Dynamic UI

2001-02-24 Thread Mark Hamann
Oops, I did mean penUpEvent and penDownEvent. I am returning false, but isn't the form event handler the last one in the chain anyway? Or is the hit test done in FrmDispatchEvent instead of SysHandleEvent? At any rate I am returning false on the unhandled events. What else might cause the hit-

Re: Dynamic UI

2001-02-15 Thread Richard M. Hartman
a form ptr by reference), otherwise call FrmGetActiveForm, if it is >> your active form that you're working with. >> >> I hope this helps. I've seen some weird bugs when doing dynamic ui stuff >> just slightly wrong. >> >> Steve >> >>

RE: Dynamic UI

2001-02-15 Thread Steve Austin
ECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Su Sent: Wednesday, February 14, 2001 9:34 PM To: Palm Developer Forum Subject: RE: Dynamic UI Hello... I was trying my Hand on something like this I have a 'Draw' button. When pressed, the related action occurs and this button disappea

RE: Dynamic UI

2001-02-14 Thread Su
Hello... I was trying my Hand on something like this I have a 'Draw' button. When pressed, the related action occurs and this button disappears and an Erase button sprouts in similarly when this erase button is pressed same things happen and it's hidden and the Draw button come in. But

Re: Dynamic UI

2001-02-14 Thread Mark Hamann
; Steve > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Mark > Hamann > Sent: Wednesday, February 14, 2001 9:32 AM > To: Palm Developer Forum > Subject: Re: Dynamic UI > > > I'm still spinning my wheels. What I a

RE: Dynamic UI

2001-02-14 Thread Steve Austin
Of Mark Hamann Sent: Wednesday, February 14, 2001 9:32 AM To: Palm Developer Forum Subject: Re: Dynamic UI I'm still spinning my wheels. What I am doing is generating an entire form from scratch. I use FrmNewForm to make the form and CtlNewControl to put buttons on it. Then I use FrmGotoForm

RE: Dynamic UI

2001-02-14 Thread Steve Austin
I create buttons dynamicly in a program I'm writing, and it works ok. Make sure you give them an ID and then refer to this ID when trying to catch their ctlselect events. On a side note, does anyone know how to hide a dynamicly created bitmap in OS3.01 ? I found documentation saying that you ha

Re: Dynamic UI

2001-02-14 Thread Mark Hamann
I'm still spinning my wheels. What I am doing is generating an entire form from scratch. I use FrmNewForm to make the form and CtlNewControl to put buttons on it. Then I use FrmGotoForm to make it the active form. I get the frmOpenEvent and draw the form on the screen, but when I try to click

Re: Dynamic UI problem

2001-02-12 Thread Stephan Veigl
Hi Oscar > but the program still crash everytime when I run the "FrmNewGadge( )" > function, do you know why? are you sure, that frmP is a valid form pointer for the displayed form? btw: is there any special reason why you use NewPtr instead of frmP? I tried the following lines, and they worked

Re: Dynamic UI problem

2001-02-11 Thread Oscar
]> Sent: Monday, February 12, 2001 8:03 AM Subject: Re: Dynamic UI problem > Hi Stephen, > > Thanks for your help, but my program still doesn't work. I have tried to > make a simple new project by just adding a button on the main form and add > the following cod

Re: Dynamic UI problem

2001-02-11 Thread Oscar
PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Monday, February 12, 2001 7:04 AM Subject: Re: Dynamic UI problem > Hi Oscar > > > What should I set for the "id" in the following function? > > FormGadgetType *FrmNewGadget (FormType **form

Re: Dynamic UI problem

2001-02-11 Thread Stephan Veigl
Hi Oscar > What should I set for the "id" in the following function? > FormGadgetType *FrmNewGadget (FormType **formPP, UInt16 id, Coord x, Coord > y, Coord width, Coord height) the id is a unique object ID, just of the same type used in the PILRC resource- / headerfiles (don't know how it's in

Re: Dynamic UI

2000-07-27 Thread Steve Mann
>Can someone help me to sort out the problem . Happy to try, as long as I don't have to read your code. :-) I believe there have been threads in this group in the past covering this same problem. If I remember, you have to remove the objects in the reverse order you create them or bad things l