Thread Rating:
  • 375 Vote(s) - 2.94 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MenuBar Styling
07-27-2012, 05:45 PM,
#1
MenuBar Styling

"MenuBar"、"MenuBar/ item-box"、"MenuBar/ divider-box" and"MenuBar/ divider"のSkiningサンプルコードを入手することができますか?

IDE HelpだけではMenuBarやSubMenuなどSkining作業がうまくできないですね

アドバイスお願いします。
07-30-2012, 04:21 PM,
#2
RE: MenuBar Styling
サンプルコードではないですが
MenuBarとSubMenuへのスキン適用はこんな感じでできました
Code:
{curl 8.0 applet}
{value
    {def menu-skin = {ShadedSkinSpec "khaki", "gold",
                         border-color = "tan",
                         rollover-border-color = "crimson",
                         margin-spec = {OffsetSpec 3pt, 3pt},
                         corner-radius = 8px
                     }
    }
    {let menu-bar:MenuBar = {MenuBar
                                skin = menu-skin,
                                {SubMenu label = "File",
                                    skin = menu-skin,
                                    {SubMenu label = "New",
                                        skin = menu-skin,
                                        {MenuAction label = "Curl"},
                                        {MenuAction label = "Text"},
                                        {MenuAction label = "Close"}
                                    }
                                },
                                {SubMenu label = "Edit",
                                    skin = menu-skin,
                                    {MenuAction label = "Cut"},
                                    {MenuAction label = "Paste"}
                                }
                            }
    }
    menu-bar
}
07-31-2012, 09:21 AM,
#3
RE: MenuBar Styling
(07-30-2012, 04:21 PM)ashimo Wrote: 良い情報ありがとうございます。
(07-30-2012, 04:21 PM)ashimo Wrote: サンプルコードではないですが
MenuBarとSubMenuへのスキン適用はこんな感じでできました
Code:
{curl 8.0 applet}
{value
    {def menu-skin = {ShadedSkinSpec "khaki", "gold",
                         border-color = "tan",
                         rollover-border-color = "crimson",
                         margin-spec = {OffsetSpec 3pt, 3pt},
                         corner-radius = 8px
                     }
    }
    {let menu-bar:MenuBar = {MenuBar
                                skin = menu-skin,
                                {SubMenu label = "File",
                                    skin = menu-skin,
                                    {SubMenu label = "New",
                                        skin = menu-skin,
                                        {MenuAction label = "Curl"},
                                        {MenuAction label = "Text"},
                                        {MenuAction label = "Close"}
                                    }
                                },
                                {SubMenu label = "Edit",
                                    skin = menu-skin,
                                    {MenuAction label = "Cut"},
                                    {MenuAction label = "Paste"}
                                }
                            }
    }
    menu-bar
}



Possibly Related Threads...
Thread Author Replies Views Last Post
  Pane styling RobertShiplett 0 2,390 07-12-2012, 05:02 AM
Last Post: RobertShiplett
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('580')