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
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
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/
> 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
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]> ?
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...
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
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
> 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
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
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 worlds largest e-mail service with MSN Hotmail.
http://w
>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
--- 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
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
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
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
]>
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
>
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
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
"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/
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
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 .
>
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
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
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
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
>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
> 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
>
>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
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
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
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
>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);
> 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
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
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-
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
>>
>>
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
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
; 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
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
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
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
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
]>
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
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
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
>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
48 matches
Mail list logo