INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Resize MJ9 Window  (Read 1711 times)

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20063
Resize MJ9 Window
« on: May 10, 2003, 02:46:05 pm »

Is There A Way To Resize MJ9's Window To Wrap Around The Plug-In

Also On The Same Note

Is There Away To Detect The Size Of MJ9 Winow To Allow The Resize Of The Plug-in?
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
Re: Resize MJ9 Window
« Reply #1 on: May 11, 2003, 09:49:23 pm »

King,

You use the resize event of your usercontrol to resize your controls.

Here's what I did in the VB version of AV:


Private Sub UserControl_Resize()
Dim lLoop1          As Long
Dim lTop            As Long

#If INC_DEBUG = True Then
g_Debug.Push UserControl.Name & "::UserControl_Resize"
#End If

   On Error Resume Next

   '  Set the smartui
   suiMenu.width = UserControl.width
   suiToolbar.width = UserControl.width
   
   lTop = suiToolbar.Top + suiToolbar.Height
   
   '  Set the containers?
   If g_bCalledInit Then
       For lLoop1 = ViewContainer.LBound To ViewContainer.UBound
           With ViewContainer(lLoop1)
               .Move 0, lTop, UserControl.width, UserControl.Height - lTop
               .Refresh
           End With
       Next
   End If

   '  Refresh
'    OutputDebugString "redraw"
'    tools_Control_RedrawWindowEx UserControl.hWnd

#If INC_DEBUG = True Then
g_Debug.Pop , "UserControl_Resize"
#End If
End Sub

Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20063
Re: Resize MJ9 Window
« Reply #2 on: May 12, 2003, 02:03:40 am »

Ok, thanks.

I think i will play with that
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA
Pages: [1]   Go Up