Hitesh,
I have seen it solved this way for those that didn't have access to the debug ROM.
Just turn off the "Has Scroll Bar" option in the
edit field and replace it with a single, stand-alone scroll bar next to the edit
field. You then manually capture the scroll bar
events and manually set the offset of the edit field based on the state of the scroll
bar.
Also, if you are doing a view only field and feeling really ambitious, you can get rid
of the edit field all together and draw the
text yourself. It is a bit of reinventing the wheel but you will have much more
control of formatting and presentation of the text
considering the use you have in mind.
Steve
Hitesh Patel wrote:
> Hi,
>
> I placed this problem a couple of days ago but did'nt
> recieve any reply. Is it that no one has faced such a
> problem. Some oneplease help me out. The problem is as
> below.
>
> I am using a field in my form which is noneditable. I
> am showing the content in the field which is being
> pepared at runtime using the StrCat and StrCopy
> functions. The final content which I prepare is
> prepared in a handle allocated 800 bytes by using the
> function MemHandleNew(800). Now I set this handle to
> the field. The problem is that when I scroll the field
> using the hardware buttons that is when keyDownEvent
> is fired it works perfectly fine but when I scroll
> with the scrollbar that is when sclRepeatEvent is
> fired I get an error after I scroll after two or three
> times. The error is as follows :
>
> "MemoryMgrNew.c, Line4128, Invalid handle"
>
> I don't know where I am wrong because I don't get this
> error if I scrool using the hardware buttons. Please
> Help!
>
> Thanking you in anticipation.
>
> Hitesh.
>
> __________________________________________________
> Do You Yahoo!?
> Kick off your party with Yahoo! Invites.
> http://invites.yahoo.com/
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please see
>http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/