Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3963

DesktopPabPanel Close

$
0
0

Good afternoon (o;

Digged out a rather old project where I load several Verilog text files into a DesktopTabPanel.

Similar software application use a close “X” in the tabs, but there isn’t an event available which could handle that…

So far I came only up with the solution to use ConstructContextualMenu event and check if the mouse is inside the panel and the selected panel isn’t 0:

ConsoleArea.Text = "ConstructContextualMenu: " + Str(x) + "," + Str(y)
If y > 40 And TabPanelDocuments.SelectedPanelIndex > 0 Then
  base.AddMenu(New DesktopMenuItem("Close File: " + Str(TabPanelDocuments.CaptionAt(TabPanelDocuments.SelectedPanelIndex))))
End If

Anyone has a more elegant way?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 3963

Trending Articles