Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

duplicate a form

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-17-2007, 09:29 AM
Newbie
 
Join Date: May 2007
Posts: 6
Default duplicate a form

hello

how to duplicate a form (and all controls on it) ?
Reply With Quote
  #2 (permalink)  
Old 06-17-2007, 09:53 AM
RandomCoder's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire, UK
Posts: 623
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I'm presuming that this is a Form you've designed using the GUI and now want to recreate another Form exactly the same but without all the effort of manually setting the controls again?
You could open the B4PPC file using notepad or other text editor and copy then paste all the sections of code relating to the Form you want to recreate.
Bear in mind that you will need to change the Form and Control names to be unique.

Regards,
RandomCoder
__________________
"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
  #3 (permalink)  
Old 06-17-2007, 12:28 PM
Newbie
 
Join Date: May 2007
Posts: 6
Default

thank you RandomCoder

Ok it's good.


Regards
Reply With Quote
  #4 (permalink)  
Old 06-18-2007, 08:39 PM
Senior Member
 
Join Date: Apr 2007
Location: Canari Islan
Posts: 103
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Ok Randomcoder.

it's very, very good
Reply With Quote
  #5 (permalink)  
Old 11-17-2007, 01:10 PM
Knows the basics
 
Join Date: May 2007
Posts: 64
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by RandomCoder View Post
I'm presuming that this is a Form you've designed using the GUI and now want to recreate another Form exactly the same but without all the effort of manually setting the controls again?
You could open the B4PPC file using notepad or other text editor and copy then paste all the sections of code relating to the Form you want to recreate.
Bear in mind that you will need to change the Form and Control names to be unique.

Regards,
RandomCoder
I have tried this strategy but I get now an error when I try to open the modified Form in the designer. It tells me: (In French) "The reference to the object is not defined to an instance of the object"

I have just duplicated a panel and its contents and changed all names in order to assure that they are unique. But I see a lot of blank lines and numbers in the SBP file. I do not know if I must change some of these elements to signal to the editor that I have added new lines...

I will have to do it in a less lazy way, it seems... :-(

Regards,
Murat
__________________
PC: Laptop CoreDUo, Windows XP SP2 French
PPC: TyTN, WM5 French -> iPAQ 214 WM6 French (to diverge or not to diverge,...)
Reply With Quote
  #6 (permalink)  
Old 11-19-2007, 06:27 PM
RandomCoder's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire, UK
Posts: 623
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I see this behaviour too.
A possible work-a-round is to create the Forms using the IDE but then add the controls using a txt file that can be copied from the original .sbp
But remember that all controls must have their own unique name for this to work.

Regards,
RandomCoder
__________________
"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplicate form and Copy control bidibulle Basic4ppc Wishlist 3 11-09-2007 06:39 PM


All times are GMT. The time now is 04:18 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0