Foxtable(狐表)用户栏目专家坐堂 → [求助]如何设置主菜单标题的颜色和大小?


  共有1991人关注过本帖树形打印复制链接

主题:[求助]如何设置主菜单标题的颜色和大小?

帅哥哟,离线,有人找我吗?
hrw68529
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:五尾狐 帖子:1145 积分:8926 威望:0 精华:0 注册:2012/7/10 9:09:00
[求助]如何设置主菜单标题的颜色和大小?  发帖心情 Post By:2017/8/7 8:32:00 [只看该作者]

想把主菜单的标题字体和颜色进行更改,如何做呢

 回到顶部
帅哥哟,离线,有人找我吗?
有点甜
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2017/8/7 8:48:00 [只看该作者]

菜单修改,参考。

 

lockbasemainform
Dim a As C1Ribbon.C1Ribbon = BaseMainForm.controls("C1Ribbon1")
a.VisualStyle = 0
a.RibbonStyle.ColorSet(C1.Win.C1Ribbon.StyleColor.TabBackground) = Color.Bisque
a.RibbonStyle.ColorSet(C1.Win.C1Ribbon.StyleColor.FormBackground) = Color.LightSkyBlue
a.RibbonStyle.ConstSet(C1.Win.C1Ribbon.StyleConst.ContentAreaHeight) = 100
a.font = new font("黑体", 10)
unlockbasemainform

[此贴子已经被作者于2017/8/7 8:51:11编辑过]

 回到顶部
帅哥哟,离线,有人找我吗?
有点甜
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2017/8/7 8:49:00 [只看该作者]

如果指的是窗口顶部的标题,那个是不能改的。

 回到顶部
帅哥哟,离线,有人找我吗?
有点甜
  4楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2017/8/7 8:54:00 [只看该作者]

菜单所有属性

 

Dim obj = CType(BaseMainForm,C1Ribbon.C1RibbonForm).Ribbon

obj.ForeColorOuter = color.red

'For Each o As object In obj.Gettype.getproperties
'    output.show(o.name)
'Next

 

---------------------------------------------------------------------

 

ApplicationMenu
ApplicationMenuHolder
Qat
QatHolder
ConfigToolBar
ConfigToolBarHolder
TopToolBar
TopToolBarHolder
BottomToolBar
BottomToolBarHolder
PermanentIDs
QatItemsHolder
ContextMenuItems
AllowContextMenu
AllowMinimize
HideAppMenuWithTHR
HideTabHeaderRow
RestrictedGroupSizing
Minimized
MinimumWidth
MinimumHeight
TabPopupWidth
Selectable
SupportsKeyTips
AltKeyPressDelay
CaptureF10Key
CaptureAltKeyInTerminalSession
NoSysKeyUp
KeyTipsVisible
HotTransitionEffect
FontPadding
ForeColorDisabled
ForeColorInner
ForeColorMenuItem
ForeColorOuter
ForeColorTextBox
ToolTipMaxWidth
CaptionAlignment
ChildCaptionInSquareBrackets
HeaderWatermark
SmallImageList
LargeImageList
VisualStyle
RibbonStyle
ToolTipSettings
Tabs
ContextualTabGroups
SelectedTab
SelectedTabIndex
QatItemNames
QatItemIDs
TextRenderingHint
Visible
Location
Size
Padding
Anchor
AutoSize
MaximumSize
MinimumSize
ForeColor
BackColor
BackgroundImage
BackgroundImageLayout
BorderStyle
Cursor
Dock
TabStop
TabIndex
ScrollBars
ScrollPosition
ScrollSize
ScrollTrack
Text
ScrollableRectangle
AccessibilityObject
AccessibleDefaultActionDescription
AccessibleDescription
AccessibleName
AccessibleRole
AllowDrop
AutoScrollOffset
LayoutEngine
BindingContext
Bottom
Bounds
CanFocus
CanSelect
Capture
CausesValidation
ClientRectangle
ClientSize
CompanyName
ContainsFocus
ContextMenu
ContextMenuStrip
Controls
Created
DataBindings
DisplayRectangle
IsDisposed
Disposing
Enabled
Focused
Font
Handle
HasChildren
Height
IsHandleCreated
InvokeRequired
IsAccessible
IsMirrored
Left
Margin
Name
Parent
ProductName
ProductVersion
RecreatingHandle
Region
Right
RightToLeft
Site
Tag
Top
TopLevelControl
UseWaitCursor
Width
WindowTarget
PreferredSize
ImeMode
Container


 回到顶部