Thread Rating:
  • 325 Vote(s) - 2.94 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ツリーコントロールのカスタマイズ
06-18-2013, 08:48 AM,
#2
RE: ツリーコントロールのカスタマイズ
よこの長さは TreeControl.indentation で指定できました。
ただ、トグルボタンを大きくした際に、レイアウトが崩れる問題は解決できていおらず、
margin-spec で6px より大きくすると、目に見えてレイアウトがおかしくなります。

Code:
||ツリーの見栄えを変える
    def tree-control =
        {TreeControl
            tree-item-creation-proc = new-tree-item-creation-proc,
            name = "tree-control",
            || インデント幅
            indentation = 15mm
        }
    {install-style-sheet-on-Graphic
        tree-control,
        {StyleSheet
            ||トグルボタン
            {StyleRule "TreeControl/toggle",
                skin = {ShadedSkinSpec
                           "white",
                           "white",
                           rollover-start-color = "lightblue",
                           border-color = "gray",
                           rollover-border-color = "blue",
                           draw-content-background? = false,
                           margin-spec = {OffsetSpec 6px},
                           overlay-decoration = "plus"
                           ||corner-radius = 3px
                       },
                checked-skin = {ShadedSkinSpec
                                   "white",
                                   "white",
                                   rollover-start-color = "lightblue",
                                   border-color = "gray",
                                   rollover-border-color = "blue",
                                   draw-content-background? = false,
                                   margin-spec = {OffsetSpec 6px},
                                   overlay-decoration = "minus"
                                   ||corner-radius = 3px
                               }
            },
            ||TreeItemのマージンを広げる
            {StyleRule "DefaultTreeItem",
                margin = 2mm
            }
        }
    }




Messages In This Thread
RE: ツリーコントロールのカスタマイズ - by umemura - 06-18-2013, 08:48 AM
Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('910')