Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


The meaning of the header in the SBP file


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-17-2007, 01:56 PM
Knows the basics
 
Join Date: May 2007
Posts: 64
Awards Showcase
Beta Tester 
Total Awards: 1
Default The meaning of the header in the SBP file

Hi,
I am trying to duplicate some controls in a lazy way, by copy and paste (and name change) in the header of the sbp file. I remember that Erel has once explained the meaning of different numbers in this header but I have not been able to find this old post (it was maybe in the old forums). Could someone remind me this point or orient me towards this old post?

Thanks in advance!

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
  #2 (permalink)  
Old 11-17-2007, 02:07 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

Code:
version
5.80
1 - (Number of forms - 1)
Form1
Form2
2 - You can ignore these numbers
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0 - Until here.
238 - Screen width
268 - Screen height

0 - Libraries and objects information
0
0 - Until here (it can be longer).
Sub designer
addform(Form1,"Form1","",220,220,220)@
addbutton(form1,Button2,50,120,100,45,"Button2",212,208,200,0,0,0,True,True,9)@
addbutton(form1,Button1,30,40,100,45,"Button1",212,208,200,0,0,0,True,True,9)@
addform(Form2,"Form2","",220,220,220)@
End Sub
@EndOfDesignText@
*This is version 5.80 definition. It can change in other version.

Make sure that there are no duplicate names.
Make sure to save the file as UTF-8. With Notepad - Save As - Encoding - UTF8.
Forms / Panels must be declared before any child control.
Reply With Quote
  #3 (permalink)  
Old 11-17-2007, 02:19 PM
Knows the basics
 
Join Date: May 2007
Posts: 64
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Thanks a lot! I was looking for this information. I have not yet upgraded to 5.8 (I am with 5.5) but it will be done before the deadline I have received from you.

So I do not have to add anything else than the new controls. I have double checked the name of the controls. I will now check the UTF8 trick.

Merci Erel.

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
  #4 (permalink)  
Old 11-17-2007, 03:46 PM
Knows the basics
 
Join Date: May 2007
Posts: 64
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Strange enough, in version 5.5 when I manually add a new panel with a unique name, I get problems once I add controls to this panel. When I add controls in the designer, close the designer window and try to reopen it, I get error messages about indexes and instances that do not correspond to object. So I have stopped playing with this and I have done everything using the designer view.

Best 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
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Header structure Erel Beta Versions 3 08-27-2008 08:37 PM
Modifying the table column header mozaharul Questions & Help Needed 2 05-12-2008 08:38 AM
CSV file generates strange start in file sunnyboyj Questions & Help Needed 9 12-21-2007 09:38 PM
ChangeParent and Table Header emaster Questions & Help Needed 2 12-08-2007 03:38 PM


All times are GMT. The time now is 10:19 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0