on 04-14-2014 12:28 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lucas,
Instead of disabling the mle you may want to set the DisplayOnly property.
hth,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
9 | |
9 | |
7 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.