Page 1 of 1 1
Topic Options
#200891 - 2010-11-29 04:36 PM KF.NET form opacity?
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4669
Loc: The Netherlands
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]


Edited by Mart (2010-11-29 04:52 PM)
Edit Reason: Added MSDN link.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#200897 - 2010-11-29 05:32 PM Re: KF.NET form opacity? [Re: Mart]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1889
Loc: Hilversum, The Netherlands
Did you try ?
 Code:
$form.Opacity = 0.25

Top
#200904 - 2010-11-29 09:18 PM Re: KF.NET form opacity? [Re: Arend_]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4669
Loc: The Netherlands
Yes. No dice unfortunately.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#200954 - 2010-12-01 02:47 AM Re: KF.NET form opacity? [Re: Mart]
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
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.

Top
#200958 - 2010-12-01 09:48 AM Re: KF.NET form opacity? [Re: Shawn]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4669
Loc: The Netherlands
Great. Thanks.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#200983 - 2010-12-02 03:35 AM Re: KF.NET form opacity? [Re: Mart]
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
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


Top
#200985 - 2010-12-02 09:33 AM Re: KF.NET form opacity? [Re: Shawn]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4669
Loc: The Netherlands
And once again he delivers. Thanks man.

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

- Chuck Norris once sold ebay to ebay on ebay.

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 320 anonymous users online.
Newest Members
Kelly001, MichaelK72, Janneman, standardbruker, maikoenig2001
17773 Registered Users

Generated in 0.032 seconds in which 0.011 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org