Mart
(KiX Supporter)
2010-11-29 04:36 PM
KF.NET form opacity?

Paging Shawn. Dr. Shawn report to COM, Dr. Shawn.

My Account on KFORG seem to be blocked or something. I'm unable to login and also unable to register again. So a post over here was my only option.

In KF classic there seems to be an opacity control that is not present in KF .NET. I'm developing an app that will be running on Win7. Opacity would be nice to make it look nice and shiny. Is there something like this in KF.NET or will it be available shortly?

See: http://www.kixforms.org/forum/viewtopic.php?t=1320

[edit]
Seems to be available in .NET 1.1 and up.
http://msdn.microsoft.com/en-us/library/system.windows.forms.form.opacity(VS.71).aspx
[/edit]


Arend_
(MM club member)
2010-11-29 05:32 PM
Re: KF.NET form opacity?

Did you try ?
 Code:
$form.Opacity = 0.25


Mart
(KiX Supporter)
2010-11-29 09:18 PM
Re: KF.NET form opacity?

Yes. No dice unfortunately.

ShawnAdministrator
(KiX Supporter)
2010-12-01 02:47 AM
Re: KF.NET form opacity?

I'm here buddy. Been caught-up in major incidences at work, which is why i've been lurking at the golf, not joining-in ... Kixgolf can absolutely consume one's thought (and time), which I can't afford right now.

Anyways, opacity ... let me dig-up the old code and see what's what there.


Mart
(KiX Supporter)
2010-12-01 09:48 AM
Re: KF.NET form opacity?

Great. Thanks.

ShawnAdministrator
(KiX Supporter)
2010-12-02 03:35 AM
Re: KF.NET form opacity?

a new build with opacity is here:

http://www.kixforms.org/assets/files/kixforms/developer/kixforms.msi

 Code:
Break On

$System = CreateObject("Kixforms.System")

$Form = $System.Form()
$Form.ClientWidth = 640
$Form.ClientHeight = 480

$Form.Opacity = 0.5

$Button = $Form.Controls.Add($System.Button())
$Button.Text = "Exit"
$Button.Center

$Form.Center
$Form.Show
While $Form.Visible
 $= Execute($Form.DoEvents())
Loop

Exit 0



Mart
(KiX Supporter)
2010-12-02 09:33 AM
Re: KF.NET form opacity?

And once again he delivers. Thanks man.

Works great. My app looks nice and shiny with opacity on Win7.