Skip to content

App/SB/Windows hang using Shapes.Move on TextBox in LDEvents.Resized w/ GraphicsWindow  #37

@sjsepan3

Description

@sjsepan3

When resizing GraphicsWindow and moving controls with Shapes.Move, App locks up, and must restart windows.

What follows is a series of tests (5), where 1-4 are ok, and 5 exhibits error:
=====1========
Minimal app, LitDev Extensions libs not enabled in lib folder (renamed)

no error

GraphicsWindow.Width = 800 'set before adding controls w/ positions based on size; also seems to paint 
BackgroundColor better
GraphicsWindow.Height = 600

'-------Controls---------

'LDEvents.Resized = GraphicsWindow_OnResized

'-----------Init----------

GraphicsWindow.Show()

'------------Event Handlers---------------

Sub GraphicsWindow_OnResized
  'resize client area and controls 
  'Shapes.Move(txtStatusMessage, 0, GraphicsWindow.Height-25)
EndSub

=====2==========
Minimal app, LitDev Extensions libs enabled in lib folder (not renamed)

no error

GraphicsWindow.Width = 800 'set before adding controls w/ positions based on size; also seems to paint 
BackgroundColor better
GraphicsWindow.Height = 600

'-------Controls---------

'LDEvents.Resized = GraphicsWindow_OnResized

'-----------Init----------

GraphicsWindow.Show()

'------------Event Handlers---------------

Sub GraphicsWindow_OnResized
  'resize client area and controls 
  'Shapes.Move(txtStatusMessage, 0, GraphicsWindow.Height-25)
EndSub

=====3==========
Minimal app, LitDev Extensions libs enabled in lib folder (not renamed), resize event wired

no error

GraphicsWindow.Width = 800 'set before adding controls w/ positions based on size; also seems to paint 
BackgroundColor better
GraphicsWindow.Height = 600

'-------Controls---------

LDEvents.Resized = GraphicsWindow_OnResized

'-----------Init----------

GraphicsWindow.Show()

'------------Event Handlers---------------

Sub GraphicsWindow_OnResized
  'resize client area and controls 
  'Shapes.Move(txtStatusMessage, 0, GraphicsWindow.Height-25)
EndSub

=====4==========
Minimal app, LitDev Extensions libs enabled in lib folder (not renamed), resize event wired, control added

no error

GraphicsWindow.Width = 800 'set before adding controls w/ positions based on size; also seems to paint 
BackgroundColor better
GraphicsWindow.Height = 600

'-------Controls---------

txtStatusMessage = Controls.AddTextBox(0, GraphicsWindow.Height-25)

'-------Events---------

LDEvents.Resized = GraphicsWindow_OnResized

'-----------Init----------

GraphicsWindow.Show()

'------------Event Handlers---------------

Sub GraphicsWindow_OnResized
  'resize client area and controls 
  'Shapes.Move(txtStatusMessage, 0, GraphicsWindow.Height-25)
EndSub

=====5================
Minimal app, LitDev Extensions libs enabled in lib folder (not renamed), resize event wired, control added, and
control moved

error

GraphicsWindow.Width = 800 'set before adding controls w/ positions based on size; also seems to paint 
BackgroundColor better
GraphicsWindow.Height = 600

'-------Controls---------

txtStatusMessage = Controls.AddTextBox(0, GraphicsWindow.Height-25)

'-------Events---------

LDEvents.Resized = GraphicsWindow_OnResized

'-----------Init----------

GraphicsWindow.Show()

'------------Event Handlers---------------

Sub GraphicsWindow_OnResized
  'resize client area and controls 
  Shapes.Move(txtStatusMessage, 0, GraphicsWindow.Height-25)
EndSub

===============

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions