movecontrols.pag

来自「vb串口程序」· PAG 代码 · 共 58 行

PAG
58
字号
VERSION 5.00
Begin VB.PropertyPage MoveControls 
   Caption         =   "MoveControls"
   ClientHeight    =   3495
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   5925
   PaletteMode     =   0  'Halftone
   ScaleHeight     =   3495
   ScaleWidth      =   5925
   Begin VB.CommandButton cmdDown 
      Caption         =   "Move Down"
      Height          =   315
      Left            =   120
      TabIndex        =   1
      Top             =   1140
      Width           =   1215
   End
   Begin VB.CommandButton CmdUp 
      Caption         =   "Move Up"
      Height          =   315
      Left            =   120
      TabIndex        =   0
      Top             =   780
      Width           =   1215
   End
   Begin VB.Label Label2 
      Caption         =   $"MoveControls.pgx":0000
      Height          =   615
      Left            =   60
      TabIndex        =   3
      Top             =   2760
      Width           =   5775
   End
   Begin VB.Label Label1 
      Caption         =   $"MoveControls.pgx":008D
      Height          =   615
      Left            =   60
      TabIndex        =   2
      Top             =   60
      Width           =   5775
   End
End
Attribute VB_Name = "MoveControls"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Option Explicit

Private Sub cmdDown_Click()
    SelectedControls(0).MoveControls 15 * 20
End Sub

Private Sub CmdUp_Click()
    SelectedControls(0).MoveControls -15 * 20
End Sub

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?