Jump to content


Photo

Few minor problems with grid in slide mode


  • Please log in to reply
90 replies to this topic

#61 Saurman

Saurman
  • Members
  • 44 posts

Posted 27 January 2008 - 01:20 PM

y0, Boki!!!

#62 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 27 January 2008 - 08:54 PM

QUOTE (Saurman @ Jan 19 2008, 12:50 PM) <{POST_SNAPBACK}>
Hey Boki, here is my problem.

I have a grid with over 2k rows. I am doing full update and this moves a position of the scrollbar and selecting. How can i restore last view of the grid (a range of the viewable rows before grid update) after update?


Hello Saurman,

I am not sure that I understand this question completelly.

You may store SelectedRow property into some temporal variable and when you finish with update set SelectedRow := TempVar and use ScrollToRow(SelectedRow) to scroll to this row.

I hope that this helps,

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.

#63 Saurman

Saurman
  • Members
  • 44 posts

Posted 28 January 2008 - 12:43 AM

but this doesnt restore exact position. What i were scrolling down without selecting rows and suddenly a refresh occured, it will move me back to my last selection which is annoying. Any workaround?

#64 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 28 January 2008 - 08:22 PM

QUOTE (Saurman @ Jan 28 2008, 12:43 AM) <{POST_SNAPBACK}>
but this doesnt restore exact position. What i were scrolling down without selecting rows and suddenly a refresh occured, it will move me back to my last selection which is annoying. Any workaround?


Hello Saurman,

Maybe you can remember value of property FirstRow (indicate first visible row), and then after update (delete and add new rows?) scroll again to this row.

I hope that this helps,

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.

#65 Saurman

Saurman
  • Members
  • 44 posts

Posted 28 January 2008 - 11:20 PM

maybe u can make a position of scroller public, so we can edit it directly?

#66 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 29 January 2008 - 12:50 AM

Hello Saurman,

There is also a property:

CODE
NextGrid1.VertScrollBar.Position


Maybe this is what you need.

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.

#67 Saurman

Saurman
  • Members
  • 44 posts

Posted 06 February 2008 - 10:55 AM

Boki, i cant make grid to show russian characters in header and cells. Any ideas?

#68 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 06 February 2008 - 02:24 PM

Hello Saurman,

You should be able to type unicode characters inside property if you have Delphi 2005 or up.

If you have Delphi 6 or 7. You may do next:

Open NxGridReg.pas file and you will locate 2 lines which are used for multi-line headers editor. Comment this 2 lines and re-compile packages.

Now you will be able to type unicode characters.

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.

#69 Saurman

Saurman
  • Members
  • 44 posts

Posted 06 February 2008 - 03:02 PM

they arent unicode, just another charset. The problem that they are not diplayed correctly in nextgrid while they work just fine in standart controls

#70 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 06 February 2008 - 03:04 PM

Hello Saurman,

Maybe disabling this 2 lines will help in this case too (?)

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.

#71 Saurman

Saurman
  • Members
  • 44 posts

Posted 06 February 2008 - 03:54 PM

nah, this doesnt solve the problem with header nor with cells.

I guess ill have to use ListView sad.gif

#72 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 06 February 2008 - 04:32 PM

Hello Saurman,

I never use charsets very much since unicode is here for long time, and I am using Cyrillic letters without a problem with Unicode.

Can you please send me a one sample form with 2 TPanel's on it. Set on one Russian charset and send it to me. Thanks.

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.

#73 Saurman

Saurman
  • Members
  • 44 posts

Posted 06 February 2008 - 04:36 PM

this maybe due to enlgish VISTA, but i have set russian unicode by default.

#74 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 08 February 2008 - 10:50 PM

Hello Saurman,

With unicode support, I am able to type letters like: Ñ?пшђфгчћљњ

For long-term, I suggest using unicode.

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.

#75 Saurman

Saurman
  • Members
  • 44 posts

Posted 09 February 2008 - 04:11 AM

well Boki, i tryed following:
1) assign russian word in design time to grid header
2) assign russian word in run time to grid header and cell (using AsString)
3) assign russian word in run time to grid cell (using Widestring cell property)
4) manually settting locale to russian (SetThreadLocal($419) on form create)

Doesnt work for me

#76 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 09 February 2008 - 05:14 AM

Hello Saurman,

In design-time, you need to:

(Disable 2 lines mentioned before in NxGridReg.pas)

1) Set grid's font to be unicode (Tahoma, Verdana...)
2) Set keyboard to desired with using Language Bar (or press Alt+Shift)
3) Type letters inside Header.Caption property.

In run-time, things are a little bit more complicated, because Delphi editor doesn't suppor unicode well, but you will be able to Assign value from other unicode control (like TNT Editors) into Cell, Header, Footer. You will be also able to Load data from unicode file.

I forgot to mention, that if you have Delphi 2006 (maybe even D2005), you may simply type inside editor:

CODE
  NxHeaderPanel1.Caption := 'кокошка';


and it will work too.

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.

#77 Saurman

Saurman
  • Members
  • 44 posts

Posted 19 March 2008 - 03:44 PM

Hey Boki,
just noticed there is a new version of grid. Does it have fixed an issues we discussed later as for threads for repainting grid and BeginUpdate/EndUpdate functions? Also, i cant find a detailed change log sad.gif

#78 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 19 March 2008 - 07:16 PM

Hello Saurman,

Unfortunately, this bug is not yet fixed. You may read History.txt file (located in same dir where components are extracted) for changes list.

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.

#79 Saurman

Saurman
  • Members
  • 44 posts

Posted 20 May 2008 - 12:52 PM

Hey Boki,
few questions:

1) how is it going with that bug i had (repainting grid and BeginUpdate/EndUpdate functions)
2) how i can show memo field content in slides mode? (i see (MEMO), in TMS i can use ShowMemo=True)
3) is there free grid for D2007?

Cheers

#80 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 20 May 2008 - 05:15 PM

Hello Saurman,

I have work on slide problems before 1 release and I hope that now things are better.

If you are thinking about NextDBGrid Db-Memo column there is a property for this MemoDisplayOptions.

Unfortunatelly, free version for Delphi 6 and 7 only exist.

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