Jump to content


Photo

TextItem keep edit mode


  • Please log in to reply
23 replies to this topic

#21 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 18 February 2016 - 08:32 PM

Hi Qwaz,

 

I will re-upload files tonight once again. Please sorry for all delay.


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.

#22 Qwazerty

Qwazerty
  • Members
  • 73 posts
  • Gender:Male
  • Location:France

Posted 18 February 2016 - 10:45 PM

Hi Boki

 

No problem, thank you.

 

Qwaz



#23 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 19 February 2016 - 03:09 AM

Hi,

 

I have re-uploaded files. Please tell me if is better now.


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.

#24 Qwazerty

Qwazerty
  • Members
  • 73 posts
  • Gender:Male
  • Location:France

Posted 22 February 2016 - 05:27 PM

Hello Boki

 

It's better with ckEnable/ckDisable, but there is a same issue, if something disable the editing cell, it raise an error

procedure TNxCustomInspector.DoItemEditorEdit(Sender: TObject);
var
  Accept: Boolean;
begin
  if not Assigned(FEditingItem) then Exit;
  with Sender as TNxCustomEdit do
  begin
    if itoAutoApply in FEditingItem.Options then
      FEditingItem.Value := AsString;
    DoEdit(FEditingItem, AsString, Accept);
  end;
end;

When FEditingItem.Value := AsString; is executed, it call "Inspector.OnChange" (something set item's enable statut to false => EndEditing => FEditingItem set to nil ) so when DoEdit(FEditingItem, AsString, Accept); is executed FEditingItem is nil.

 

have a nice day

Qwaz






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users