Jump to content


Photo

To Boki: Strange problem when the grid is inherited from base form


  • Please log in to reply
13 replies to this topic

#1 william

william
  • Members
  • 12 posts

Posted 22 June 2006 - 01:29 AM

Hi,

I had a base form with a TNxGrid/TNxDBGrid(2 columns: Flag and status column) on it. and when I create a desendant form from the base form, and try to change some of the properites of Flag or Status column on this desendant form, the grid columns were all screwed. and it looks like I can't change any column properties for the grid which inherited from the base form at designtime. Although I had NxGrid update files but I don't want to do it since I don't want to break any other code which is working fine for now. so Can Boki tell me what should I do to fix this bug/what should I do to change the source code to make it work. Thanks

William

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 22 June 2006 - 01:29 PM

Hello William,

Please send me small example on my email, or attach it here on forum, and I will fix it. Thank you.

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 william

william
  • Members
  • 12 posts

Posted 22 June 2006 - 06:19 PM

Hi, Berg

Here is the source to reproduce the problem.

1)Base form DFM text:

object Form1: TForm1
Left = 192
Top = 114
Width = 870
Height = 500
Caption = 'Form1'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
PixelsPerInch = 96
TextHeight = 13
object NextDBGrid1: TNextDBGrid
Left = 72
Top = 40
Width = 377
Height = 249
ParentColor = False
TabOrder = 0
TabStop = True
DataAwareOptions = [doAddColumns, doBufferRecords]
object colFlag: TNxDBImageColumn
Color = clWindow
DefaultValue = '0'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
Footer.Color = clWindow
Header.Color = clBtnFace
ParentFont = False
Position = 0
SortType = stNumeric
DataAwareOptions = [daAutoAssign]
Transparent = True
end
object colStatus: TNxDBImageColumn
Color = clWindow
DefaultValue = '0'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
Footer.Color = clWindow
Header.Color = clBtnFace
ParentFont = False
Position = 1
SortType = stNumeric
DataAwareOptions = [daAutoAssign]
Transparent = True
end
end
end


2)decendant form DFM text:

inherited Form2: TForm2
Left = 226
Top = 183
Caption = 'Form2'
OldCreateOrder = True
PixelsPerInch = 96
TextHeight = 13
inherited NextDBGrid1: TNextDBGrid
Left = 128
Top = 72
inherited colFlag: TNxDBImageColumn
DefaultWidth = 35
Width = 35
end
inherited colStatus: TNxDBImageColumn
DefaultWidth = 36
Header.Caption = '!'
Width = 36
end
object colCode: TNxDBTextColumn
Color = clWindow
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
Footer.Color = clWindow
Header.Color = clBtnFace
Header.Caption = 'Code'
Options = [coCanClick, coCanSort, coCanInput, coPublicUsing, coShowTextFitHint]
ParentFont = False
Position = 2
SortType = stAlphabetic
DataAwareOptions = [daAutoAssign]
AutoExecute = False
end
object colDescription: TNxDBTextColumn
Color = clWindow
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
Footer.Color = clWindow
Header.Color = clBtnFace
Header.Caption = 'Description'
Options = [coCanClick, coCanSort, coCanInput, coPublicUsing, coShowTextFitHint]
ParentFont = False
Position = 3
SortType = stAlphabetic
DataAwareOptions = [daAutoAssign]
AutoExecute = False
end
end
end


As you may notice that in the Form2, there are 2 inherited ones:

inherited colFlag: TNxDBImageColumn
DefaultWidth = 35
Width = 35
end

inherited colStatus: TNxDBImageColumn
DefaultWidth = 36
Header.Caption = '!'
Width = 36
end

I think that is where causing the problem. remove these 2 inherited will solve the problem, but ...


Thanks

P.S. Please post the fixed code here to let me know where I should fix it. so I can change them manually since I don't want to take the risk to upgrade to a new release.

William

Attached Files



#4 william

william
  • Members
  • 12 posts

Posted 24 June 2006 - 04:50 PM

Hi, Boki

Any news to fix?

William

#5 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 24 June 2006 - 04:56 PM

Hello William,

Not yet, I think that problem is in loading childrens from stram. I hope that I can fix it easy. Maybe it will tako some time sad.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.

#6 william

william
  • Members
  • 12 posts

Posted 04 July 2006 - 08:58 PM

QUOTE (Boki (Berg) @ Jun 24 2006, 04:56 PM) <{POST_SNAPBACK}>
Hello William,

Not yet, I think that problem is in loading childrens from stram. I hope that I can fix it easy. Maybe it will tako some time sad.gif

regards


Hi, Boki

Any news about this? I want this being fixed since all my projects was hold.

Thanks

William

#7 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 04 July 2006 - 09:45 PM

Hello William,

I will try to have it in new version. You will be notified when it is fixed.

Thank you

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 william

william
  • Members
  • 12 posts

Posted 05 July 2006 - 01:33 AM

QUOTE (Boki (Berg) @ Jul 4 2006, 09:45 PM) <{POST_SNAPBACK}>
Hello William,

I will try to have it in new version. You will be notified when it is fixed.

Thank you

regards


Hi, Boki

If you made the fix, Could you please post the fix here? since I don't want to take the risk for upgrading to new release because my products will go to live as soon as you get this fix.

Thanks

William

#9 william

william
  • Members
  • 12 posts

Posted 12 July 2006 - 07:27 PM

Hi, Boki

Have you fix this problem yet?

William

#10 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 13 July 2006 - 04:27 AM

Hello William,

Not yet, but I am working on it. It is quite strange problem sad.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.

#11 william

william
  • Members
  • 12 posts

Posted 16 August 2006 - 09:55 PM

Any news about this bug?

William

#12 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 16 August 2006 - 11:33 PM

Hello William,

Unfortunatelly not yet. I have work on other features/bugs. I will back now on it.

Please sorry for waiting.

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.

#13 Edwin

Edwin
  • Members
  • 43 posts

Posted 09 October 2008 - 10:24 AM

Hi Boki,

How's this going on? Is it fixed or not? I tried form inheritance with the latest version of TNextGrid it seems still have problems?

#14 IVO GELOV

IVO GELOV
  • Members
  • 7 posts

Posted 28 April 2009 - 06:11 PM

See FIX




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users