Hello Mark,
The only way I found is to launch this scada basic script at project startup:
Sub Main()
Window("MAIN", -5, -5, 2000, 1000);
End Sub
Meaning, looks like the trick is to not remove the gray border but just shifting the workspace hiding it!
Thanks,it can satisfy customer's requirement.
And the customer also find another trick(VBA) to do this:
Option Explicit
Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Const HWND_BOTTOM = 1
Const HWND_NOTOPMOST = -2
Const HWND_TOP = 0
Const HWND_TOPMOST = -1
Const SWP_NOSIZE = &H1
Const SWP_NOMOVE = &H2
Const SWP_NOACTIVATE = &H10
Const SWP_SHOWWINDOW = &H40
Private Sub fvProject_StartupComplete()
Call SetBorder
End Sub
Public Function SetBorder() As Boolean
SetBorder = SetWindowPos(FindWindow(vbNullString, "PcVue - Main window - ARC Informatique"), HWND_NOTOPMOST, -3, -3, 2000, 2000, SWP_SHOWWINDOW)
End Function
BR,
Mark
Or "why making simple if you can make complicated"
Ludo solution: 1 line using internal instruction
Window("MAIN", -5, -5, 2000, 1000);
Customer solution: 20 lines using external system dlls
:cheer: :cheer: :cheer:
God knows, maybe the customer wants to show his ability of using VBA. :cheer: :cheer:






