Ich habe den "dd.xml" ein bissl verändert, als Vorschlag versteht sich!
Es ist unschön, wenn einzelne Props, z.B. die ID, der Name oder auch
der Text im DD nicht vollständig zu sehen sind. Gerade die ID
kann lang werden, z.B. "#Win_Main_Spl_Props_Frm_Close_Btn_Cancel". Deshalb sind für die
drei die Felder der Gridbox angepasst.
Code: Alles auswählen
<?xml version="1.0" encoding="UTF-8"?>
<dialogs>
<window flags="#PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget | #PB_Window_SizeGadget | #PB_Window_Invisible | #PB_Window_ScreenCentered" minheight="700" minwidth="600" name="Window_Main">
<vbox expand="item:2">
<!--Buttonbar etc.-->
<hbox align="center" expand="no">
<buttonimage width="20" height="20" name="newfile" onevent="OnEventNewDialog()"/>
<buttonimage width="20" height="20" name="loadfile" onevent="OnEventLoadDialog()"/>
<buttonimage width="20" height="20" name="savefile" onevent="OnEventSaveDialog()"/>
<buttonimage width="20" height="20" name="savefileas" onevent="OnEventSaveDialog()"/>
<empty width="35"/>
<buttonimage width="20" height="20" name="showall" onevent="OnClickShowAll()"/>
<buttonimage width="20" height="20" name="hideall" onevent="OnClickHideAll()"/>
<empty width="10"/>
<text text="Dialog Definition:"/>
<vbox>
<combobox width="100" name="definition" onevent="OnChangeDef()"/>
<empty/>
</vbox>
<text text="Dialog Refresh Time:"/>
<trackbar width="100" min="1" max="10" flags="#PB_TrackBar_Ticks" value="2" name="refreshdelay" onevent="OnRefreshDelay()"/>
<text text="1000 ms" name="refreshtime"/>
</hbox>
<hbox expand="yes">
<splitter flags="#PB_Splitter_Vertical | #PB_Splitter_Separator" name="splitter">
<!--Left, Objects-->
<frame text="Objects:">
<tree flags="#PB_Tree_AlwaysShowSelection" name="tree_objects" onchange="OnObjectTreeClick()" ondragstart="OnObjectTreeDrag()" onrightclick="OnObjectTreeRClick()"/>
</frame>
<!--Right, Props-->
<vbox expand="item:4">
<!--Props-->
<frame text="Properties">
<gridbox columns="4" colexpand="item:4" rowexpand="no">
<text text="ID:"/>
<string colspan="3" name="_id" onchange="OnStringChanged()"/>
<text text="Name:"/>
<string colspan="3" name="_name" onchange="OnStringChanged()"/>
<text text="Text:"/>
<string colspan="3" name="text" onchange="OnStringChanged()"/>
<text text="Width:"/>
<string width="80" name="width" onchange="OnStringChanged()"/>
<frame colspan="2" text="Flags" rowspan="7">
<tree flags="#PB_Tree_NoLines | #PB_Tree_CheckBoxes" name="flags" onleftclick="OnTreeClick()"/>
</frame>
<text text="Height:"/>
<string name="height" onchange="OnStringChanged()"/>
<text text="Min:"/>
<string name="min" onchange="OnStringChanged()"/>
<text text="Max:"/>
<string name="max" onchange="OnStringChanged()"/>
<text text="Value:"/>
<string name="value" onchange="OnStringChanged()"/>
<text text="Group:"/>
<string name="group" onchange="OnStringChanged()"/>
<text text="Page:"/>
<string name="page" onchange="onstringchanged()"/>
<checkbox text="Invisible" name="invisible" onevent="OnCheckBoxChanged()"/>
<frame text="Event Procedures" colspan="3" rowspan="3">
<vbox>
<combobox name="onevents" onchange="OnComboBoxChanged()"/>
<string name="onevent_proc" onchange="OnStringChanged()"/>
</vbox>
</frame>
<checkbox text="Disabled" name="disabled" onevent="OnCheckBoxChanged()"/>
<empty/>
<hbox colspan="2" align="" expand="no">
<buttonimage width="24" height="24" name="userattributes" onevent="OnUserAttributes()"/>
<buttonimage width="24" height="24" name="refresh" onevent="OnClickRefresh()"/>
<buttonimage width="24" height="24" name="move_up" onevent="OnMenuMoveUp()"/>
<buttonimage width="24" height="24" name="move_down" onevent="OnMenuMoveDown()"/>
</hbox>
</gridbox>
</frame>
<!--Spec. Props-->
<frame text="Special Properties">
<multibox>
<container invisible="yes" name="container_window">
<gridbox columns="4">
<text text="MinWidth:"/>
<string name="minwidth" onchange="OnStringChanged()"/>
<text text="MinHeight:"/>
<string name="minheight" onchange="OnStringChanged()"/>
<text text="MaxWidth:"/>
<string name="maxwidth" onchange="OnStringChanged()"/>
<text text="MaxHeight:"/>
<string name="maxheight" onchange="OnStringChanged()"/>
</gridbox>
</container>
<container invisible="yes" name="container_boxes">
<gridbox columns="4">
<text text="Spacing:"/>
<string name="spacing" onchange="OnStringChanged()"/>
<text text="Align:"/>
<combobox name="alignbox" onchange="OnComboBoxChanged()"/>
<text text="Expand:"/>
<combobox name="expandbox" onchange="OnComboBoxChanged()"/>
<text text="Item:"/>
<string name="expandboxitem" onchange="OnStringChanged()"/>
</gridbox>
</container>
<container invisible="yes" name="container_gridbox">
<gridbox columns="4" invisible="yes">
<text text="Columns:"/>
<string name="columns" onchange="OnStringChanged()"/>
<text text="Colspacing:"/>
<string name="colspacing" onchange="OnStringChanged()"/>
<empty colspan="2"/>
<text text="Rowspacing:"/>
<string name="rowspacing" onchange="OnStringChanged()"/>
<text text="Colexpand:"/>
<combobox name="colexpand" onchange="OnComboBoxChanged()"/>
<text text="Item:"/>
<string name="colexpanditem" onchange="OnStringChanged()"/>
<text text="Rowexpand:"/>
<combobox name="rowexpand" onchange="OnComboBoxChanged()"/>
<text text="Item:"/>
<string name="rowexpanditem" onchange="OnStringChanged()"/>
</gridbox>
</container>
<container invisible="yes" name="container_multibox"/>
<container invisible="yes" name="container_singlebox">
<gridbox columns="4" colexpand="yes" rowexpand="no">
<text text="Margin:"/>
<combobox width="100" name="margincombo" onchange="OnComboBoxChanged()"/>
<text text="Value:"/>
<string width="120" name="marginext" onchange="OnStringChanged()"/>
<text text="Expand:"/>
<combobox name="expandsingle" onchange="OnComboBoxChanged()"/>
<text text="Align:"/>
<tree flags="#PB_Tree_NoButtons | #PB_Tree_CheckBoxes" rowspan="3" width="120" name="alignsingle" onleftclick="OnTreeClick()"/>
<text text="ExpWidth:"/>
<string name="expandwidth" onchange="OnStringChanged()"/>
<empty/>
<text text="ExpHeight:"/>
<string name="expandheight" onchange="OnStringChanged()"/>
</gridbox>
</container>
<container invisible="yes" name="container_splitter">
<gridbox columns="4">
<text text="FirstMin:"/>
<string name="firstmin" onchange="OnStringChanged()"/>
<text text="SecondMin:"/>
<string name="secondmin" onchange="OnStringChanged()"/>
</gridbox>
</container>
<container invisible="yes" name="container_scrollarea">
<gridbox columns="4">
<text text="Scrolling:"/>
<combobox name="scrolling" onchange="oncomboboxchanged()"/>
<empty colspan="2"/>
<text text="InnerHeight:"/>
<string name="innerheight" onchange="onstringchanged()"/>
<text text="InnerWidth:"/>
<string name="innerwidth" onchange="onstringchanged()"/>
</gridbox>
</container>
<container name="container_comment">
<hbox expand="item:2">
<text text="Comment:"/>
<editor name="comment" onevent="OnStringChanged()"/>
</hbox>
</container>
</multibox>
</frame>
<!--Gridbox Childs-->
<frame text="GridBox Childs">
<hbox expand="yes" alignbox="top/left">
<text text="Colspan:"/>
<string name="colspan" onchange="OnStringChanged()"/>
<text text="Rowspan:"/>
<string name="rowspan" onchange="OnStringChanged()"/>
</hbox>
</frame>
<!--Log-->
<frame text="Log:">
<editor flags="#PB_Editor_ReadOnly" height="60" name="log"/>
</frame>
</vbox>
</splitter>
</hbox>
</vbox>
</window>
<window flags="#PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_Invisible | #PB_Window_Tool | #PB_Window_WindowCentered" minwidth="400" text="Special Attributes" name="Win_Attrib">
<hbox expand="item:2">
<frame text="User defined attributes" rowspan="8" width="160" height="180">
<listview name="userattribs" onleftclick="OnUserAttribChange()"/>
</frame>
<vbox align="" expand="no">
<hbox expand="item:2">
<text text="Name:"/>
<string name="attrib_name" onchange="OnChangeAttribName()"/>
</hbox>
<hbox expand="item:2">
<text text="Value:"/>
<string name="attrib_value" onchange="OnChangeAttribValue()"/>
</hbox>
<hbox align="" expand="no">
<buttonimage width="24" height="24" name="attrib_add" onevent="OnClickAttribAdd()"/>
<buttonimage width="24" height="24" name="attrib_del" onevent="OnClickAttribDel()"/>
</hbox>
</vbox>
</hbox>
</window>
</dialogs>
Ich verstehe nicht, warum die rechte Seite des Splitters beim
verkleinern des Fensters "rechts untergeschoben" wird, ab einer
bestimmten Fensterbreite. Mit dem Splitter laßt sie sich aber verkleinern.
Beim DragnDrop im Tree gibts noch ein anderes Problem:
Wenn sich z.B. in einem Frame eine Gridbox befindet, die viele Gadgets enthält, dann
ist diese Konstruktion im Tree nicht komplett sichtbar.
Will man nun zum Einfügen einer SingleBox Teile des Tree in ein temoräres Window Draggen,
dann ist dieses nicht sichtbar, weil es sich ganz unten im Tree befindet. Zuklappen geht hier
nur bedingt.
Ein bissl würde hier das Verschieben des temp-Windows im Tree nach Oben helfen, wesser wäre
aber der Tree würde beim Draggen scrollen bis das temp-Window sichtbar wird.
Eine Copy/Paste für Gadgads würde auch helfen.