Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic I could not resizing controls (Read 1556 times)
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
I could not resizing controls
Apr 19th, 2009 at 2:47pm
Print Post  
dear Stoyo
I am adding controls into a digram by drag and drop
here is the code

Private Sub diagView_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs)
       bDragDrop = False
       Dim diagView As MindFusion.Diagramming.WinForms.DiagramView = CType(sender, MindFusion.Diagramming.WinForms.DiagramView)
       Dim lstBoxControl As NListBox = DirectCast(e.Data.GetData(GetType(NListBox)), NListBox)
       Try
           If lstBoxControl.SelectedIndex = -1 Then Exit Sub
           Dim mPoint As New Point(e.X, e.Y)
           Dim mP2Client As Point = diagView.PointToClient(mPoint)
           If UCase(lstBoxControl.Text) = "PANEL" Then
               insertPanelControl(diagView.Diagram, mP2Client.X, mP2Client.Y)
           Else
               insertControl(diagView.Diagram, lstBoxControl.Text, lstBoxControl.Tag, lstBoxControl.SelectedItemTag, mP2Client.X, mP2Client.Y)
               'AddControl(diagView.Diagram, lstBoxControl.Text, lstBoxControl.Tag, lstBoxControl.SelectedItemTag, mP2Client.X, mP2Client.Y)
           End If

       Catch ex As Exception
       End Try




but the added control I could not resize it
I do not why?


  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: I could not resizing controls
Reply #1 - Apr 20th, 2009 at 5:32am
Print Post  
What does the insertControl method do? To allow resizing nodes, set HandlesStyle to a value different than MoveOnly, and set the resize bits in EnabledHandles.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Re: I could not resizing controls
Reply #2 - Apr 20th, 2009 at 6:33am
Print Post  
It works fine

thanks Stoyo
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint