Jump to content


Photo

NG6.NxComboBoxColumn6: event equal to OnSelect in NG5?


  • Please log in to reply
1 reply to this topic

#1 BelangerC

BelangerC

    Senior Member

  • Members
  • PipPip
  • 221 posts
  • Location:Richmond, CA USA
  • Interests:Alternative medicine, programming for

Posted 06 June 2023 - 02:50 PM

Hi, Boki:

 

Confused about using NxComboBoxColumn6

 

Currently using OnSelect event of NxComboBoxColumn for NG5 with following code:

 

 WITH GridView1 DO
  BEGIN
    Cell[SelectedColumn, SelectedRow].AsString := TNxComboBoxColumn(Sender)
      .Editor.Text;
 
    // having the same issue here as the other cells/columns, the color keeps
    // changing
    Columns[SelectedColumn].Font.Color :=
      StringToColor(ColFontColor[SelectedColumn]);
  END;
 
Do I use the NxComboBoxColumn6.OnGetText or OnGetValue or something else?
 
Thank you,
Chuck


#2 BelangerC

BelangerC

    Senior Member

  • Members
  • PipPip
  • 221 posts
  • Location:Richmond, CA USA
  • Interests:Alternative medicine, programming for

Posted 07 June 2023 - 02:27 AM

Hi, Boki:

Same question for the NxListColumn, i.e. what event should I use for OnSelect-like behavior?

 

Current NG5 OnSelect:

WITH GridView1 DO
  BEGIN
    // Cell[SelectedColumn, SelectedRow].AsInteger :=
    // TNxListColumn(Sender).index;
 
    // having the same issue here as the other cells/columns, the color keeps
    // changing
    Columns[SelectedColumn].Font.Color :=
      StringToColor(ColFontColor[SelectedColumn]);
  END;

 

Thank you,

Chuck






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users