-1

I wanted something like the attached scenario, where user can drag and drop a UI component(TImage) run time (Not from Tool Palette). We were using TScrollBox until now. However, I was not able to split it into two parts to accommodate the attached structure.

Components layout

We can have the second component in a row but it's optional. Also, the two components (row wise) should scroll in sync.

I was thinking to add two TScrollBox and use following code to synchronize vertical scrollbars: How to track scrolling of TScrollBox in Delphi

However, I couldn't find "Scrollbox1.VertScrollBar.Position" property.

Community
  • 1
  • 1
  • 5
    I think you need to explain a bit more the exact problem you're having. You can place two columns of, say, TEdits into a scrollbox from the Component Palette, and they all scroll in sync fine. Calculating the position a component should have when it's drag 'n dropped at r/time is trivial, so what's your problem. – MartynA Jul 20 '16 at 18:00

1 Answers1

-2

Put two TPanels in it. One aligned to right, and size another yourself.

enter image description here

Community
  • 1
  • 1
Edijs Kolesnikovičs
  • 1,627
  • 3
  • 18
  • 34