Quantcast
Viewing all articles
Browse latest Browse all 3860

Getting Window.Type

Hello,
I’m trying to convert this old program code to API 2. Unfortunately, I’ve failed so far. This code isn’t mine, I’m just trying to make it usable. When I try to replace ‘Window.Frame’ with ‘Window.Type’, I get the error message: ‘Expected Int64, but got enum DesktopWindow.Types’. What exactly am I doing wrong? Does the Windows.Type ‘Modal’ even exist?
Thank you very much in advance for your efforts.

This is the code in question:

Select Case self.Window.Frame
  
 Case Window.FrameTypeModal, FrameTypeModal, Window.FrameTypeMovableModal, Window.FrameTypeSheet, Window.FrameTypeGlobalFloating
  
  Dim u As new UI_PopupMenuModalWindow
  u.Show(X, Y, Height-MyStyle.BorderWidth*2, me, List(), ListIndex, True, True)
  
Else
  
  Dim u As new UI_PopupMenuWindow
  u.Show(X, Y, Height-MyStyle.BorderWidth*2, me, List(), ListIndex, True, True)
  
End Select

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 3860

Trending Articles