Jump to content

Get if uniDBGrid.MouseUP is on Body


irigsoft

Recommended Posts

Hi,

We use OnMouseUp as function to Show SmallForm with mouse coordinates.

 

But a problem ocure.

When click on Title, ScrollBars (Out of Body) we show SmallForm

 

How can show SmallForm with Mouse cordinates by BodyClick ?

 

I dont want to show Screen mast when click on DBGrid scroll.

Link to comment
Share on other sites

When I use uniDBGrid.OnMouseUp and click on ScrollBar its activate Form.ScreenMask,

If I use uniDBGrid.OnClick and click on ScrollBar its not activate Form.ScreenMask.

 

I replace uniDBGrid.OnMouseUp with uniDBGrid.OnClick, but If I want to use uniDBGrid.OnMouseUp,

how to determinate when Mouse.Up Is on BODY?

Link to comment
Share on other sites

Can I check this with delphi code:

 

uniDBGrid.OnMouseUp ();

begin

UniMainModule.IsOnDBGridBody := (X < TUniStringGrid (Sender).ScrollBar.Left)

                                AND (Y > TUniDBGrid (Sender).Title.Hight)
                                AND (Y < (TUniDBGrid (Sender).Pages.Top + TUniStringGrid (Sender).ScrollBar.Top))
 
If not UniMainModule.IsOnDBGridBody  then exit;
end;
Link to comment
Share on other sites

 

Can I check this with delphi code:

 

uniDBGrid.OnMouseUp ();

begin

UniMainModule.IsOnDBGridBody := (X < TUniStringGrid (Sender).ScrollBar.Left)

                                AND (Y > TUniDBGrid (Sender).Title.Hight)
                                AND (Y < (TUniDBGrid (Sender).Pages.Top + TUniStringGrid (Sender).ScrollBar.Top))
 
If not UniMainModule.IsOnDBGridBody  then exit;
end;

 

 

This code is not very clear to me

Link to comment
Share on other sites

Problem is:

when I get Mouse coordinates execute a long time procedure.

and Form show Screen mask , this is exact way I want to work.

But If table have more rows User must use scrollbar to move to the record 

when click on ScrollBAr activate longtime Procedure.

 

1. If User want to use scrollbar must wait procedure

2. If User click on DBGrid Tittle longtime procedure start

3. If click on Page buttons - longtime procedure start

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...