Jump to content


Tracer's Content

There have been 7 items by Tracer (Search limited from 30-March 23)


By content type

See this member's

Sort by                Order  

#20677 TNxListColumn with InplaceEdit TNxComboBox

Posted by Tracer on 12 November 2019 - 01:44 PM in NextGrid Component

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




#20675 TNxListColumn with InplaceEdit TNxComboBox

Posted by Tracer on 11 November 2019 - 06:30 PM in NextGrid Component

Ok for a better understanding:

 

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

 

ListColumn1_ItemsHeight.PNG

 

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:

 

ListColumn1_ItemsHeightFromComboBox.PNG

 

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




#20674 TNxListColumn with InplaceEdit TNxComboBox

Posted by Tracer on 11 November 2019 - 06:02 PM in NextGrid Component

Hello Berg-team,

 

 

I have a TNxListColumn with a different Font-Style. I use the Function InplaceEdit with a TNXComboBox.

If i Select the component and the TNXComboBox is aktive and show the Items, the Selected item is a Number( the Index of the Items) see photo.

How can I Change this? How can to that, the entry 'Marketing' is in the ComboBox

 

Best regards

Markus

ListColumn1.PNG




#20670 Header Appearance.

Posted by Tracer on 21 October 2019 - 10:54 AM in NextDBGrid v6 Component

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




#20667 Varying slide height in treeview

Posted by Tracer on 18 October 2019 - 04:53 PM in NextGrid Component

Hi,

thx for your answer.

That would be very nice

 

Regards

Mark




#20666 Header Appearance.

Posted by Tracer on 18 October 2019 - 04:42 PM in NextDBGrid v6 Component

Hi Boki,

 

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

 

HeaderStyle.PNG

 

hsAuto,

hsFlatBorders

hsOffice2007

hsOffice2010

hsOldStyle

hsOutlook

hsVista

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

 

Regards,

 

Mark




#20663 Varying slide height in treeview

Posted by Tracer on 09 October 2019 - 06:36 PM in NextGrid Component

Hi Boki,

Excuse me for bringing out this old post but are you still implementing this feature?

I didn't find it in v5 or v6.

 

Best regards

 

Tracer