1 (edited by prahousefamily 2017-09-14 00:46:52)

Topic: How to Edit Grid Style Slide

In   MVD  TableGrid  have class GridStyle : GsSlides

how to edit and show slide in tablegrid

http://dn.bergsoft.net/res/uploads/nextgrid-slide-style-tutorial/slides_sample.gif
Reference
http://dn.bergsoft.net/nextgrid-slide-s … torial.htm

My Visual Database : I Love You
Easy For Beginner Student For Me

Re: How to Edit Grid Style Slide

prahousefamily wrote:

In   MVD  TableGrid  have class GridStyle : GsSlides

how to edit and show slide in tablegrid

http://dn.bergsoft.net/res/uploads/nextgrid-slide-style-tutorial/slides_sample.gif
Reference
http://dn.bergsoft.net/nextgrid-slide-s … torial.htm


Thanks for the post prahousefamily...
It's nice but is it possible in MVD?

Adam
God... please help me become the person my dog thinks I am.

Re: How to Edit Grid Style Slide

Please download latest beta version 3.7b
https://www.dropbox.com/s/eef9rf7u08k63 … b.zip?dl=0



An example:

Post's attachments

Attachment icon Slide Grid.zip 29.57 kb, 2727 downloads since 2017-09-18 

Dmitry.

4 (edited by AD1408 2017-09-22 02:50:53)

Re: How to Edit Grid Style Slide

Hi Dmitry,


Thank you very much for the updated MVD and sample project..........


I have tried to add image field to the slide grid but failed?


--------------------------------------------------------------
EDIT:
Done, I was missing calculated photo field on person table.
https://i.imgur.com/8BUhBec.png


It's bit of a riddle getting field coordinates correct. It'd be nice to have next grid visual editor within mvd so that we can just visually drop, resize and move them on grid as needed.

Adam
God... please help me become the person my dog thinks I am.

5 (edited by AD1408 2017-09-22 11:06:48)

Re: How to Edit Grid Style Slide

Is it possible to have a bottom spacing on slide tGrid cells?


https://s26.postimg.org/47bcpajah/zzzzz_Temp60.png


As it can be seen on the image above, when content of notes field takes more space than specified height, it looks ugly.


I have tried adding bottom spacing with:

Form1.GridSearch.Columns[7].SlideBounds.Bottom := 16;

but didn't work, I guess there is no bottom function on tGrid or I'm applying it incorrectly


Tried with line spacing below but it didn't work too:

procedure gridSearchOnChange03;
var i, c: integer;
begin
for i := 0 to c do
  begin
    c := Form1.GridSearch.Columns.Count - 1;
    Form1.GridSearch.Cells[7,i] := Form1.GridSearch.Cells[0,i]+#10#13;
    Form1.GridSearch.BestFitRow(i);
  end;
end;

Could there be another approach by way of specifying maximum character count display on a specified tGrid cell? If so how?

Adam
God... please help me become the person my dog thinks I am.

Re: How to Edit Grid Style Slide

maybe it will solve the problem of changing the height of the slides?

procedure Form1_GridSearch_OnChange (Sender: string);
begin
Form1.GridSearch.SlideSize := 150; // height of slides
end;

Re: How to Edit Grid Style Slide

Bullet3203 wrote:

maybe it will solve the problem of changing the height of the slides?

procedure Form1_GridSearch_OnChange (Sender: string);
begin
Form1.GridSearch.SlideSize := 150; // height of slides
end;

Thanks Bullet3203...
Notes field is a memo text field. Text length will wary. Therefore increasing slide size will not solve the issue.


Best solution I can think of atm is to limit text display for notes on slide tGrid (not on actual notes entry form) by specifying maximum characters to be displayed.


Hopefully Dmitry can offer a solution.

Adam
God... please help me become the person my dog thinks I am.

Re: How to Edit Grid Style Slide

Check out height of field (Notes)

Form1.GridSearch.Columns[3].SlideBounds.Height := 50;

I think you should reduce height of field.

Dmitry.