You can create buttons dynamicly:

CtlNewControl:

Purpose Create a new control object dynamically and install it in the
specified form.

Prototype:

ControlPtr CtlNewControl (VoidPtr *formPP,
const Word ID, const ControlStyleType style,
const CharPtr textP, const Word x, const Word y,
const Word width, const Word height,
const FontID font, Byte group, Boolean leftAnchor)

For the style parameter use:

buttonCtl

This is taken directly from the reference.pdf file from 3com.  The only
trouble is that there are no dynamic UI examples provided.

Good Luck

Steve Austin


-----Original Message-----
From: Eric Siu [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 01, 1999 9:09 PM
To: [EMAIL PROTECTED]
Subject: How to Dynamic Create buttons ?


        I need to create button dynamically, because the number of button
to be is different every time. anybody point me the way?


E r i c ���_

             Electrical and Electronic Engineering
       The  Hong Kong University of Science and Technology
                URL: http://home.ust.hk/~ee_slm

On Fri, 6 Aug 1999, Steve Austin wrote:

> I need to be able to have forms created by a user (probably through some
> sort of PC forms editing program).  Since the palm resources are linked
> during compile time, it seems like the only way to
> do this is to define a database containing the forms information, and then
> use dynamic UI calls to create the forms.  Is this the only way to go?
Are
> there any sorts of DLL type libraries I can use to store forms and
retreive
> them?  Thanks for the help.
>
>
> Steve Austin
>
>





Reply via email to