Announcement

Collapse
No announcement yet.

Vertical Image Height

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • shabanov88
    replied
    Code:
    function On_Slider_Move(sCurrentSlider, nPercent)
        if sCurrentSlider == "vknob_1" then
            local eq_pos   = Image.GetPos("vslider_1");
            local eq_size  = Image.GetSize("vslider_1");
            local fill_size = Image.GetSize("eq_fill_1");
            Image.SetProperties("eq_fill_1", { Y=(eq_pos.Y + eq_size.Height) - fill_size.Height, Height=(nPercent/100)*eq_size.Height });
        end
    end
    this code works but 1 percent out of vslider_1 image , someone to help for this ?

    here is the APZ:
    Attached Files

    Leave a comment:


  • shabanov88
    replied
    Originally posted by colc View Post
    OK my friend you had your 3 images "Grouped" that is why you woudn't have been able to move just the vknob
    cheers
    [ATTACH]n298811[/ATTACH]
    thanks for reply my friend
    this is not important

    function On_Slider_Move(sCurrentSlider, nPercent)
    if sCurrentSlider == "vknob_1" then
    ---- image size code here
    end
    end

    on this function need to add code to change image size
    i try this code
    Image.SetProperties("eq_fill_1", { Y=71 + Image.GetSize("vslider_1").Height - nPercent, Height=71 + Image.GetSize("vslider_1").Height });
    but not work , I'm very bad in math

    Leave a comment:


  • colc
    replied
    OK my friend you had your 3 images "Grouped" that is why you woudn't have been able to move just the vknob
    cheers
    Test Slider2.apz

    Leave a comment:


  • shabanov88
    replied
    Originally posted by colc View Post
    Hi Just drag vknob_Pic to bottom of vslider_Pic.Select vknob & then shift vslider pics and use align centre horizontal to centre
    cheers
    thanks for reply my friend
    need to size red image from bottom to top
    here is the example APZ
    thank you so much
    Attached Files

    Leave a comment:


  • colc
    replied
    Hi Just drag vknob_Pic to bottom of vslider_Pic.Select vknob & then shift vslider pics and use align centre horizontal to centre
    cheers

    Leave a comment:


  • shabanov88
    replied
    sorry BTW i use slider framework frome here
    https://forums.indigorose.com/forum/...ider-framework

    Leave a comment:


  • shabanov88
    started a topic Vertical Image Height

    Vertical Image Height

    Hi guys,
    how can i set vertical height on image like vertical progress bar pos ?
    i make slider with images on my project
    need height from bottom to top not from top to bottom
    here is the example image
Working...
X