Jump to content


Tracer

Member Since 09 Oct 2019
Offline Last Active Nov 18 2019 08:11 PM
-----

Posts I've Made

In Topic: TNxListColumn with InplaceEdit TNxComboBox

12 November 2019 - 01:44 PM

Hello Boki,

thx for your reply.

 

Not fit of the gridrow-size, fit for the listboxrow they get open in  the TNxListColumn. The item hight size for the listbox is not correct.

 

And the when i do it with a TNxComboBox in ImplaceEdit i can set the ItemHight size in the property from TNxComboBox but in the enter it shows the index looks like '0' or so on.

 

My solution for the TNxComboBox poblem is now:

 

procedure TForm1.NextGrid1EditEnter(Sender: TObject);
begin
    if(NextGrid1.SelectedColumn = 5)then
    begin
      FSelectedLBIndex := NextGrid1.Cell[NextGrid1.SelectedColumn,NextGrid1.SelectedRow].AsInteger; //save the listbox index
      if(FSelectedLBIndex > -1 )then
      begin
        NxComboBox1.Text :=  NxComboBox1.Items[FSelectedLBIndex];
      end;
    end;
end;

 

and when get out from control

 

procedure TForm1.NextGrid1EndEditing(Sender: TObject; ACol, ARow: Integer;
  var Value: WideString; var Accept: Boolean);
var
  selIndex : Integer;
begin
    if(NextGrid1.SelectedColumn = 5)then
    begin
      selIndex := NextGrid1.Cell[NextGrid1.SelectedColumn,NextGrid1.SelectedRow].AsInteger;
      if(selIndex = -1 )then
      begin
        if(FSelectedLBIndex > -1)then
        begin
        NextGrid1.Cell[NextGrid1.SelectedColumn,NextGrid1.SelectedRow].AsInteger := FSelectedLBIndex; // set the saved listbox index
        end;
      end;
    end;
end;

 

best regards

Markus


In Topic: TNxListColumn with InplaceEdit TNxComboBox

11 November 2019 - 06:30 PM

Ok for a better understanding:

 

if i set the font-size higher it looks like so in a normal TNxListColumn:

 

Attached File  ListColumn1_ItemsHeight.PNG   34.55KB   0 downloads

 

in the listbox is selected the 'Accounting' and in the 'EditField' is the string value 'Accounting' too.

But the items-height is not perfect from the font-size.

 

if i take the TNxComboBox as a ImplaceEdit i can change the ItemsHeight and other propertys like so:

 

Attached File  ListColumn1_ItemsHeightFromComboBox.PNG   30.08KB   0 downloads

 

and that its what i want from style.

But the 'EditField' is selected the index value and in the listbox is nothing selected.

 

how can i fix them the ImplaceEdit TNxComboBox looks like a normal TNxListColumn

 

best regards

Markus


In Topic: Header Appearance.

21 October 2019 - 10:54 AM

Hi Boki,

thx for answer.

Can you give me an example of how this works with the Custom Styles(Style and StyleOptions)?
Do I have to make a instantiated of TNxNativeGridPartStylePaint?

 

Regards

Mark


In Topic: Varying slide height in treeview

18 October 2019 - 04:53 PM

Hi,

thx for your answer.

That would be very nice

 

Regards

Mark


In Topic: Header Appearance.

18 October 2019 - 04:42 PM

Hi Boki,

 

I have the same question. Where are these headerstyles from v5 ?.:

 

Attached File  HeaderStyle.PNG   3.47KB   0 downloads

 

hsAuto,

hsFlatBorders

hsOffice2007

hsOffice2010

hsOldStyle

hsOutlook

hsVista

Or how can I change the headerstyle in v6 so that it looks like v5?

 

Regards,

 

Mark