Jump to content


Photo

Column-Width with Slides


  • Please log in to reply
5 replies to this topic

#1 MasterEvil

MasterEvil
  • Members
  • 104 posts
  • Location:Germany

Posted 11 March 2007 - 01:25 PM

Hello Boki,

is there a easy way to have the width of a column in slide-mode adjusted to the width of the grid?

The problem is: I use slides in a grid and when I resize the grid (e.g. the user with a splitter) the text of a column stops at some point or draws over the edge (no word wrap "...").
The grid itself also has no OnResize Event where I could react to these changes, also this would be pretty difficult.

Did I miss something or is there a other way?

greetz
Steffen

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 11 March 2007 - 05:08 PM

Hello Steffen,

Unfortunately not, but I have add OnResize event in NxCustomGrid.pas (add one single line in published: property OnResize; ).

I think that it may be done easy. You will need to adjust SlideBounds to fit them inside grid.


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 MasterEvil

MasterEvil
  • Members
  • 104 posts
  • Location:Germany

Posted 13 March 2007 - 11:49 PM

Hello Boki,

thanks for your reply, but sadly the event is not firing sad.gif
Don't know why.

greetz
Steffen

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 15 March 2007 - 03:48 AM

Hello Steffen,

I will made one small demo today and send it to you. Stay tuned smile.gif

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.

#5 MasterEvil

MasterEvil
  • Members
  • 104 posts
  • Location:Germany

Posted 26 March 2007 - 11:05 PM

Hello Boki,

I didn't get any demo, but thanks anyway wink.gif
I helped me with a Panel below the Grid. This has a working OnResize Event and I set the Widths there.

Of course it would be better to have a working OnResize Event in the NextGrid.

Thanks again,
Steffen

#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 27 March 2007 - 12:57 AM

Hello Steffen,

Open NxCustomGrid.pas and find procedure for WM_SIZE

at the end of this procedure add:

CODE
inherited;


I hope that this help,

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.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users