aldweb

Close I. aldweb

Close II. PC Freeware

Close III. Palm Freeware

Close IV. Palm Shareware

Close V. iziBasic Palm

Close VI. Palm Knowledge

Close VII. Pocket Computer

Close VIII. miniPortail

Special !



Mobile version of
the aldweb Site

m.aldweb.com


Neither French, nor English?

Try one of these flags then:
[de] [es] [it] [pt]
Search




Weather / Spam / www

Lyon Weather


aldweb against spam


Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
298 Subscribers
Family's web sites

Webmaster - Infos
Friends News
Visits

   visitors

   visitors online

Poll
What do you think of the new design of the aldweb Site?
 
Great !
Beautiful
Average
So ugly...
Results
Post an answer

Thanks for taking the time to write this message.

Your user name :

Your e-mail :

Hide your e-mail address to visitors:      
Note: the e-mail address is protected against SPAM.

Subscribe to this thread :      

You are answering to gmigueis who wrote:


iziBasic is indeed a great tool! Cheers aldweb!
You can have as many forms as you wish! I'm building iziForms, a tool to create forms by placing controls, etc. and I am myself experimenting with the various ways of "multiforming"... I'll post news if I get to any conclusion! Meanwhile you can try this methods:

1) You can create all the controls for your forms (every one with it's own ID, of course) and use subroutines to show/hide controls with the SHOW/HIDE instructions:

BEGIN
GOSUB CreateControls
REPEAT
A=WAITEVENT
' here one could use a variable
' to keep track of what form is
' active... Perhaps this will
' avoid some errors
GOSUB Form1Events
GOSUB Form2Events
UNTIL A=-1
END

CreateControls:
' controls for form 1
BUTTON #1,"GoToFormTwo",100,100,50,12
HIDE #1
' controls for form 2
BUTTON #2,"GoToFormOne",10,10,50,12
HIDE #2
RETURN

ShowForm1:
' now you could use smarter FOR...NEXT ' loops and use just one subroutine...
SHOW #1
RETURN

HideForm1:
HIDE #1
RETURN

Form1Events:
IF A=1 THEN
GOSUB HideForm1
GOSUB ShowForm2
ENDIF
RETURN

ShowForm2:
SHOW #2
RETURN

HideForm2:
HIDE #2
RETURN

Form2Events:
IF A=2 THEN
GOSUB HideForm2
GOSUB ShowForm1
ENDIF
RETURN


2) Other method is to use the DESTROY instruction like this:

Form1Start:
BUTTON #1,......
RETURN

Form1End:
DESTROY #1
RETURN

This way you can re-use the same control IDs, but I've had some problems with this - my code was full of garbage anyway :)

3) With the DESTROY method you can either keep track of what form is active in a variable if you're re-using control IDs or you can have separate Event Loops for each form:

BEGIN
(...)
GOSUB Form1Start
END

Form1Start:
BUTTON #1,......
REPEAT
A=WAITEVENT
IF A=1 THEN
GOSUB Form1End
GOSUB Form2Start
ENDIF
UNTIL A=-1
' save preferences and end
GOSUB SavePreferences ' not shown here
END
RETURN

Form1End:
DESTROY #1
RETURN

Form2Start:
BUTTON #1,......
REPEAT
A=WAITEVENT
IF A=1 THEN
GOSUB Form2End
GOSUB Form1Start
ENDIF
UNTIL A=-1
' save preferences and end
' as the user may want to get
' out quickly
GOSUB SavePreferences
END
RETURN

This is written without testing, though! I'll post a "robust" multi-form framework as soon as I figure out what is the best way to do it, but I think this shows the idea!
Hope it helps!


Help :

Code Syntax :

  • <color=CodeHexadecimal></color> enables text colouring.
    Note : Instead of the hexadecimal code (#??????), you can specify the name of the colour(red, yellow, orange, green, blue, etc...). For extra info...
  • <bgcolor=CodeHexadecimal></bgcolor> enables the colored highlighting of a text.
    Note : Instead of the hexadecimal code (#??????), you can specify the name of the colour(red, yellow, orange, green, blue, etc...). For extra info...
  • <b></b> enables the emboldening of a text.
  • <i></i> enables the italicising of a text.
  • <u></u> enables the underlining of a text.
  • <cite></cite> enables quotation inserting.
    Note : You can specify the name of the authors by typing <cite=Author>
  • <code></code> enables code inserting.
    Note : You can specify the language by typing <code=LanguageName>
  • <left></left> enables left align.
  • <center></center> enables center align.
  • <right></right> enables right align.
  • <link></link> enables link inserting.
    Note : You can specify the link URL by typing <link=URL>text</link>. If you do not specify the link URL, the URL will be the one between the two tags.<link>URL</link>
  • <img=SmileyName> enables smiley insertion.
    Note : The names of available basic smileys are : cool, wink, biggrin, smile, frown, eek, mad, confused, rolleyes, tongue, cry. For extra info...

Access keys (under Windows) :

  • Key SHIFT + arrow (right or left) enables text selection
  • Key ALT + 2 enables toolbar selection
  • Key ALT + 3 enables editing zone selection
  • Key ALT + 4 displays Help
  • Key ALT + 5 hides Help
  • Key TAB enables going from one selection to the next
  • Key SHIFT + TAB enables going from one selection to the previous
  • Key ALT + arrow (towards bottom or top) enables folding out of the selected menu
  • Key ALT + arrow (towards bottom or top) enables the folding up of a spread out menu
  • Key arrow (towards bottom or top) enables the browsing through a spread out menu
  • Key ALT + s enables form sending

   |     |  Bold  Italic  Underline  Insert a quotation    Align Left  Center justify  Align Right  Insert a link  Insert Smiley (popup)  Preview (popup)  Display Help   
smiley cool  smiley wink  smiley biggrin  smiley smile  smiley frown  smiley eek  smiley mad  smiley confused  smiley rolleyes  smiley tongue  smiley cry 
Captcha reload
Copy the text:


 
 
^ Top ^