cancel
Showing results for 
Search instead for 
Did you mean: 

Remove disabled look from multilineedit.

Former Member
0 Kudos

Hello!

I've got some dynamic layout work to do in PB Classic. I've got some layouts which requires n amounts of checkboxes to be created. Problem is that some of these checkboxes has large amounts of texts, or at least a couple of lines.

Since checkboxes can't have more than 1 line (as far as i can see). I need to come up with a solution that works for all cases, meaning an undefined amount of text for each checkbox which it only knows in runtime. So instead I use a MLE which I draw on top of the checkbox text. This leaves the checkbox button to be seen but with the MLE - text next to it which allows multiple lines.

The only problem is that the MLE has different behaviours than a regular checkbox text. For example you cannot highlight a checkbox text but you can of course hightext text in an MLE. If I put enabled = false then you cannot highlight anymore but the entire MLE gets a greyed out "disabled" look both for text and background. My question is basically, is there anything I can do about the disabled look? I want it to look like it's enabled.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I ended up with using a statictext instead of an MLE. So if multiple lines is needed, I open a statictext on the spot where the text of the checkbox is drawn.

The statictext does'nt have a disabled grey look and can contain multiple lines if you just add ~r~n to it and increase it's height.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Lucas,

Instead of disabling the mle you may want to set the DisplayOnly property.

hth,

Mark

Former Member
0 Kudos

I'm already using this property, but it wont get rid of the highlighting functionality

Former Member
0 Kudos

Hi Lucas;

In that case I would tap into the DWO's powerful "AutoSize Height" feature.   

Regards ... Chris

Former Member
0 Kudos

Hi Lucas;

Suggestion: I would use a DW instead with the Edit Style of radio button. Then, in each DW's column use the ELLIPSE option to truncate the text to one line each. Next, use the PowerTipText feature on each column so that the user sees the entire RB text when hovering the mouse over each RB'd column. The DW will also have no issues with a disabled look.

Food for thought.

Regards ... Chris

Former Member
0 Kudos

Hello Chris and thank you for your answer which is a good suggestion.

However now I ended up with using statictexts instead for large texts in combination with combobox. You suggestion is good but my customer would'nt be satisfied with the "hover over to see text" solution unfortunately.