Discussion forum about PANORAMIC language

Mac, Windows & Android application development with PANORAMIC language
 
HomeFAQSearchRegisterMemberlistUsergroupsLog in
Latest topics
» Hello world.
by Mon Jun 19, 2017 1:37 am

» Biomorphes de PICKOVER
by Sun Jun 18, 2017 2:33 am

» In less than 10 lines of code
by Fri Jun 16, 2017 5:03 am

» Effect Dopler
by Fri Jun 16, 2017 3:29 am

» SuperEllipse
by Wed Jun 14, 2017 4:01 am

» Plants
by Wed Jun 14, 2017 3:38 am

» Mira's attractor
by Wed Jun 14, 2017 3:30 am

» Triangle of Sierpinski
by Wed Jun 14, 2017 3:22 am

» Esthétique polaire
by Wed Jun 14, 2017 3:16 am

» Butterfly effect : Lorenz equations
by Wed Jun 14, 2017 3:08 am

» Collision detection
by Tue Jun 13, 2017 5:09 am

» The Bees Laline Paull Epub Books
by Mon Oct 10, 2016 8:58 pm

» PANORAMIC for Mac OSX 10 is available
by Tue Aug 09, 2016 6:08 pm

» ide
by Sat Jul 16, 2016 12:27 am

» Can I change the program icon/logo in my application ?
by Thu Jul 07, 2016 3:32 am

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Share | 
 

 Creation of controls and number_objects

View previous topic View next topic Go down 
AuthorMessage
Fordi



Number of posts : 23
Registration date : 2010-07-12

PostSubject: Creation of controls and number_objects   Tue Jul 13, 2010 12:54 pm

Hello,

am I right, that number_objects always contains the number of already created objects like forms, alphas, edits, buttons and so on?
So, to create a new control I only have to count number_objects + 1 into a numeric variable and create the control with that variable. How could it be, that I get an error that the object is already defined, when I do that?

Let's say number_objects = 52. I have a variable f.e. alphanumber where I store number_objects + 1. Then I create the new alpha with

alpha alphanumber

This is, where I get the error. Any help is appreciated. Thank you.

Kind regards, Fordi
Back to top Go down
View user profile
Jack
Admin
avatar

Number of posts : 98
Registration date : 2007-07-01

PostSubject: Re: Creation of controls and number_objects   Tue Jul 13, 2010 5:29 pm

Quote :
So, to create a new control I only have to count number_objects + 1 into a numeric variable and create the control with that variable.
No.
You dont need a variable for the number.
You dont need to count the objects to assign a new number.
See the valid example:
Code:
button 12:left 12,100
edit 4:top 4,100

Quote :
I get an error that the object is already defined
You have this error message when you create an object with a number already used:
Code:
button 12
edit 12: rem here you have an error
Back to top Go down
View user profile http://panoramic.top-forum.net
Fordi



Number of posts : 23
Registration date : 2010-07-12

PostSubject: Re: Creation of controls and number_objects   Tue Jul 13, 2010 5:56 pm

Hello Jack,

thank you for your reply.
I understand that I get the error, because I try to create an object with a number already used. And you say that I don't need to count the numbers. I understand so far.
But when I build a programm with some forms and several controls on each form ( f.e. 40 edits in one form ), how can I prevent loosing overview? I created the edits in a FOR/NEXT loop. Is that my mistake? Should I better create each manually? That's a lot to write. What would be the best way to create controls without loosing overwie, when I have so much controls in my form?
Kind regards, Fordi
Back to top Go down
View user profile
Fordi



Number of posts : 23
Registration date : 2010-07-12

PostSubject: Re: Creation of controls and number_objects   Tue Jul 13, 2010 5:59 pm

I've forgotten something.

Code:
button 12:left 12,100
edit 4:top 4,100

How can that work? Does that mean that the number is not global for all objects, but for each type of object?
Kind regards, Fordi
Back to top Go down
View user profile
Jack
Admin
avatar

Number of posts : 98
Registration date : 2007-07-01

PostSubject: Re: Creation of controls and number_objects   Thu Jul 15, 2010 9:00 am

To create an object (button, edit, memo, list, combo, etc etc,...), you have just to give a new number that is a number which is not already used. That 's all.

I begin to write my source.
I want to create a BUTTON.
Number 12 has never been used,
Code:
button 12
I need to create an EDIT.
Number 4 has never been used, so I use this number:
Code:
edit 4

In my example, left 12,100 and top 4,100 are just to see the 2 objects.
Otherwise they are superimposed because an object is created at (0,0): the upper left corner of the FORM.
Back to top Go down
View user profile http://panoramic.top-forum.net
Sponsored content




PostSubject: Re: Creation of controls and number_objects   

Back to top Go down
 
Creation of controls and number_objects
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Selenium RC & Dojo controls.
» [ANSWERED] Media Creation Tool
» Silenium IDE code for selecting and ajax autopopulate dropdown item
» Temporary FireFox Profile using Selenium WebDriver
» Unable to select textarea values using webdriver (controls are develped using BMC remedy software)

Permissions in this forum:You cannot reply to topics in this forum
Discussion forum about PANORAMIC language :: Panoramic for Windows :: Help?-
Jump to: