You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

theuserbl

Intermediate

  • "theuserbl" started this thread

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

1

Friday, April 2nd 2010, 4:59pm

JabacoIDE internals

Hi!

You know about the Windows clipboard ?

If you have copy a text in Notepad, you can not paste it direct in Paint.
And if you have copy a part of a graphic in Paint, you can not paste it in Notepad.
Then there are other programs, like 3D-creations, where you can copy a 3D-model, but not paste it in Paint and so on.


But now have a look at Jabaco.


Creating a new SDI Application.
Now go to an text editor and write a little text. Copy it and input in in the graphical part (GUI designer) of Jabaco by either pressing the key combination [Ctrl]+[v] , going over the menu "Edit"->"Paste" or clicking in the graphical field with the right mouse button and clicking on "Paste".

Umpf. There opens a window, there stand "Invalid format!".


Ok. Now going the other way around: Drawing a button in the drawing area. Letting it selected (thats the case, if eight black points are around it). Now copying it with either the key combination [Ctrl]+[c] , going over the menu "Edit"->"Copy" or clicking in the graphical field with the right mouse button and clinking on "Copy".
Now you can paste a new button in it. Try it out. It works.
Now paste in Notepad or an other texteditor.

Oh, it's an xml-text. It is like the Jabaco source-files (*.jsrc), but only a part of it encapsulated in a "<Clipboard>"-tag.


Now lets try the other way around. Copy the following XML-code:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<Clipboard>
  <Object Type="VB/Frame">
    <Param Name="Index" Value=""/>
    <Param Name="BackStyle" Value="vbTransparent"/>
    <Param Name="Caption" Value=""/>
    <Param Name="BorderColor" Value="-2147483642"/>
    <Param Name="BorderStyle" Value="fmBorderStyleSingle"/>
    <Param Name="SpecialEffect" Value="fmSpecialEffectSunken"/>
    <Param Name="FontName" Value="Arial"/>
    <Param Name="FontBold" Value="False"/>
    <Param Name="FontItalic" Value="False"/>
    <Param Name="FontSize" Value="9"/>
    <Param Name="BackColor" Value="-2147483633"/>
    <Param Name="ForeColor" Value="-2147483630"/>
    <Param Name="Width" Value="217"/>
    <Param Name="Height" Value="201"/>
    <Param Name="Left" Value="176"/>
    <Param Name="Top" Value="392"/>
    <Param Name="ToolTip" Value=""/>
    <Param Name="Enabled" Value="True"/>
    <Param Name="Visible" Value="True"/>
    <Param Name="Tag" Value=""/>
    <Param Name="MousePointer" Value="vbDefault"/>
    <Param Name="MouseIcon" Value="Nothing"/>
    <Param Name="CanGetFocus" Value="True"/>
    <Param Name="(Name)" Value="Frame9"/>
    <Object Type="VB/Frame">
      <Param Name="Index" Value=""/>
      <Param Name="BackStyle" Value="vbTransparent"/>
      <Param Name="Caption" Value="IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII"/>
      <Param Name="BorderColor" Value="-2147483642"/>
      <Param Name="BorderStyle" Value="fmBorderStyleSingle"/>
      <Param Name="SpecialEffect" Value="fmSpecialEffectRaised"/>
      <Param Name="FontName" Value="Arial"/>
      <Param Name="FontBold" Value="False"/>
      <Param Name="FontItalic" Value="False"/>
      <Param Name="FontSize" Value="9"/>
      <Param Name="BackColor" Value="-2147483633"/>
      <Param Name="ForeColor" Value="-2147483630"/>
      <Param Name="Width" Value="185"/>
      <Param Name="Height" Value="169"/>
      <Param Name="Left" Value="16"/>
      <Param Name="Top" Value="16"/>
      <Param Name="ToolTip" Value=""/>
      <Param Name="Enabled" Value="True"/>
      <Param Name="Visible" Value="True"/>
      <Param Name="Tag" Value=""/>
      <Param Name="MousePointer" Value="vbDefault"/>
      <Param Name="MouseIcon" Value="Nothing"/>
      <Param Name="CanGetFocus" Value="True"/>
      <Param Name="(Name)" Value="Frame8"/>
      <Object Type="VB/Shape">
        <Param Name="Index" Value=""/>
        <Param Name="AntiAliasing" Value="False"/>
        <Param Name="DrawMode" Value="vbDefaultDraw"/>
        <Param Name="Shape" Value="vbShapeCircle"/>
        <Param Name="BackColor" Value="-2147483643"/>
        <Param Name="BorderColor" Value="-2147483642"/>
        <Param Name="FillColor" Value="0"/>
        <Param Name="BackStyle" Value="vbTransparent"/>
        <Param Name="BorderWidth" Value="1"/>
        <Param Name="Width" Value="25"/>
        <Param Name="Height" Value="25"/>
        <Param Name="Left" Value="40"/>
        <Param Name="Top" Value="24"/>
        <Param Name="Visible" Value="True"/>
        <Param Name="Tag" Value=""/>
        <Param Name="(Name)" Value="Shape8"/>
      </Object>
      <Object Type="VB/Shape">
        <Param Name="Index" Value=""/>
        <Param Name="AntiAliasing" Value="False"/>
        <Param Name="DrawMode" Value="vbDefaultDraw"/>
        <Param Name="Shape" Value="vbShapeCircle"/>
        <Param Name="BackColor" Value="-2147483643"/>
        <Param Name="BorderColor" Value="-2147483642"/>
        <Param Name="FillColor" Value="0"/>
        <Param Name="BackStyle" Value="vbTransparent"/>
        <Param Name="BorderWidth" Value="1"/>
        <Param Name="Width" Value="25"/>
        <Param Name="Height" Value="25"/>
        <Param Name="Left" Value="112"/>
        <Param Name="Top" Value="24"/>
        <Param Name="Visible" Value="True"/>
        <Param Name="Tag" Value=""/>
        <Param Name="(Name)" Value="Shape9"/>
      </Object>
      <Object Type="VB/Shape">
        <Param Name="Index" Value=""/>
        <Param Name="AntiAliasing" Value="False"/>
        <Param Name="DrawMode" Value="vbDefaultDraw"/>
        <Param Name="Shape" Value="vbShapeOval"/>
        <Param Name="BackColor" Value="-2147483643"/>
        <Param Name="BorderColor" Value="-2147483642"/>
        <Param Name="FillColor" Value="0"/>
        <Param Name="BackStyle" Value="vbTransparent"/>
        <Param Name="BorderWidth" Value="1"/>
        <Param Name="Width" Value="17"/>
        <Param Name="Height" Value="57"/>
        <Param Name="Left" Value="80"/>
        <Param Name="Top" Value="32"/>
        <Param Name="Visible" Value="True"/>
        <Param Name="Tag" Value=""/>
        <Param Name="(Name)" Value="Shape10"/>
      </Object>
      <Object Type="VB/Shape">
        <Param Name="Index" Value=""/>
        <Param Name="AntiAliasing" Value="False"/>
        <Param Name="DrawMode" Value="vbDefaultDraw"/>
        <Param Name="Shape" Value="vbShapeRectangle"/>
        <Param Name="BackColor" Value="-2147483643"/>
        <Param Name="BorderColor" Value="-2147483642"/>
        <Param Name="FillColor" Value="0"/>
        <Param Name="BackStyle" Value="vbTransparent"/>
        <Param Name="BorderWidth" Value="1"/>
        <Param Name="Width" Value="97"/>
        <Param Name="Height" Value="25"/>
        <Param Name="Left" Value="40"/>
        <Param Name="Top" Value="96"/>
        <Param Name="Visible" Value="True"/>
        <Param Name="Tag" Value=""/>
        <Param Name="(Name)" Value="Shape11"/>
      </Object>
      <Object Type="VB/Slider">
        <Param Name="Index" Value=""/>
        <Param Name="BackStyle" Value="vbTransparent"/>
        <Param Name="Orientation" Value="ccOrientationHorizontal"/>
        <Param Name="TickStyle" Value="sldBottomRight"/>
        <Param Name="Min" Value="0"/>
        <Param Name="Max" Value="10"/>
        <Param Name="Value" Value="0"/>
        <Param Name="SnapToTicks" Value="True"/>
        <Param Name="TickFrequency" Value="1"/>
        <Param Name="PaintLabels" Value="False"/>
        <Param Name="FontName" Value="Arial"/>
        <Param Name="FontBold" Value="False"/>
        <Param Name="FontItalic" Value="False"/>
        <Param Name="FontSize" Value="9"/>
        <Param Name="BackColor" Value="-2147483633"/>
        <Param Name="ForeColor" Value="-2147483630"/>
        <Param Name="Width" Value="169"/>
        <Param Name="Height" Value="33"/>
        <Param Name="Left" Value="8"/>
        <Param Name="Top" Value="128"/>
        <Param Name="ToolTip" Value=""/>
        <Param Name="Enabled" Value="True"/>
        <Param Name="Visible" Value="True"/>
        <Param Name="Tag" Value=""/>
        <Param Name="MousePointer" Value="vbDefault"/>
        <Param Name="MouseIcon" Value="Nothing"/>
        <Param Name="CanGetFocus" Value="True"/>
        <Param Name="(Name)" Value="Slider3"/>
      </Object>
    </Object>
  </Object>
</Clipboard>

Copying all of it. Not more not less.
And now paste it in the graphical part of Jabaco.

You have now integrated a GUI-part created by me.


Greatings
theuserbl

OlimilO

Intermediate

  • "OlimilO" is male

Posts: 277

Date of registration: Jan 18th 2009

Location: Germany

Occupation: software engineer

  • Send private message

2

Wednesday, April 7th 2010, 6:37pm

hihi *funny*

it's "xml serialization" ;)

regards

OlimilO

Rate this thread
WoltLab Burning Board