30.11.2014, 06:09
Denkfehler. Du willst nicht die Werte von Attributen eines konreten Objektes auslesen, dafür müsste ja eine GUI instanziert sein.
Du möchtest einfach die namen der Klassen und deren Attribute wissen, damit du damit eine Autovervollständigung im Texteditor machen kannst.
Ich habe die notwendigen Funktionen hinzugefügt. Ich habe auch einen neuen Ordern in Examples/ gemacht, wo jetzt NTUI Beispiele gesammelt werden.
Wenn ihr irgendwas wissen wollte, dan fragt am besten ein Example an und ich mache ein kleines Demo.
Hier das Example wie man die Klassen ausliesst:
[ab3]; ======================= NTUI List Classes Example ===========================
; 11/27/2014 Thilo Koehler
; This demo lists all classes (~ntui objects) and their attributes.
; Listing the classes is potentially useful for GUI builders.
; Note: needs to run from command line.
; =============================================================================
; Include Dependencies ========================================================
WBStartup
XINCLUDE "ntui.include.ab3"
; Main Program (needs to run from Command Line)
*shclass.ntuiScanHandle = ntui_BeginScanClasses{""}
Repeat
className.s = ntui_GetNextScanName{*shclass}
If (className)
NPrint "<", className
*shattr.ntuiScanHandle = ntui_BeginScanAttrs{className, ""}
Repeat
attrName.s = ntui_GetNextScanName{*shattr}
If (attrName)
NPrint " ", attrName, " = ..."
End If
Until attrName = ""
ntui_EndScan{*shattr}
NPrint "/>"
End If
Until className = ""
ntui_EndScan{*shclass}
End[/ab3]
Das gibt folgende Ausgabe:
Du möchtest einfach die namen der Klassen und deren Attribute wissen, damit du damit eine Autovervollständigung im Texteditor machen kannst.
Ich habe die notwendigen Funktionen hinzugefügt. Ich habe auch einen neuen Ordern in Examples/ gemacht, wo jetzt NTUI Beispiele gesammelt werden.
Wenn ihr irgendwas wissen wollte, dan fragt am besten ein Example an und ich mache ein kleines Demo.
Hier das Example wie man die Klassen ausliesst:
[ab3]; ======================= NTUI List Classes Example ===========================
; 11/27/2014 Thilo Koehler
; This demo lists all classes (~ntui objects) and their attributes.
; Listing the classes is potentially useful for GUI builders.
; Note: needs to run from command line.
; =============================================================================
; Include Dependencies ========================================================
WBStartup
XINCLUDE "ntui.include.ab3"
; Main Program (needs to run from Command Line)
*shclass.ntuiScanHandle = ntui_BeginScanClasses{""}
Repeat
className.s = ntui_GetNextScanName{*shclass}
If (className)
NPrint "<", className
*shattr.ntuiScanHandle = ntui_BeginScanAttrs{className, ""}
Repeat
attrName.s = ntui_GetNextScanName{*shattr}
If (attrName)
NPrint " ", attrName, " = ..."
End If
Until attrName = ""
ntui_EndScan{*shattr}
NPrint "/>"
End If
Until className = ""
ntui_EndScan{*shclass}
End[/ab3]
Das gibt folgende Ausgabe:
Code:
<object
string = ...
setflags = ...
small = ...
samewidth = ...
sameheight = ...
samesize = ...
value = ...
help = ...
height = ...
flags = ...
focus = ...
fgpen = ...
fgrgb = ...
fgimage = ...
fix = ...
fixwidth = ...
fixheight = ...
fixsize = ...
width = ...
minwidth = ...
minheight = ...
maxwidth = ...
maxheight = ...
margin = ...
mover = ...
mousepointer = ...
xpos = ...
ypos = ...
border = ...
bordertype = ...
bold = ...
bottommargin = ...
bottompadding = ...
bgpen = ...
bgrgb = ...
bgimage = ...
bbox = ...
bind = ...
classid = ...
clearflags = ...
cbox = ...
id = ...
invisible = ...
italic = ...
ibox = ...
enabled = ...
onscreen = ...
onfocus = ...
onfocuscb = ...
onfree = ...
onfreecb = ...
onlosefocus = ...
onlosefocuscb = ...
onlosemover = ...
onlosemovercb = ...
onmover = ...
onmovercb = ...
active = ...
align = ...
disabled = ...
toggle = ...
topmargin = ...
toppadding = ...
underlined = ...
userdata = ...
leftmargin = ...
leftpadding = ...
rightmargin = ...
rightpadding = ...
padding = ...
gradient = ...
/>
<engine
skinpath = ...
seriffontface = ...
seriffontsize = ...
smallfontface = ...
smallfontsize = ...
imagepath = ...
aisspath = ...
arexxport = ...
appname = ...
appmenutext = ...
appiconfile = ...
appicontext = ...
useskin = ...
useaiss = ...
borderstyle = ...
buffereddraw = ...
fillstyle = ...
fixfontface = ...
fixfontsize = ...
defleftmargin = ...
defleftpadding = ...
deftopmargin = ...
deftoppadding = ...
defrightmargin = ...
defrightpadding = ...
defbottommargin = ...
defbottompadding = ...
defpadding = ...
defmargin = ...
pubscreenname = ...
normalfontface = ...
normalfontsize = ...
onmessage = ...
onicondrop = ...
oniconify = ...
onquit = ...
onpopup = ...
windowrefresh = ...
/>
<group
wrap = ...
title = ...
image = ...
orientation = ...
subclassid = ...
/>
<vgroup
wrap = ...
title = ...
image = ...
/>
<vscroller
top = ...
total = ...
visible = ...
step = ...
onchange = ...
onchangecb = ...
orientation = ...
hasarrows = ...
arrows = ...
/>
<vslider
orientation = ...
onchange = ...
onchangecb = ...
value = ...
minvalue = ...
maxvalue = ...
step = ...
label = ...
/>
<vseperator
/>
<vbalancer
/>
<hgroup
wrap = ...
title = ...
image = ...
/>
<hscroller
top = ...
total = ...
visible = ...
step = ...
onchange = ...
onchangecb = ...
orientation = ...
hasarrows = ...
arrows = ...
/>
<hslider
value = ...
minvalue = ...
maxvalue = ...
step = ...
label = ...
onchange = ...
onchangecb = ...
orientation = ...
/>
<hseperator
/>
<hbalancer
/>
<menubar
wrap = ...
title = ...
image = ...
/>
<menuitem
image = ...
toggle = ...
checked = ...
shortcut = ...
label = ...
onclick = ...
onclickcb = ...
/>
<menutitle
image = ...
label = ...
/>
<space
/>
<scrollview
scrollermode = ...
voffset = ...
vtotal = ...
vstep = ...
vvisible = ...
hoffset = ...
htotal = ...
hstep = ...
hvisible = ...
/>
<string
cursorchar = ...
cursorstyle = ...
cleartbflags = ...
beginselectchar = ...
blinkspeed = ...
endselectchar = ...
edited = ...
tbflags = ...
tabwidth = ...
totalwidth = ...
text = ...
settbflags = ...
selection = ...
spacewidth = ...
rowheight = ...
visiblewidth = ...
leftoffset = ...
maxchars = ...
font = ...
onchange = ...
onchangecb = ...
oncursor = ...
oncursorcb = ...
onclick = ...
onclickcb = ...
onkey = ...
onkeycb = ...
onpostkey = ...
onpostkeycb = ...
onsubmit = ...
onsubmitcb = ...
undo = ...
defaultshortcuts = ...
hint = ...
/>
<seperator
orientation = ...
/>
<submenu
image = ...
label = ...
/>
<button
text = ...
tickdelay = ...
toggle = ...
label = ...
image = ...
image2 = ...
checked = ...
onclick = ...
ontouch = ...
onrelease = ...
onrepeat = ...
ondismiss = ...
subclassid = ...
function = ...
/>
<balancer
orientation = ...
/>
<checkbox
image = ...
image2 = ...
checked = ...
onclick = ...
ontouch = ...
onrelease = ...
onrepeat = ...
ondismiss = ...
function = ...
/>
<checkbutton
text = ...
label = ...
image = ...
image2 = ...
checked = ...
onclick = ...
ontouch = ...
onrelease = ...
onrepeat = ...
ondismiss = ...
function = ...
/>
<cycle
selected = ...
options = ...
onchange = ...
/>
<customview
htotal = ...
hvisible = ...
hoffset = ...
hstep = ...
vtotal = ...
vvisible = ...
voffset = ...
vstep = ...
/>
<radiobutton
text = ...
label = ...
image = ...
image2 = ...
checked = ...
onclick = ...
ontouch = ...
onrelease = ...
onrepeat = ...
ondismiss = ...
function = ...
/>
<requester
type = ...
title = ...
text = ...
onok = ...
oncancel = ...
ok = ...
cancel = ...
modal = ...
multiselect = ...
path = ...
pattern = ...
file = ...
fixfontsonly = ...
fontname = ...
fontsize = ...
savemode = ...
screenmodeid = ...
screenwidth = ...
screenheight = ...
screendepth = ...
drawersonly = ...
noicons = ...
image = ...
/>
<imagebutton
text = ...
label = ...
image = ...
checked = ...
onclick = ...
ontouch = ...
onrelease = ...
onrepeat = ...
ondismiss = ...
function = ...
/>
<imageview
width = ...
height = ...
size = ...
isize = ...
image = ...
/>
<toolbutton
text = ...
label = ...
image = ...
checked = ...
onclick = ...
ontouch = ...
onrelease = ...
onrepeat = ...
ondismiss = ...
function = ...
/>
<tabview
activetab = ...
tabstyle = ...
onswitch = ...
onswitchcb = ...
/>
<textbox
cursorstyle = ...
cursorline = ...
cursorchar = ...
cleartbflags = ...
beginselectline = ...
beginselectchar = ...
blinkspeed = ...
endselectline = ...
endselectchar = ...
edited = ...
tbflags = ...
tabwidth = ...
totallines = ...
totalwidth = ...
topline = ...
text = ...
settbflags = ...
selection = ...
spacewidth = ...
subclassid = ...
scrollermode = ...
rowheight = ...
readonly = ...
visiblelines = ...
visiblewidth = ...
leftoffset = ...
line = ...
linelength = ...
maxchars = ...
maxlines = ...
font = ...
onchange = ...
onchangecb = ...
oncursor = ...
oncursorcb = ...
onclick = ...
onclickcb = ...
onkey = ...
onkeycb = ...
onpostkey = ...
onpostkeycb = ...
onfilelistenerclose = ...
onfilelistenerclosecb = ...
onedit = ...
oneditcb = ...
defaultshortcuts = ...
undo = ...
hint = ...
autoindent = ...
/>
<treeview
onexpand = ...
onexpandcb = ...
oncollapse = ...
oncollapsecb = ...
onselect = ...
onselectcb = ...
rowheight = ...
rootnode = ...
visiblelines = ...
visiblewidth = ...
totallines = ...
totalwidth = ...
topline = ...
leftoffset = ...
selected = ...
subclassid = ...
dospattern = ...
/>
<functionbutton
text = ...
label = ...
image = ...
image2 = ...
checked = ...
onclick = ...
ontouch = ...
onrelease = ...
onrepeat = ...
ondismiss = ...
function = ...
/>
<label
text = ...
/>
<listview
multiselect = ...
cellcontent = ...
title = ...
titleheight = ...
topitem = ...
totalitems = ...
totalwidth = ...
scrollermode = ...
leftoffset = ...
visibleitems = ...
visiblewidth = ...
itemheight = ...
onselect = ...
onselectcb = ...
ontouch = ...
ontouchcb = ...
onfilelistenerclose = ...
onfilelistenerclosecb = ...
/>
<progressbar
text = ...
total = ...
todopen = ...
done = ...
donepen = ...
/>
<popup
image = ...
label = ...
/>
<dummy
/>
<dirview
onexpand = ...
onexpandcb = ...
oncollapse = ...
oncollapsecb = ...
onselect = ...
onselectcb = ...
rowheight = ...
root = ...
rootnode = ...
visiblelines = ...
visiblewidth = ...
totallines = ...
totalwidth = ...
topline = ...
leftoffset = ...
selected = ...
dospattern = ...
/>
<dropdown
image = ...
label = ...
/>
<window
onwindrop = ...
onwindropcb = ...
onclose = ...
onclosecb = ...
onactive = ...
onactivecb = ...
oninactive = ...
oninactivecb = ...
ontick = ...
ontickcb = ...
onhotkey = ...
onhotkeycb = ...
instanceid = ...
title = ...
borderless = ...
backdrop = ...
sizeable = ...
closeable = ...
dragable = ...
/>