KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

Transparency again

 
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion
View previous topic :: View next topic  
Author Message
Gargoyle
KiXforms Aficionado
KiXforms Aficionado


Joined: 30 Dec 2003
Posts: 366
Location: Arizona

PostPosted: Sat Nov 19, 2005 1:07 am    Post subject: Transparency again Reply with quote

This sort of goes back to this thread. http://www.kixforms.org/forum/viewtopic.php?t=1073

When I want to make all of the controls on the page transparent with the exception of the parent form (which contains the background image). Is there a single place I can set that or must I do it on each control?

_________________
Parents were invented to make children happy by giving them something to ignore.
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Sat Nov 19, 2005 4:06 am    Post subject: Reply with quote

For all the child controls of the Form (first generation child controls), you would have to set the BackColor to Transparent - but for any children of these child controls (grand children of the form), you shouldn't have to set the transparency because they will inherit it from their parent. Make sense ? If so, would appreciate if you could explain it back to me ;0)
Back to top
View user's profile Send private message
Gargoyle
KiXforms Aficionado
KiXforms Aficionado


Joined: 30 Dec 2003
Posts: 366
Location: Arizona

PostPosted: Sat Nov 19, 2005 4:15 am    Post subject: Reply with quote

If I understand
Code:

  Form = Image
      GroupBox = Transparent
           Radio Button = Inherented
      Panel = Transparent
           CheckBox = Inhereted

Correct?

And while we are on the subject of name space inheretence etc...

$GroupBox.Font = $System.Font ("Times New Roman",12,$System.FontStyle_Bold)

Gives me an error in expression ? Is this because I can not change from the system font or some other coding error that I made.

I tried $GroupBox.Font = $System.Font ( ,12,$System.FontStyle_Bold)
But that did not help me any.

And do font choices inheret as well?

_________________
Parents were invented to make children happy by giving them something to ignore.
Back to top
View user's profile Send private message
benny69
KiXforms Advocate
KiXforms Advocate


Joined: 30 Oct 2003
Posts: 567
Location: Lincoln, Ne

PostPosted: Sat Nov 19, 2005 4:54 am    Post subject: Reply with quote

Your syntax is correct for .font, could you post you code so we coold take a closer look?
_________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)
Back to top
View user's profile Send private message Send e-mail
Gargoyle
KiXforms Aficionado
KiXforms Aficionado


Joined: 30 Dec 2003
Posts: 366
Location: Arizona

PostPosted: Sat Nov 19, 2005 5:01 am    Post subject: Reply with quote

Code:
$Form1 = $System.Form()
$Form1.Left = 0
$Form1.StartPosition = 0  ;FormStartPosition_Manual
$Form1.Size = $System.Size(361,603) ;(Width,Height)
$Form1.Text = "Setup"
$Form1.Top = 0
$Form1.BackgroundImage = $System.Bitmap(".\images\setup.bmp")


$GroupBox1 = $System.GroupBox()
$GroupBox1.Height = 106
$GroupBox1.Left = 0
$GroupBox1.Text = "Preference"
$GroupBox1.Top = 45
$GroupBox1.Width = 137
$GroupBox1.BackColor = $System.Color.Transparent
$GroupBox1.Forecolor = $System.Color.Blue
;$GroupBox.Font = $System.Font ("Times New Roman",12,$System.FontStyle_Bold)
$nul = $Form1.Controls.Add($GroupBox1)

$RadioButton1 = $System.RadioButton()
$RadioButton1.Checked = -1  ;True
$RadioButton1.Left = 10
$RadioButton1.Text = "Printers"
$RadioButton1.Top = 22
$RadioButton1.Width = 120
$RadioButton1.BackColor = $System.Color.Transparent
$RadioButton1.Forecolor = $System.Color.Blue
$RadioButton1.Font = $System.Font ("Times New Roman",12,$System.FontStyle_Bold)
$nul = $GroupBox1.Controls.Add($RadioButton1)


These are the relevant parts of the code. I have the one commented out due to the error that I am recieving.

As you can see I also use it on the radio buttun, and there it gives me no problem. Text appears as expected

_________________
Parents were invented to make children happy by giving them something to ignore.
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Sat Nov 19, 2005 12:55 pm    Post subject: Reply with quote

You forgot the "1" on your GroupBox1 name.
Back to top
View user's profile Send private message
Gargoyle
KiXforms Aficionado
KiXforms Aficionado


Joined: 30 Dec 2003
Posts: 366
Location: Arizona

PostPosted: Sat Nov 19, 2005 4:42 pm    Post subject: Reply with quote

It's always those simple things. Embarassed
_________________
Parents were invented to make children happy by giving them something to ignore.
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Sat Nov 19, 2005 6:26 pm    Post subject: Reply with quote

No sweat, I do the same. Thats one of the reasons I dont use that naming scheme (very much)
Back to top
View user's profile Send private message
Gargoyle
KiXforms Aficionado
KiXforms Aficionado


Joined: 30 Dec 2003
Posts: 366
Location: Arizona

PostPosted: Sat Nov 19, 2005 7:29 pm    Post subject: Reply with quote

I have since changed all of the names, but since KFD will not allow me to change them at this time, I was building the form first, and then doing a search and replace.

But Benny say's that the next version that is fixed. I look forward to it (hint hint).

_________________
Parents were invented to make children happy by giving them something to ignore.
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Sat Nov 19, 2005 7:48 pm    Post subject: Reply with quote

arggg, i just spent the last half hour chasing down a bug that turned-out to be that I had a variable name that didn't have a dollar sign in front of it ! like this:

$Item = ArrayList.Add(1)

should have been

$Item = $ArrayList.Add(1)

argh.
Back to top
View user's profile Send private message
Les
KiXforms Aficionado
KiXforms Aficionado


Joined: 24 Dec 2003
Posts: 317

PostPosted: Sat Nov 19, 2005 8:45 pm    Post subject: Reply with quote

Since this is drifting off topic anyway...

I had Bryce help me out with a problem where I forgot to put @ in front of CRLF. The really weird thing was that the script would go more than 10 iterations of the loop before it would bomb with an obscure error. The other weird thing was that I was still getting my line breaks.
Code:
$DirArray = DirPlus('\\cacc.local\ff\home\users','/ad') ;returns only a list of folders

For each $Dir in $DirArray
  $RC = WriteLine(1,'"' + $Dir.Name + '","' + $Dir.Size + '"' + @CRLF)
  $Dir.Name ?
Next

_________________
The Repro Man
Stealing for a living!
Back to top
View user's profile Send private message
benny69
KiXforms Advocate
KiXforms Advocate


Joined: 30 Oct 2003
Posts: 567
Location: Lincoln, Ne

PostPosted: Sat Nov 19, 2005 11:04 pm    Post subject: Reply with quote

Gargoyle,
I do the same kinds of things, I beat my head against the wall trying to find the problem and when I eventually find it and I feel like a fool for not seeing it sooner. I must complement you for learning as much as you have already about kf.net. It is difficult to teach yourself about something without documentation, and you are doing a fine job. I am excited to see coders start to use kf.net, because once they learn of its great potential they will need help too.

May the KiX be with you Wink

_________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)
Back to top
View user's profile Send private message Send e-mail
Gargoyle
KiXforms Aficionado
KiXforms Aficionado


Joined: 30 Dec 2003
Posts: 366
Location: Arizona

PostPosted: Sun Nov 20, 2005 3:46 am    Post subject: Reply with quote

Thanks for the kudo's, I am still having issues with name space conventions, but ever so slowly.....
_________________
Parents were invented to make children happy by giving them something to ignore.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group