TIPTOP ERP界面风格设置

  • Post author:
  • Post category:其他




使用系统 TIPTOP GP 3.0 ,当然高版本可以在GDC里面直接设置



其中样式只要是修改4st文件,其目录(/u1/topprod/tiptop/config/4st/tiptop.4st)



用法

OPEN WINDOW w1  WITH FORM "cxm/42f/cxmi999" 
   ATTRIBUTE (STYLE="udm_tree3", TEXT="udm_tree") 





首先看几张图:



贴一段样式代码:

 <!-- 2012/09/18 by FMX : Style -->
  <Style name="Window.udm_tree3" >
     <StyleAttribute name="windowType" value="normal" />
     <StyleAttribute name="startMenuPosition" value="tree" />
     <StyleAttribute name="toolBarPosition" value="top" />
     <StyleAttribute name="actionPanelPosition" value="none" />
     <StyleAttribute name="ringMenuPosition" value="none" />
     <StyleAttribute name="backgroundColor" value="lightBlue" />
     <StyleAttribute name="fontFamily" value="'fantasy'" />
     <StyleAttribute name="fontSize" value="12pt" />
     <StyleAttribute name="fontStyle" value="italic" />
     <StyleAttribute name="textColor" value="#blue" />
     <StyleAttribute name="textDecoration" value="line-through" />
     <StyleAttribute name="actionPanelButtonSpace" value="tiny" />
  </Style> 
    <Style name="Window.sm1000" >
     <StyleAttribute name="startMenuPosition" value="menu" />
     <StyleAttribute name="ringMenuPosition" value="right" />
     <StyleAttribute name="toolBarPosition" value="top" />
     <StyleAttribute name="actionPanelPosition" value="right" />
     <StyleAttribute name="actionPanelButtonSpace" value="none" />
     <StyleAttribute name="headerHidden" value="1" />
  </Style>




下面是所有的界面的属性




1.颜色(colors)



white            #FFFFFF

black           #000000

darkGray      #A9A9A9

gray            #808080

lightGray     #D3D3D3

darkBlue      #00008B

blue            #0000FF

lightBlue     #ADD8E6

darkCyan      #008B8B

cyan          #00FFFF

lightCyan     #E0FFFF

darkMagenta   #8B008B

magenta       #FF00FF

lightMagenta  #FFC0FF

darkOlive     #505000

olive         #808000

lightOlive    #AAAA44

darkGreen     #006400

green         #00FF00

lightGreen    #90EE90

darkTeal      #005050

teal          #008080

lightTeal     #33CCCC

darkRed       #8B0000

red           #FF0000

lightRed      #FF8080

darkOrange    #FF8C00

orange        #FFA500

lightOrange   #FFCC00

darkYellow    #AAAA00

yellow        #FFFF00

lightYellow   #FFFFE0



系统颜色


window                 Window background.

windowText             Text in Windows.

buttonFace             Face color for three-dimensional display elements.

buttonText             Text on PushButtons.

highLight              Item(s) selected in a control.

highLightText          Text of item(s) selected in a control

infoBackground         Background color for tooltip controls.

infoText               Text color for tooltip controls.

grayText               Grayed (disabled) text.

appWorkSpace     Background color of multiple document interface

background           Desktop background

Examples:

<StyleAttribute name=”textColor” value=”blue” />

<StyleAttribute name=”textColor” value=”#00FF45″ />




2.字体风格(Font Families)



serif/sans-serif/cursive/fantasy/monospace

Examples:

<StyleAttribute name=”fontFamily” value=”sans-serif” />

<StyleAttribute name=”fontFamily” value=”‘Courier New'” />

<StyleAttribute name=”fontFamily” value=”‘Times New Roman’,Times,serif” />




3.字体大小(Font Sizes)



fontSize:xx-small, x-small, small, medium, large, x-large, xx-large.

Examples:

<StyleAttribute name=”fontSize” value=”medium” />

<StyleAttribute name=”fontSize” value=”xx-large” />

<StyleAttribute name=”fontSize” value=”12pt” />

<StyleAttribute name=”fontSize” value=”1em” />




4.常见的样式属性(Common Style Attributes)



backgroundImage

backgroundColor

fontFamily

fontSize

fontStyle

fontWeight

textColor

textDecoration

border




5.窗口样式属性(Window Style Attributes)



windowType(normal/modal 默认为:normal)

windowState(normal/maximized 默认为:normal)

windowOptionClose(yes/no/auto 默认为:no)

windowOptionMinimize(yes/no/auto 默认为:no)

windowOptionMaximize(yes/no/auto 默认为:no)

windowSystemMenu(yes/no/auto 默认为:no)

sizable(yes/no/auto 默认为:yes)

position(default/field/center/center2  默认为:default)

border(normal/frame/tool/none  默认为:normal)

forceDefaultSettings

actionPanelPosition(none/top/left/bottom/right  默认为:right)

actionPanelButtonSize

actionPanelButtonSpace

actionPanelScroll

actionPanelScrollStep

actionPanelHAlign

ringMenuPosition

ringMenuButtonSize

ringMenuButtonSpace

ringMenuScroll

ringMenuScrollStep

ringMenuHAlign

toolBarPosition

commentPosition

messagePosition

errorMessagePosition

statusBarType




6.状态栏的类型(Status bar types)



default

lines1

lines2

lines3

lines4

lines5

lines6

panels1

panels2

panels3

panels4

panels5

panels6

panels7

none




7.开始菜单(StartMenu)



startMenuPosition(none/tree/menu/poptree 默认为:none)

startMenuSize(tiny/small/medium/large/huge 默认为:medium)

startMenuShortcut

startMenuAccelerator

startMenuExecShortcut2




8.容器样式属性(MDI Container Style Attributes)



windowMenu




9.表格样式属性(Table Style Attributes)



highlightColor

highlightTextColor

highlightCurrentRow

highlightCurrentCell

showGrid

headerHidden




10.下拉框(ComboBox Style Attributes)



autoSelectionStart




11.日期框样式属性(DateEdit Style Attributes)



firstDayOfWeek

daysOff

buttonIcon




12.标签样式属性(Label Style Attributes)



textFormat




13.进度条样式属性(ProgressBar Style Attributes)



percentageVisible




14.单选按钮样式属性(RadioGroup Style Attributes)



autoSelectionStart




15.文本编辑框样式属性(TextEdit Style Attributes)



textFormat

wrapPolicy





*************************************************************************************************






大笑
大笑


==== Till good is better, but better best





大笑
大笑
====“我的努力不会停止,敬请期待吧!”My trying hard will go on!Please wait and see!



*************************************************************************************************




版权声明:本文为fmx121586原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。