我正在尝试为绘制网络创建一个环境。我使用按钮作为节点和LineShapes作为连接。当我按住Ctrl +单击按钮时,我可以在面板中绘制lineShapes(来自visual basic powerpacks),但我的问题是,当我尝试滚动面板(它只是AutoScroll)时,线条会以某种方式加倍。我会发布图片,但我的声誉太低了:(
好像将一个绘制到面板中,另一个绘制到shapeContainer中。我试着将它们的尺寸写入标签,发现它们是不同的。 ShapeContainer1是(宽度:647,高度:292)和splitContainer2-> Panel1(宽度:666,高度:236)。我尝试将shapeStainer的AutoScroll和AutoSize更改为true,但仍然没有:
this->shapeContainer1->AutoScroll = true;
this->shapeContainer1->AutoSize = true;
this->shapeContainer1->Location = System::Drawing::Point(1, 1);
this->shapeContainer1->Margin = System::Windows::Forms::Padding(0);
this->shapeContainer1->Name = L"shapeContainer1";
this->shapeContainer1->Size = System::Drawing::Size(664, 234);
this->shapeContainer1->TabIndex = 3;
this->shapeContainer1->TabStop = false;
我该怎么办? :)