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

need a way to reuse a control

 
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: Sun Jun 11, 2006 1:46 am    Post subject: need a way to reuse a control Reply with quote

in kf classic I could have used the expandos to reuse a control template.

now, I need to code everything from the beginning and that means a huge lot more lines.

suggestion, either add something like
$control2 = $form.controls.copy($control1)

or then, when doing:
$container.controls.add($control1)

the control1 gets copied into the container.
afaik, now you don't do that but just add a reference to the control.

I know, I can work around this by doing every damn control from the scratch, but it's a huge waste of lines and bores me a lot Smile

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


Joined: 27 Jan 2004
Posts: 332

PostPosted: Mon Jun 12, 2006 4:43 pm    Post subject: Reply with quote

the KFD .NET version 2.0 Beta allows you to copy controls.

from Benny's post :

New Ability to Copy/Paste ‘Button’, ‘CheckBox’, ‘ComboBox’, ‘Label’, ‘ListBox’, ‘ListView’, ‘NumericUpDown’, ‘PictureBox’, ‘ProgressBar’, ‘RadioButton’, ‘RichTextBox’, ‘TextBox’ and ‘TreeView’ controls
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: Mon Jun 12, 2006 5:20 pm    Post subject: Reply with quote

Hi Pearly,
Lonk is trying to do some of these things in his code, he wasn't trying to use kfd. he his trying to do some of this stuff on the fly.

_________________
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
pearly
KiXforms Aficionado
KiXforms Aficionado


Joined: 27 Jan 2004
Posts: 332

PostPosted: Mon Jun 12, 2006 5:31 pm    Post subject: Reply with quote

Hehe, ok I'll shutup Crying or Very sad Wink
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: Mon Jun 12, 2006 5:52 pm    Post subject: Reply with quote

pearly, thanks for trying to help.
_________________
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