Page 1 sur 1

ACTODS

MessagePublié: 23 Oct 2006 à 17:35
par Stephane Maillard
Bonjour,
Code : Tout sélectionner
Option Public
' ODS_DEFS      => ods.h
' COLORODS_DEFS   => colorods.h
' EDIT_ODS_DEFS   => editods.h

Const ACTION_SHOW_IN_MENU = &h00000001
Const ACTION_SHOW_IN_BAR = &h00000002
Const ACTION_SHOW_WHEN_PREVIEWING = &h00000004
Const ACTION_SHOW_WHEN_READING = &h00000008
Const ACTION_SHOW_WHEN_EDITING = &h00000010
Const ACTION_SHOW_ON_OLE_LAUNCH = &h00000020
Const ACTION_OLE_CLOSE_WHEN_CHOSEN = &h00000040
Const ACTION_NO_FORMULA = &h00000080
Const ACTION_SHOW_WHEN_PREVEDITING = &h00000100
Const ACTION_OLE_DOC_WINDOW_TO_FRONT = &h00001000
Const ACTION_HIDE_FROM_NOTES = &h00002000
Const ACTION_HIDE_FROM_WEB = &h00004000
Const ACTION_READING_ORDER_RTL = &h00008000
Const ACTION_SHARED = &h00010000
Const ACTION_MODIFIED = &h00020000
Const ACTION_ALWAYS_SHARED = &h00040000
Const ACTION_ALIGN_ICON_RIGHT = &h00080000
Const ACTION_IMAGE_RESOURCE_ICON = &h00100000
Const ACTION_FRAME_TARGET = &h00400000
Const ACTION_TEXT_ONLY_IN_MENU = &h00800000
Const ACTION_BUTTON_TO_RIGHT = &h01000000
Const ACTION_HIDE_FROM_MOBILE = &h04000000
Const ACTION_SHOW_IN_POPUPMENU = &h10000000
Const ACTION_ODS_FLAG_MASK = &h15F9F1FF

Const MAX_ACTION_DEPTH = (12)

Const ACTION_CONTROL_TYPE_BUTTON = 0
Const ACTION_CONTROL_TYPE_CHECBOX = 1
Const ACTION_CONTROL_TYPE_MENU_SEPARATOR = 2

Const ACTION_BAR_FLAG_NO_SYS_COLOR = &h00000001
Const ACTION_BAR_FLAG_ALIGN_RIGHT = &h00000002
Const ACTION_BAR_FLAG_TRANS_BUTTONS = &h00000004
Const ACTION_BAR_FLAG_SYS_BUTTONS = &h00000008
Const ACTION_BAR_FLAG_BTNBCK_IMGRSRC = &h00000010
Const ACTION_BAR_FLAG_BARBCK_IMGRSRC = &h00000020
Const ACTION_BAR_FLAG_SET_PADDING = &h00000040
Const ACTION_BAR_FLAG_USE_APPLET = &h00000080
Const ACTION_BAR_FLAG_SET_HEIGHT = &h00000100
Const ACTION_BAR_FLAG_ABSOLUTE_HEIGHT = &h00000200
Const ACTION_BAR_FLAG_BACKGROUND_HEIGHT = &h00000400
Const ACTION_BAR_FLAG_SET_WIDTH = &h00000800
Const ACTION_BAR_FLAG_BACKGROUND_WIDTH = &h00001000
Const ACTION_BAR_FLAG_SHOW_HINKY_ALWAYS = &h00002000

Const ACTIONBAR_BACKGROUND_REPEATONCE = 1
Const ACTIONBAR_BACKGROUND_REPEATVERT = 2
Const ACTIONBAR_BACKGROUND_REPEATHORIZ = 3
Const ACTIONBAR_BACKGROUND_TILE = 4
Const ACTIONBAR_BACKGROUND_CENTER_TILE = 5
Const ACTIONBAR_BACKGROUND_REPEATSIZE = 6
Const ACTIONBAR_BACKGROUND_REPEATCENTER = 7

Const ACTIONBAR_BUTTON_WIDTH_DEFAULT = 0
Const ACTIONBAR_BUTTON_WIDTH_BACKGROUND = 1
Const ACTIONBAR_BUTTON_WIDTH_ABSOLUTE = 2

Const ACTIONBAR_BUTTON_TEXT_LEFT = 0
Const ACTIONBAR_BUTTON_TEXT_CENTER = 1
Const ACTIONBAR_BUTTON_TEXT_RIGHT = 2

Const ACTIONBAREXT_WIDTH_STYLE_VALID_FLAG = &h00000001

Const ACTION_IGNORE_SYSTEM_ACTIONS_VERSION1 = 0

Type CDACTION
   Header As Long ' LSIG
   Type As Integer
   IconIndex As Integer
   Flags As Long ' Action flags
   TitleLen As Integer
   FormulaLen As Integer
   ShareId As Long
End Type

Type CDACTIONEXT
   Header As Long ' WSIG
   dwFlags As Long
   wControlType As Integer
   wControlFormulaLen As Integer
   wLabelFormulaLen As Integer
   wParentLabelFormulaLen As Integer
   dwExtra(3) As Long
End Type

Type CDACTIONBAR
   Header As Long ' BSIG
   BackColor As Integer
   LineColor As Integer
   LineStyle As Integer
   BorderStyle As Integer
   BorderWidth As Integer
   dwFlags As Long
   ShareId As Long
   FontID As Long ' FONTID
   BtnHeight As Integer
   HeightSpc As Integer
End Type

Type CDACTIONBAREXT
   Header As Long ' WSIG
   BackColor As Integer ' COLOR_VALUE
   LineColor As Integer ' COLOR_VALUE
   FontColor As Integer ' COLOR_VALUE
   ButtonColor As Integer ' COLOR_VALUE
   BtnBorderDisplay As Integer
   wAppletHeight As Integer
   wBarBackgroundRepeat As Integer
   BtnWidthStyle As Byte
   BtnTextJustify As Byte
   wBtnWidthAbsolute As Integer
   wBtnInternalMargin As Integer
   dwFlags As Long ' ACTIONBAREXT_*_FLAGs
   barFontId As Long ' FONTID
   barHeight As Integer ' LENGTH_VALUE
   Spare(12) As Long
End Type
Si vous trouvez des erreurs n'hésitez pas.

MessagePublié: 24 Oct 2006 à 01:19
par Stephane Maillard
Update avec colorods,

' COLORODS_DEFS => colorods.h
Use "colorods"

Code : Tout sélectionner
Type CDACTIONBAREXT
   Header As Long ' WSIG
   BackColor As COLOR_VALUE
   LineColor As COLOR_VALUE
   FontColor As COLOR_VALUE
   ButtonColor As COLOR_VALUE
   BtnBorderDisplay As Integer
   wAppletHeight As Integer
   wBarBackgroundRepeat As Integer
   BtnWidthStyle As Byte
   BtnTextJustify As Byte
   wBtnWidthAbsolute As Integer
   wBtnInternalMargin As Integer
   dwFlags As Long ' ACTIONBAREXT_*_FLAGs
   barFontId As Long ' FONTID
   barHeight As Integer ' LENGTH_VALUE
   Spare(12) As Long
End Type