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

A request in verse

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


Joined: 10 Mar 2003
Posts: 393
Location: Virginia

PostPosted: Mon Apr 19, 2004 6:56 pm    Post subject: A request in verse Reply with quote

I know this has been asked about and that Shawn said it would be coming soon, but you cannot stop a poet. Not even a bad one!

Quote:

A great tool for KiXtart Shawn has wrought,
The mightiest of GUI's needs not be bought.
We learn to use this most sacred file,
As we create scripts that make us smile.

However, only content we are on release day,
Soon to want more to Shawn's dismay.
With TrayIcons and panels and better menus,
Can we ever be made content in this venue.

A list of items in my window to view,
A subset of these items I need too.
To expand or collapse depending on need,
More functions for Kixforms we plead.

I humbly request for everyone's use,
A new function that will help me produce,
A solution to my problem in paragraph three,
A function that will let me view a tree.


I've thought about emulating a treeview by utilizing a listview, but I'm not sure how clean that will be, and if the treeview will be out before too long, then I'll just wait on it. However, if anyone knows of a good solution in the meantime, I'm all for checking it out.

Many thanks.
-Ben
http://www.rgcweb.org/kix


Last edited by Bonji on Tue Apr 20, 2004 1:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Mon Apr 19, 2004 7:17 pm    Post subject: Reply with quote

hey thats really good. I've already started working on the TreeView ... its heads down on that until a workable version is produced, at which time i will release a build asap, even if it only minimally working.

One thing though ... the TreeView will probably be the toughest of the controls to use and understand ... any of the code i've seen so far is not for the faint of heart but we'll learn it together - I've never programmed a TreeView, have you or anybody else had the chance ? Think maybe Stevie has, maybe he can comment on what to expect, and maybe how we can make it easier to use. Im just going to follow the dotnet model on this one and go from there.
Back to top
View user's profile Send private message
maciep
KiXforms Regular
KiXforms Regular


Joined: 01 May 2003
Posts: 43
Location: Pittsburgh,PA

PostPosted: Mon Apr 19, 2004 7:53 pm    Post subject: Reply with quote

I wrote a small app in c# that is basically the same as the MoveTo Dialog in AD. Here's the meat of the treeview functionality.

Code:

      private  void AfterSelect(Object Sender,  TreeViewEventArgs e)
      {
         if(e.Node.Nodes.Count==1)
         {
            this.Cursor = Cursors.WaitCursor;
            e.Node.Nodes.Clear();
            FillTree(e.Node,new DirectoryEntry(e.Node.Tag.ToString()));
            this.Cursor = Cursors.Arrow;
         }
      }
      private  void FillTree(TreeNode n, DirectoryEntry Root)
         {
            TreeNode temp;
            MySearcher.SearchRoot = Root;
            foreach  (SearchResult se in MySearcher.FindAll())
            { 
               temp = n.Nodes.Add(se.GetDirectoryEntry().Name.Split('=')[1]);
               temp.Tag = se.GetDirectoryEntry().Path;
               temp.Nodes.Add("");
            }
           
         }


It's really not that complicated. Well at least this Active Directory one isn't.
Back to top
View user's profile Send private message
Bonji
KiXforms Aficionado
KiXforms Aficionado


Joined: 10 Mar 2003
Posts: 393
Location: Virginia

PostPosted: Mon Apr 19, 2004 8:40 pm    Post subject: Reply with quote

I created a listview that would navigate a tree structure for AD, but it doesn't show more then the current location along with the current items. I could move forward and back with it, but I kinda doubt that is the structure needed. It's the "pick an OU" part of creating a new user in my user manager tool.

I know you'll get it nailed though, and I'll be happy to work/test with any functionality that gets put in.

Thanks!

-Ben
http://www.rgcweb.org/kix
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Mon Apr 19, 2004 9:56 pm    Post subject: Reply with quote

I will take you both up on that offer.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> 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