Thread: GUI programming
View Single Post
  #5  
Old 02-16-2012, 07:42 PM
mmx64 mmx64 is offline
Member
 
Join Date: Aug 2009
Posts: 58
Default

Hi, thanks that helps a lot.

I have created a component, where i draw my background, my grid lines..... Everything is ok.(i have a bitmap, where i draw my things and on paint event i draw it to canvas)
I am displaying data from an array of byte.
Code:
for i := offset to offset+width do
      begin
        ...draw(myDataArray[i]);
      end;

I still need:
1. to create a line from top to bottom of my bitmap, and to be able to drag (left - right) by mouse, where the location on the bitmap is the address from my array.
2. If i click on my "line" and drag it , i need to make a selection with it.

If anyone has any idea how should i implement it, please share. Thanks!!!
Attached Images
File Type: jpg ss1.jpg (20.1 KB, 8 views)

Last edited by mmx64; 02-16-2012 at 07:46 PM.
Reply With Quote