Ignore:
Timestamp:
Aug 22, 2019, 11:32:31 AM (5 years ago)
Author:
chronos
Message:
  • Modified: Menu shutdown button with drop down menu and reboot action.
  • Fixed: Correct left positioning of main menu.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/topdown/UFormMenu.lfm

    r26 r27  
    1212  OnShow = FormShow
    1313  LCLVersion = '2.0.2.0'
    14   object ButtonShutDown: TButton
    15     Left = 7
    16     Height = 31
    17     Top = 362
    18     Width = 94
    19     Anchors = [akLeft, akBottom]
    20     Caption = 'Shut down'
    21     OnClick = ButtonShutDownClick
    22     TabOrder = 0
    23   end
    2414  object ListBoxApps: TListBox
    2515    Left = 10
     
    3424    ItemHeight = 20
    3525    OnClick = ListBoxAppsClick
     26    TabOrder = 0
     27  end
     28  object ToolBar1: TToolBar
     29    Left = 164
     30    Height = 30
     31    Top = 362
     32    Width = 90
     33    Align = alCustom
     34    Anchors = [akTop, akRight]
     35    AutoSize = True
     36    Caption = 'ToolBar1'
     37    EdgeBorders = []
     38    Flat = False
     39    ShowCaptions = True
    3640    TabOrder = 1
     41    object ToolButton1: TToolButton
     42      Left = 1
     43      Top = 2
     44      Caption = 'Shutdown'
     45      DropdownMenu = PopupMenu1
     46      OnClick = ToolButton1Click
     47      Style = tbsDropDown
     48    end
    3749  end
    38   object ButtonReboot: TButton
    39     Left = 112
    40     Height = 31
    41     Top = 362
    42     Width = 94
    43     Anchors = [akLeft, akBottom]
    44     Caption = 'Reboot'
    45     OnClick = ButtonRebootClick
    46     TabOrder = 2
     50  object PopupMenu1: TPopupMenu
     51    left = 111
     52    top = 278
     53    object MenuItemReboot: TMenuItem
     54      Caption = 'Reboot'
     55      OnClick = MenuItemRebootClick
     56    end
    4757  end
    4858end
Note: See TracChangeset for help on using the changeset viewer.