The meaning of the header in the SBP file

Discussion in 'Questions (Windows Mobile)' started by yildi, Nov 17, 2007.

  1. yildi

    yildi Member Licensed User

    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
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    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.
     
  3. yildi

    yildi Member Licensed User

    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
     
  4. yildi

    yildi Member Licensed User

    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
     
Loading...