Skip to content

Commit

Permalink
Improved: The names of all selected controls are displayed in the Pro…
Browse files Browse the repository at this point in the history
…perties and Events window.
  • Loading branch information
XusinboyBekchanov committed Aug 16, 2022
1 parent ba34132 commit 1c1cd35
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/TabWindow.bas
Original file line number Diff line number Diff line change
Expand Up @@ -1541,9 +1541,14 @@ Sub DesignerChangeSelection(ByRef Sender As Designer, Ctrl As Any Ptr, iLeft As
bNotFunctionChange = True
If tb->Des->Symbols(Ctrl) AndAlso tb->Des->Symbols(Ctrl)->ReadPropertyFunc <> 0 Then
Dim As String SelControlName = WGet(tb->Des->Symbols(Ctrl)->ReadPropertyFunc(Ctrl, "Name"))
tbProperties.Buttons.Item("SelControlName")->Caption = SelControlName
tbEvents.Buttons.Item("SelControlName")->Caption = SelControlName
Dim As String SelControlNames = SelControlName
tb->cboClass.ItemIndex = tb->cboClass.Items.IndexOf(SelControlName)
For i As Integer = 0 To SelectedCount - 1
If Sender.SelectedControls.Item(i) = Sender.SelectedControl Then Continue For
SelControlNames = SelControlNames & ", " & WGet(tb->Des->Symbols(Sender.SelectedControls.Item(i))->ReadPropertyFunc(Sender.SelectedControls.Item(i), "Name"))
Next
tbProperties.Buttons.Item("SelControlName")->Caption = SelControlNames
tbEvents.Buttons.Item("SelControlName")->Caption = SelControlNames
End If
tb->FillAllProperties
If Sender.SelectedControls.Contains(Sender.SelectedControl) Then
Expand Down

0 comments on commit 1c1cd35

Please sign in to comment.