Code: Select all
For c = #offset To ObjNumber * #offset Step #offset
AddGadgetItem(#Panel_0, -1, TBK(c/#offset)\TBKObjekt + " ID Number " + Str(TBK(c/#offset)\TBKObjektID))
TextGadget(#Gadget + c, 8, 13, 50, 15, "Position")
SetGadgetFont(#Gadget + c, FontID6)
TextGadget(#Gadget+1 + c, 68, 13, 10, 15, "X")
SetGadgetFont(#Gadget+1 + c, FontID6)
StringGadget(#PosX_ + c/#offset, 83, 13, 65, 20, "")
SetGadgetFont(#PosX_ + c/#offset, FontID4)
SetGadgetText(#PosX_ + c/#offset,Str(TBK(c/#offset)\XPos))
TextGadget(#Gadget+2 + c, 158, 13, 15, 15, "Y")
SetGadgetFont(#Gadget+2 + c, FontID6)
StringGadget(#PosY_ + c/#offset, 178, 13, 65, 20, "")
SetGadgetFont(#PosY_ + c/#offset, FontID4)
SetGadgetText(#PosY_ + c/#offset,Str(TBK(c/#offset)\YPos))
TextGadget(#Gadget+3 + c, 263, 13, 35, 20, "Size")
SetGadgetFont(#Gadget+3 + c, FontID6)
TextGadget(#Gadget+4 + c, 303, 13, 40, 15, "Width")
SetGadgetFont(#Gadget+4 + c, FontID6)
StringGadget(#Breit_ + c/#offset, 348, 13, 45, 20, "")
SetGadgetFont(#Breit_ + c/#offset, FontID4)
SetGadgetText(#Breit_ + c/#offset,Str(TBK(c/#offset)\Breit))
TextGadget(#Gadget+5 + c, 398, 13, 40, 15, "Height")
SetGadgetFont(#Gadget+5 + c, FontID6)
StringGadget(#Hohe_ + c/#offset, 453, 13, 45, 20, "")
SetGadgetFont(#Hohe_ + c/#offset, FontID4)
SetGadgetText(#Hohe_ + c/#offset,Str(TBK(c/#offset)\Hohe))
TextGadget(#Gadget+6 + c, 8, 38, 35, 20, "Font")
SetGadgetFont(#Gadget+6 + c, FontID6)
TextGadget(#Gadget+7 + c, 58, 38, 35, 15, "Name")
SetGadgetFont(#Gadget+7 + c, FontID6)
TextGadget(#Gadget+8 + c, 213, 38, 30, 15, "Size")
SetGadgetFont(#Gadget+8 + c, FontID6)
TextGadget(#Gadget+9 + c, 308, 38, 30, 15, "Style")
SetGadgetFont(#Gadget+9 + c, FontID6)
StringGadget(#SchriftArt_ + c/#offset, 98, 38, 105, 20, "")
SetGadgetFont(#SchriftArt_ + c/#offset, FontID4)
SetGadgetText(#SchriftArt_ + c/#offset,TBK(c/#offset)\ScriftArt)
StringGadget(#SchriftGross_ + c/#offset, 248, 38, 50, 20, "")
SetGadgetFont(#SchriftGross_ + c/#offset, FontID4)
SetGadgetText(#SchriftGross_ + c/#offset,Str(TBK(c/#offset)\SchriftGross))
StringGadget(#SchriftStil_ + c/#offset, 353, 38, 85, 20, "")
SetGadgetFont(#SchriftStil_ + c/#offset, FontID4)
SetGadgetText(#SchriftStil_ + c/#offset,TBK(c/#offset)\SchriftStil)
TextGadget(#Gadget+10 + c, 153, 63, 40, 15, "Stroke")
SetGadgetFont(#Gadget+10 + c, FontID6)
StringGadget(#SchriftFarbe_ + c/#offset, 198, 63, 70, 20, "")
SetGadgetFont(#SchriftFarbe_ + c/#offset, FontID4)
SetGadgetText(#SchriftFarbe_ + c/#offset,TBK(c/#offset)\TextColor)
TextGadget(#Gadget+11 + c, 8, 63, 40, 15, "Color")
SetGadgetFont(#Gadget+11 + c, FontID6)
StringGadget(#Farbe_ + c/#offset, 78, 63, 65, 20, "")
SetGadgetFont(#Farbe_ + c/#offset, FontID4)
SetGadgetText(#Farbe_ + c/#offset,TBK(c/#offset)\FillColor)
TextGadget(#Gadget+12 + c, 58, 63, 20, 15, "Fill")
SetGadgetFont(#Gadget+12 + c, FontID6)
TextGadget(#Gadget+13 + c, 278, 63, 80, 15, "Border Style")
SetGadgetFont(#Gadget+13 + c, FontID6)
StringGadget(#RandStil_ + c/#offset, 363, 63, 80, 20, "")
SetGadgetFont(#RandStil_ + c/#offset, FontID4)
SetGadgetText(#RandStil_ + c/#offset,TBK(c/#offset)\BorderStyle)
TextGadget(#Gadget+14 + c, 8, 93, 35, 15, "Text")
SetGadgetFont(#Gadget+14 + c, FontID6)
StringGadget(#Texte_ + c/#offset, 53, 88, 535, 135, "")
SetGadgetFont(#Texte_ + c/#offset, FontID4)
SetGadgetText(#Texte_ + c/#offset,TBK(c/#offset)\Txt)
TextGadget(#Gadget+15 + c, 453, 38, 40, 15, "Layer")
SetGadgetFont(#Gadget+15 + c, FontID6)
TextGadget(#Gadget+16 + c, 453, 63, 35, 20, "Align")
SetGadgetFont(#Gadget+16 + c, FontID6)
StringGadget(#Sicht_ + c/#offset, 498, 38, 40, 20, "")
SetGadgetFont(#Sicht_ + c/#offset, FontID4)
SetGadgetText(#Sicht_ + c/#offset,Str(TBK(c/#offset)\TBKLayer))
StringGadget(#Alignment_ + c/#offset, 498, 63, 80, 20, "")
SetGadgetFont(#Alignment_ + c/#offset, FontID4)
SetGadgetText(#Alignment_ + c/#offset,TBK(c/#offset)\TBKTextAlign)
Next
CloseGadgetList()
will have 16 Gadget Objects as well as 14 different String Gadgets. I need to retireve the
value of the String Gadget, so i have to do it this way.
Now, as i say, i do not know how many Tabs or Object Numbers there will be. I start with 100 and goes up to 3000. This gives me 2900 numbers i can use. each
will contain at the moment 16 Gadget objects, that will mean i can only create dynamically 181 Tabs. Thus is not enough for me. I need at least 500 Tabs to start with and each object may have up to 50 Gadget Objects in each
. I am talking well over 100,000 at least. Is this possible? If not, what can i do to go around this?