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

.Opacity Control

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


Joined: 09 Apr 2003
Posts: 71
Location: London, ENGLAND

PostPosted: Sun Jul 16, 2006 3:51 pm    Post subject: .Opacity Control Reply with quote

Don't seem to work with KiXforms.NET, is this on the todo list or has the control name changed ?

Thanks


Last edited by richardrfarthing on Mon Jul 17, 2006 4:41 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
richardrfarthing
KiXforms Supporter
KiXforms Supporter


Joined: 09 Apr 2003
Posts: 71
Location: London, ENGLAND

PostPosted: Sun Jul 16, 2006 4:38 pm    Post subject: Reply with quote

Ok not quite sure if I am doing this right or understand the new Kixforms.System namespace.

All scripts running 2.46 dll.

But if I do the following code using "kixtart.form" namespace it runs the .Opacity control fine.

Code:

Break On
$form            = CreateObject("kixtart.form")
$form.State      = 1 ;visible!
$Form.Height     = 80
$form.Opacity    = 80

$t1              = $form.Controls.timer
$t1.Ontimer      = "$$form.hide"
$t1.Interval     = 3000

$Label = $Form.Label()
$Label.Text = 'Opacity: '+$form.Opacity
$Label.Width = $Form.ClientWidth - 20
$Label.Center
$Label.Height = 30
$Label.Top = 9
$Label.BackColor = "Transparent"
$Label.ForeColor = "Red"
$Label.FontSize = 16
$Label.TextAlign = "MiddleCenter"

$form.Show

While $form.Visible
    $_ = Execute($form.DoEvents)
Loop

Exit 1



But when running this code under the "kixforms.system" namespace it goes wrong.

Code:

Break On

$System = CreateObject("Kixforms.System")

$Form = $System.Form()
$form.State      = 1 ;visible!
$Form.Height     = 80
$form.Opacity    = 80

$t1              = $form.Controls.timer
$t1.Ontimer      = "$$form.hide"
$t1.Interval     = 3000

$Label = $Form.Label()
$Label.Text = 'Opacity: '+$form.Opacity
$Label.Width = $Form.ClientWidth - 20
$Label.Center
$Label.Height = 30
$Label.Top = 9
$Label.BackColor = "Transparent"
$Label.ForeColor = "Red"
$Label.FontSize = 16
$Label.TextAlign = "MiddleCenter"

$form.Show

While $form.Visible
    $_ = Execute($form.DoEvents)
Loop

Exit 1


Thanks

Rich
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Tue Jul 18, 2006 12:00 am    Post subject: Reply with quote

Richard - havent forgot about this - just totally swamped with work right now. Will respond.
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Tue Jul 18, 2006 3:34 am    Post subject: Reply with quote

In your example (that doesn't work) - are you referring to Kixforms.Classic or Kixforms.Net ?

If you change this:

$System = CreateObject("Kixforms.System")

To this:

$System = CreateObject("Kixtart.System")

In your second script, it should work - Kixtart.System is the Kixforms.Classic namespace object.

-Shawn
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