Home > Back-end >  TComboBox set the painting style and found can not use the edit box, how to do?
TComboBox set the painting style and found can not use the edit box, how to do?

Time:10-06

Main do a login interface, Po number input box chose TComboBox, because the need for the Item map, so chose OwnerDrawFixed style, but the focus TComboBox cannot accept input, excuse me everybody have what solutions can make I can since the draw TComboBox already accept user input,

CodePudding user response:

Can only say that the painting has a problem

CodePudding user response:

reference 1st floor ksrsoft response:
can only say that there is a problem of custom painting
do you have any good solution?

CodePudding user response:

CsOwnerDrawFixed csDropDownList, csOwnerDrawVariable this a few style is can't input, but to the dropdown list to choose

CsSimple and csDropDown style can be chosen, the difference is csDropDown is a drop-down button, csSimple: no, don't know what you took a fancy to csOwnerDrawFixed characteristic, is to use it or csDropDown can also?

CodePudding user response:

CsSimple and csDropDown style can be input

CodePudding user response:

reference KFRGHT reply: 3/f
csOwnerDrawFixed, csDropDownList, csOwnerDrawVariable this a few style is can't input, but to the dropdown list to choose

CsSimple and csDropDown style can be chosen, the difference is csDropDown is a drop-down button, csSimple: no, don't know what you took a fancy to csOwnerDrawFixed characteristic, is to use it or csDropDown can also?
first of all, I need to adjust the height of the item, you said the two style seems to be tough; Second, I need for each Item map, only select custom painting style,

CodePudding user response:

If you didn't the custom painting painting options (all item are the same since the draw, so can't distinguish between selected and not checked)

CodePudding user response:

refer to 6th floor hyz_cs response:
if you didn't the custom painting painting options (all item are the same since the draw, so chosen as not checked can't distinguish)
it's a problem, what is the option of highlighting how to implement?

CodePudding user response:

 

If (State. The Contains (odFocused))
{
//focus
}
The else
{
//not focus
}

CodePudding user response:

refer to the eighth floor hyz_cs response:
 

If (State. The Contains (odFocused))
{
//focus
}
The else
{
//not focus
}

thank you!
  • Related