Update Workspace.class

This commit is contained in:
Jorge Carrión Molpeceres 2019-03-11 18:30:59 +00:00
parent eb8c871740
commit 523effc9fe

View file

@ -4,7 +4,7 @@ Export
Inherits UserControl
Public Const _Properties As String = "*,Orientation{Align.Top;Bottom}=Top,Image,Border=True"
Public Const _Properties As String = "*,Orientation{Align.Top;Bottom}=Top,Image,Border=True,CloseButton=True"
Public Const _DefaultEvent As String = "Activate"
Public Const _Group As String = "Special"
@ -24,6 +24,7 @@ Property Border As Boolean
Property Image As Image
Property Picture As Picture
Property CloseWithMouse As Boolean
Property CloseButton As Boolean ''if false the close all tabs button is not shown
Static Private $bPictureWarning As Boolean
@ -260,3 +261,15 @@ Private Sub CloseWithMouse_Write(Value As Boolean)
$hWorkspace.SetCloseWithMouse(Value)
End
Private Function CloseButton_Read() As Boolean
Return $hWorkspace.CloseButton
End
Private Sub CloseButton_Write(Value As Boolean)
$hWorkspace.CloseButton = Value
End