Page 1 of 1

JiwaBadge foible

PostPosted: Tue Nov 03, 2015 5:27 pm
by neil.interactit
Hi guys,

I have a slight JiwaBadge issue ...
badge.png
badge.png (3.06 KiB) Viewed 4219 times


I have used a badge successfully elsewhere (added to a _Frame_0) ... in this case though, with the same constructor code, but added to an UltraGroupBox, I get the black corners.

I have tried tweaked various .Appearance properties, but have been unable to fix.

Could you steer me in the right direction?

Cheers,
Neil.

Re: JiwaBadge foible

PostPosted: Tue Nov 03, 2015 7:52 pm
by Mike.Sheen
This drives me nuts when I come across it also - and I can never remember what it is exactly which causes it!

I *think* it's the backcolor property of the parent / container control - it needs to be set to transparent.

Re: JiwaBadge foible

PostPosted: Wed Nov 04, 2015 9:49 am
by neil.interactit
Hi Mike,

I haven't been able to fix it ... I tried setting BackColor = Transparent right back up the chain with each successive parent ... still no luck. Any more ideas?

Cheers,
Neil

Re: JiwaBadge foible  Topic is solved

PostPosted: Wed Nov 04, 2015 10:04 am
by Scott.Pearce
"foible" - lol

Try placing the JiwaBadge on an (Infragistics) UltraPanel.

Re: JiwaBadge foible

PostPosted: Wed Nov 04, 2015 11:37 am
by neil.interactit
That nailed it ... thanks!

It was a combination of both approaches ... an UltraPanel as parent, with its BackColor transparent ...
Code: Select all
        _exceedsAuthorisedLimit = New JiwaBadge With { ... }
        Dim pnl1 = New UltraPanel With {.Dock = DockStyle.Fill, .Appearance = New Infragistics.Win.Appearance() With {.BackColor = Color.Transparent}}
        pnl1.ClientArea.Controls.AddRange(New Control() {polbl1, _authorisedBy, _exceedsAuthorisedLimit, _sendForAuthorisation, _isAuthorised})
        _purchaseOrderProcessing = New UltraGroupBox With { ... }
        _purchaseOrderProcessing.Controls.Add(pnl1)

Many thanks,
Neil