Jump to content


Photo

coShowTextFitHint focus problem


  • Please log in to reply
23 replies to this topic

#1 MaW

MaW
  • Members
  • 15 posts

Posted 26 July 2007 - 05:50 PM

I have following bug:
-> coShowTextFitHint = true
-> myProgram is in background (etc. Explorer.exe has the focus)
-> move the mouse over the cell in myProgram (only cells where the text ist longer as the cell)

the form in myProgram will close (like self.close)

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 26 July 2007 - 06:27 PM

Hello Maw,

Hm, for me all work fine, also nobody have report this yet. Can you please tell me is this happen when you set Header.Hint property too.

Also, I am thinking about to disable hints when application is not in focus.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 26 July 2007 - 06:32 PM

Update: I have add:

CODE
if not Application.Active then Exit;


at begin of next 2 procedures in NxCustomGrid.pas:

procedure TNxCustomGrid.ShowColumnHint(X, Y: Integer; Text: string);
procedure TNxCustomGrid.ShowCellTextFitHint(ACol, ARow: Integer);

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#4 MaW

MaW
  • Members
  • 15 posts

Posted 26 July 2007 - 06:54 PM

Yes in Header Hint, too.

I use W2K

I don´t have the NxCustomGrid.pas. I use the Free Version 4.0.1.

#5 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 26 July 2007 - 07:02 PM

Hello Maw,

I have add this checking and I hope that now all will be fine. I will update files in few days again.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#6 MaW

MaW
  • Members
  • 15 posts

Posted 27 July 2007 - 01:15 PM

Update:

the error happens only, when you have 2 Forms with nextgrig in each case (with coShowTextFitHint is active).

Look the movie in Attachments

Attached Files



#7 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 27 July 2007 - 02:16 PM

Hello Maw,

I will re-upload today new version on site and you will be able to test it. Thank you.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#8 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 29 July 2007 - 04:50 AM

Hello Maw,

I have re-upload free version on site. You may download it now again.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#9 MaW

MaW
  • Members
  • 15 posts

Posted 30 July 2007 - 11:54 AM

Doesn`t work. Tested with this File (nextgrid_d7.exe 29. Juli 2007, 01:46:40)

Test with this code. (Attachment)

Attached Files



#10 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 30 July 2007 - 02:35 PM

Hello Maw,

I see now. It will be ready in few minutes.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#11 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 30 July 2007 - 02:58 PM

Hello Maw,

I have re-upload delphi 7 version on my site and please look again on it.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#12 MaW

MaW
  • Members
  • 15 posts

Posted 30 July 2007 - 03:15 PM

Sorry the same error

#13 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 30 July 2007 - 03:33 PM

Hello Maw,

Please check attached file. Please run exe first and then compile source code and tell me if it happen in both files.

Best regards

Attached Files


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#14 MaW

MaW
  • Members
  • 15 posts

Posted 30 July 2007 - 04:23 PM

First exe works.

self compiled Version doesn`t work.

#15 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 30 July 2007 - 04:35 PM

Hello Maw,

Maybe I didn't send you correct version, or your browser have download old file. I will now compile nextgrid again and attach file here.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#16 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 30 July 2007 - 04:45 PM

Here is a new file:

Attached Files


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#17 MaW

MaW
  • Members
  • 15 posts

Posted 30 July 2007 - 05:00 PM

No file!

I downloaded an install, again.

In myProgram works now fine, but in my SampleProg the same Error.

I have another Problem in myProgram, but think that is the SelectedColumn -1 problem.

#18 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 30 July 2007 - 05:10 PM

Hello Maw,

It seems that forum software have block exe file sad.gif

SelectedColumn is now again 0. Can you give me more details about this program?

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#19 MaW

MaW
  • Members
  • 15 posts

Posted 30 July 2007 - 05:19 PM

OK. It was my Error.

I use this code

CODE
procedure Tfrm_login.ng_benutzerDeselectCell(Sender: TObject; ACol,
  ARow: Integer);
begin
  ng_benutzer.Columns.Item[2].Font.Color:=cl3DLight;
  ng_benutzer.Cell[3,ARow].AsString:='';
end;


If I have selectedRow=-1 then I get a error.

Now it works.

CODE
procedure Tfrm_login.ng_benutzerDeselectCell(Sender: TObject; ACol,
  ARow: Integer);
begin
  if (ARow>=0) then
  begin
   ng_benutzer.Columns.Item[2].Font.Color:=cl3DLight;
   ng_benutzer.Cell[3,ARow].AsString:='';
  end;
end;


the same in onClick event, when table is empty.

#20 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 30 July 2007 - 05:28 PM

Hello Maw,

This is related to SelectedRow = -1 wink.gif

I will now add some checking when SelectedRow is -1 and then to not call DoDeselectCell event.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users