Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-10

Some properties doesn't get saved

6 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jesus Reyes
to Jens Arm: Hi If I change the fixedrows/fixedcols-property of the tstringgrid they aren't saved in…

--- Jens Arm escribi�: > Hi

Show quoted text 7 lines
If I change the fixedrows/fixedcols-property of the tstringgrid they aren't saved in the *.lrs. If I change the Scrollbars property nothing happens. Jens

fixedrows/fixedcols are saved here, however there is a problem when fixedrows/cols are >= 5.

suppose that i set rowcount=10, fixedrows=5 and save the project, in the lfm file i get something like this:
...
COLCOUNT = 3
DEFAULTCOLWIDTH = 64
DEFAULTDRAWING = False
DEFAULTROWHEIGHT = 24
FIXEDCOLOR = -2147483633
FIXEDCOLS = 2
FIXEDROWS = 5
GRIDLINEWIDTH = 0
OPTIONS = [gofixedvertline, ... ]
PARENTCTL3D = False
ROWCOUNT = 10
...

As a grid is created with 5 cols/rows by default, lazarus reads properties as it find it in the lfm file (which are alphabetically sorted I think) so when lazarus try to set fixedRows to 5 it show a messagebox because the rule: FixedRows can't be >= RowCount.

so, how can I 'force' RowCount to appear before FixedRows in the lfm file? or should I find another way using the component state?

About the scrollbars it's a gtk interface issue, you can make the scrollbars to show but they won't hide, you can't even get the scrollbar size :( ( or there is a way? )

by the way, does someone noticed that using clwindow color produces black backgrounds?. checkout the color combobox in object inspector.

regards.

Jesus Reyes A.

_________________________________________________________ Do You Yahoo!?
La mejor conexi�n a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx

Reply by email

Mattias Gaertner
to Jens Arm: Hi If I change the fixedrows/fixedcols-property of the tstringgrid they aren't saved in…
Show quoted text 31 lines
--- Jens Arm escribi�: > Hi > > If I change the fixedrows/fixedcols-property of the tstringgrid > they aren't saved in the *.lrs. > If I change the Scrollbars property nothing happens. > > Jens > fixedrows/fixedcols are saved here, however there is a problem when fixedrows/cols are >= 5. suppose that i set rowcount=10, fixedrows=5 and save the project, in the lfm file i get something like this: ... COLCOUNT = 3 DEFAULTCOLWIDTH = 64 DEFAULTDRAWING = False DEFAULTROWHEIGHT = 24 FIXEDCOLOR = -2147483633 FIXEDCOLS = 2 FIXEDROWS = 5 GRIDLINEWIDTH = 0 OPTIONS = [gofixedvertline, ... ] PARENTCTL3D = False ROWCOUNT = 10 ... As a grid is created with 5 cols/rows by default, lazarus reads properties as it find it in the lfm file (which are alphabetically sorted I think)

Not neccessarily.

Show quoted text 5 lines
so when lazarus try to set fixedRows to 5 it show a messagebox because the rule: FixedRows can't be >= RowCount. so, how can I 'force' RowCount to appear before FixedRows in the lfm file? or should I find another way using the component state?

This is a common problem during loading. Normal solution: When the csLoading flag is set, store the new value, override Loaded and set it there.

About the scrollbars it's a gtk interface issue, you can make the scrollbars to show but they won't hide

Not completely implemented yet.

, you can't even get the scrollbar size :( ( or there is a way? )
  Width := GetSystemMetrics(SM_CXHSCROLL);
  Height := GetSystemMetrics(SM_CYHSCROLL);

Keep in mind that these values can change during runtime and that the call is not very fast.

by the way, does someone noticed that using clwindow color produces black backgrounds?. checkout the color combobox in object inspector.

The color depends on your theme. The gtk-interface uses a special widget, that most themes forget to set. There is a discussion in the devel list how to fix this. I hope to improve it next week.

Mattias

Reply by email

Jens Arm

Hi

If I change the fixedrows/fixedcols-property of the tstringgrid they aren't saved in the *.lrs. If I change the Scrollbars property nothing happens.

Jens

Reply by email

Jens Arm
to Jens Arm
Show quoted text 9 lines
> If I change the fixedrows/fixedcols-property of the tstringgrid > they aren't saved in the *.lrs. > If I change the Scrollbars property nothing happens. > > Jens > fixedrows/fixedcols are saved here, however there is a problem when fixedrows/cols are >= 5.

I set they to 0 and they aren't saved.

Jens

Reply by email