Results 1 to 7 of 7

Thread: A plea for Help!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2001
    Location
    Utah, USA
    Posts
    121

    A plea for Help (I'm stuck at the begining)!

    OK, I've done a little bit of VB and am coming on my way.. but I need help! I need a little bit of guidance, somebody to give me some pointers on my code. If any of you would help me I would greatly appreciate it!!! I won't take a lot of your time just a bit... Just have a few general questions in every which way...

    Please check out my post below:

    Thankyou

    ps.. I have some experience in BASIC/QBASIC, HTML, JavaScript, and have done a fair amount in VB so I'm not a total beginner....
    Last edited by Zevlag; Apr 27th, 2001 at 09:04 PM.

  2. #2
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    Just post your questions here, they will get answered..

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2001
    Location
    Utah, USA
    Posts
    121
    OK here is the program I am working on now.. First of all check out www.treemenu.com This program will generate the appropriate javascript for the menu... Right now it does it one line at a time... I want to be able to do it graphically, ie design the menu sorta like you do a toolbar ... Also the Add and Delete buttons will replace the generate and copy buttons, and about using a resource file.. need a little help....

    any help whatsoever is welcome

    Zevlag
    Attached Files Attached Files

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Apr 2001
    Location
    Utah, USA
    Posts
    121
    Basically I have to generate code like this:

    Code:
    // Main menu.
    var menu = null;
    menu = new MTMenu();
    menu.MTMAddItem(new MTMenuItem("Item1","main.htm","text"));
    menu.MTMAddItem(new MTMenuItem("Folder1"));
    	
    	//Folder1 menu.
    	var folder1 = null;
    	folder1 = new MTMenu();
    	folder1.MTMAddItem(new MTMenuItem("Link1", "http://www.ExternalLink.com", "_TOP"));
    	menu.items[1].MTMakeSubmenu(folder1);
    My progam right now does the menu items one line at a time...Like I said I just need to konw how to setup the Interface and have it do this automatically..... The best thing about this menu is that it can go folders as deep as needed.

    Code:
    menu.MTMAddItem(new MTMenuItem("Folder1"));
     ^
    this varies depending which menu the item belongs in
    
    menu.items[1].MTMakeSubmenu(folder1); < name of submenu                               
     ^         ^which item number it is, begin at 0 
    which menu the submenu belongs in
    please help,

    Zevlag

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Apr 2001
    Location
    Utah, USA
    Posts
    121
    OK.. Does everyone hat me or something? Seems like everyones elses posts get answeres but not mine.... Feel like singing..

    Everybody hates me
    Nobody like me
    Guess I'll go eat worms
    Big fat juicy ones....
    .......

    Are there any other good VB boards where I can get answers?

    Zevlag

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Apr 2001
    Location
    Utah, USA
    Posts
    121
    Yes. If you check out my program now (in an above post) it generates the lines with the items if each filed is inputed. Well I want to be able to have it show the current strucutre of the tree on left. Then when I save it I want it to put in all the appropriate lines as desribed above.

    I just need people to look at it and give me recommendations on how to do it..

    First of all I don't know what components I should use on the left to accomplish this.

    Josh

  7. #7
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    You need a treeview control...

    some code
    Code:
    'adding a base node
    Dim nodX As Node
    Set nodX = tvw.Nodes.Add
    nodX.Text = "Hello"
    Code:
    'adding a submenu
    'where txttext = the caption
    
    On Error Resume Next
    tvw.Nodes.Add tvw.SelectedItem, tvwChild, , txttext

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width