Jump to content

A problem that seems caused by Tunibuttonwidget


Roberto Nicchi

Recommended Posts

If in a Tunidbgrid a button widget is assigned to a column, the button is not visualized and there are also some negatives "side effects". I have attached a self explained test app. It's faster if you take a look at the example than to explain by words.

I have not been able to find a workaround.

Let me know if i have to open a bug report.

thanks

Roberto

UNIGUI 1.90.0.1549

Delphi XE10.2.3

testapp.zip

Link to comment
Share on other sites

  • 1 month later...
10 minutes ago, Roberto Nicchi said:

did you find a solution to this problem ?

One possible workaround for now.

procedure TUniFrame1.UniFrameCreate(Sender: TObject);
begin
  pc.ActivePage:=page1; // replace "page1" with "page2" and everything will work fine
end;
procedure TUniFrame1.pcChange(Sender: TObject);
begin
  if (pc.ActivePage = page2)and(not tb.Active) then
  begin
    tb.createdataset;
    tb.open;

    tb.append;
    tb.fieldbyname('codice').asinteger:=1;
    tb.fieldbyname('nome').asstring:='test';
    tb.post;
  end;

end;

 

Link to comment
Share on other sites

16 hours ago, Sherzod said:

One possible workaround for now.


procedure TUniFrame1.UniFrameCreate(Sender: TObject);
begin
  pc.ActivePage:=page1; // replace "page1" with "page2" and everything will work fine
end;

procedure TUniFrame1.pcChange(Sender: TObject);
begin
  if (pc.ActivePage = page2)and(not tb.Active) then
  begin
    tb.createdataset;
    tb.open;

    tb.append;
    tb.fieldbyname('codice').asinteger:=1;
    tb.fieldbyname('nome').asstring:='test';
    tb.post;
  end;

end;

 

In the example seems good but things can be more complicated ....

Let's hope for a fix in the future.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...