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

Controls.add()

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


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Fri Dec 23, 2005 5:31 pm    Post subject: Controls.add() Reply with quote

hmm...
controls add returns what you pass it:
$form.controls.add($listbox)

throws the same listbox as output.
is this by dotnet design or is this some weird kixforms compatibility thingie?
if latter, can you please remove it.

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Fri Dec 23, 2005 6:00 pm    Post subject: Reply with quote

That would mean that you cant do this:

$Button = $Form.Controls.Add($System.Button)

Would have to pre-create the button, then add some other time. Or, add the button like above - then fetch it back to a $var.
Back to top
View user's profile Send private message
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Fri Dec 23, 2005 6:06 pm    Post subject: Reply with quote

yes, it means.
but I dont' want to have the same value back.
the scripter most likely knows what he is passing.
why pass the same thing back?

so one can check with .equals if com interface screwed it?
that's the only reason I can see...

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
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