I am drawing the bitmaps by WinDrawBitmap().I have icons in my resource file
which I want to draw.I get a pointer to a icon from the resource file, cast
that pointer to a BitmapPtr and use WinDrawBitmap() to draw the Icon.

I have a table with three columns and three rows and I draw one Icon in each
cell of the table, thus showing nine icons at a time. Now if I want to
implement Scrolling functionality to show more than nine icons how do I do it?
Ofcourse the icons i want to show are there in my resource file.

Small piece of source code would be fun.

Thanks,

Hitesh. 

Nick Hammond <[EMAIL PROTECTED]> wrote:
One basic approach: 

o   Use Bitmaps (drawn via WinDrawBitmap()) for the Icons.
o   Detect Pen events, looking for a PenDownEvent and a 
    following PenUpEvent inside the bitmap boundary to 
    indication that the Icon has been selected and launch 
    your function.
o   Use WinInvertRectangle() to provide feedback when the 
    PenDownEvent is detected -- restore on the PenUpEvent 
    and also if a PenMoveEvent indicates that the pen was 
    moved off the bitmap before the pen was lifted.
o   Scroll by clearing and redrawing the form with the 
    bitmap positions recalculated.

Regards, Nick


-----Original Message-----
From: Hitesh Patel [mailto:[EMAIL PROTECTED]]
Sent: Friday, 21 January 2000 12:30
To: [EMAIL PROTECTED]
Subject: Re: [showing Icons in my application]


Please help me some one. I placed the question below yesterday but i
recieved
no reply. Is it that no one has a solution to my problem or have i missed on
something.

Plese find a solution for me .

Thanks,

Hitesh.

Hitesh Patel <[EMAIL PROTECTED]> wrote:
Hi,

I require to show icons in my application like the application icons as we
see
when we start the palm device.When we click on those icons it launches a
specific application.I want to implement the same functionality.(I believe
that the application icons are arranged in a table)

How do I go about this?

I also require to  scroll the icons to show other icons in the same way as
we
scroll application icons on the main screen of the palm device.How do i
implement the scrolling function?

I would be very glad if someone could help me solve this.A bit of source
code
would be most welcome.

Thanks,

Hitesh


____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1

Reply via email to