Page 3 of 3 FirstFirst 123
Results 31 to 35 of 35

Thread: FReq: Better "Build Null Object" dialog -- really, just one thing

  1. #31
    Axes grinder- Dongle #99
    Join Date
    Jul 2003
    Location
    Seattle
    Posts
    14,727
    Logical.

    How much bother to put a 2 pixel gap between the buttons?
    They only call it 'class warfare' when we fight back.
    Praise to Buddha! #resist
    Chard's Credo-"Documentation is PART of the Interface"
    Film the cops. Always FILM THE COPS. Use this app.

  2. #32
    Super Member Kryslin's Avatar
    Join Date
    Feb 2009
    Location
    Prescott, IA
    Posts
    1,473
    Not possible, with my skills; the radio button control jams them all together - using 8 normal buttons would be a programming nightmare.
    --------
    My Scripts for Lightwave
    Intel Core i7 960 @3.20 Ghz, 24 GB ram, EVGA 6GB GTX980Ti "Classified" driving 2 x HP LA2405.

  3. #33
    @Kryslin, dude this is very cool!!

    Do you have a donate button on your website?

    My two cents for developers such as yourself, is that you all should have a donate button on your website for when you make tools like this.

    Thanks again
    Tony

  4. #34
    Super Member Kryslin's Avatar
    Join Date
    Feb 2009
    Location
    Prescott, IA
    Posts
    1,473
    First, I need a website. OK, I do have one, but it's not been accessible to me to update in quite a while.

    As far as donations... I'm glad you like what I've done, and that you want to throw money at me because of it. But in all seriousness, I'd like to get a few more things done before I start thinking about getting paid for this hobby...
    --------
    My Scripts for Lightwave
    Intel Core i7 960 @3.20 Ghz, 24 GB ram, EVGA 6GB GTX980Ti "Classified" driving 2 x HP LA2405.

  5. #35
    Member
    Join Date
    Oct 2003
    Location
    Near Edinburgh
    Posts
    246

    Control of button position

    As an idea you could try the ctlgroup function, then you would only need to position the first control and set the others as children of that control. Their position is set by the offset from the parent. Test script using ctlgroup. c1 is the parent, c2,c3,c4,c5 are children and have their position set from c1.

    regards

    Iain

    Code:
    @version 2.8
    @warnings
    @script generic
    
    c1..5;
    
    generic
    {
        var1 = "Default text";
    
        reqbegin("My Requester");
        reqsize(500,170);
    
        c1 = ctlbutton("Grp_Parent",80,"button_callback_c1");
        c2 = ctlbutton("Grp_Child1",80,"button_callback_c2");
        c3 = ctlbutton("Grp_Child2",80,"button_callback_c3");
        c4 = ctlbutton("Grp_Child3",80,"button_callback_c4");
        c5 = ctlstring("Text Edit",var1);
        
        ctlgroup(c1,c2,c3,c4,c5);
        ctlposition(c1,60,40);
        ctlposition(c2,82,0);
        ctlposition(c3,164,0);
        ctlposition(c4,246,0);
        ctlposition(c5,0,30);
     
        return if !reqpost();
        
        var1 = getvalue(c5);
    
        reqend();
    }
    
    button_callback_c1
    {
        // perform processing here
        setvalue(c5,"Grp_Parent");
    }
    
    button_callback_c2
    {
        // perform processing here
        setvalue(c5,"Grp_Child1");
    }
    
    button_callback_c3
    {
        // perform processing here
        setvalue(c5,"Grp_Child2");
    }
    
    button_callback_c4
    {
        // perform processing here
        setvalue(c5,"Grp_Child3");
    }

Page 3 of 3 FirstFirst 123

Tags for this Thread

Bookmarks

Posting Permissions

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