Thanks, it works.
"Sadanandam O." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] frmP = FrmGetActiveForm(); CtlNewControl((void **)&frmP, 5000, buttonCtl, "Sadanand", 10, 2, 60, 34, boldFont, NULL, true); FrmDrawForm(frmP); This is what I used. Make sure u r calling FrmDrawForm() after CtlNewControl(). Regards Sadanand. -----Original Message----- From: Archivator [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 3:16 PM To: Palm Developer Forum Subject: Re: Dinamically button creation I found this on Palm Api reference. Could you drop me listing of your program. I'm trying to make this in about 1 week. Waiting for your reply. Thanks. Value Descriptions buttonCtl Button. Buttons display a text label in a box. The ButtonFrameType specifies the type of box. pushButtonCtl Push button. Selecting a push button inverts its display so that it appears highlighted. checkboxCtl Check box. Check boxes display a setting of either on (checked) or off (unchecked) popupTriggerCtl Popup trigger. Popup triggers display a graphic element followed by a text label. They are used to display popup lists. selectorTriggerCtl Selector trigger. Selector triggers display a text label surrounded by a gray rectangular frame. The control expands or contracts to the width of the new label. repeatingButtonCtl Repeating button. Repeating buttons look like buttons; however, a repeating button is repeatedly selected if the user holds the pen on it. sliderCtl Slider. Sliders display two bitmaps: one representing the current value (the thumb), and another representing the scale of available values. The user can slide the thumb to the left or the right to change the value. feedbackSliderCtl Feedback slider. A feedback slider looks like a slider; however, a feedback slider sends events each time the thumb moves while the pen is still down. A regular slider sends an event only when the user releases the pen. "Sadanandam O." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I see a check box control created on the form with the mentioned code. I use Codewarrior 8. what's the keyword to create button control, I tried to use various keywords , nothing worked Regards, Sadanand -----Original Message----- From: Archivator [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 2:28 PM To: Palm Developer Forum Subject: Re: Dinamically button creation Thanks for your answer, but still the same picture on my screen :) there is no any buttons, and also no error's:). Here is necessary just this functinon? Nothing else ? I use Codewarrior 8. Please help as possible :) Thanks. "Hangzm" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > CtlNewControl((void **)&frmPtr, > 5000, > checkboxCtl, > "fdfd", > 1, > 2, > 40, > 34, > boldFont, > NULL, > true); > > "Archivator" <[EMAIL PROTECTED]> д����Ϣ����:[EMAIL PROTECTED] > > > > HI, > > > > I'm codewarrior beginner :). I have a small problem. How can I make > buttons > > which are dynamically created and erased with the same ResourceID. > > > > Programmed as below: > > > > CtlNewControl ((void **)&frmP, 1323, checkboxCtl, "Hello" , 1, 1, 15, 11, > 1, > > 1, true); > > > > But unfortunately it's doesn't work:(. Maby you could help me with tis > stuff > > :). > > There is no error's, but there are no buttons either :) nothing happens. > > > > Please do help.Thanks. > > > > > > > > > > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
