View previous topic :: View next topic |
Author |
Message |
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
Posted: Sat Mar 04, 2017 7:55 am Post subject: |
|
|
Thanks DaSpamer for your script.
Topic continue other post.
Ragards
|
|
Back to top |
|
|
akumakuja28 Master Cheater Reputation: 16
Joined: 28 Jun 2015 Posts: 432
|
Posted: Tue Mar 07, 2017 10:01 pm Post subject: |
|
|
Code: |
function createScrollBox(Parent)
local box = createComponentClass('TScrollBox', Parent)
box.Parent = Parent
return box
end
|
^^ Save code above to .lua file and place in autorun folder for ease of use
Code: |
f = createForm()
a = createScrollBox(f)
|
_________________
|
|
Back to top |
|
|
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
Posted: Wed Mar 08, 2017 5:29 am Post subject: |
|
|
Thanks akumakuja28,
note = [[ -- save this function as lua file and put on CE Dir\autorun folder --
function createScrollBox(Parent)
local box = createComponentClass('TScrollBox', Parent)
box.Parent = Parent
return box
end
]]
Code: | f = createForm()
f.Width = 250
f.Height = 100
a = createScrollBox(f)
a.Top = 10
a.Left = 10
a.Width = 230
a.Height = 70
a.Color = '0x0DFFD01'
a.HorzScrollBar.Increment = 1 -- For What ?
a.HorzScrollBar.Page = 1 -- For What ?
a.HorzScrollBar.Smooth = true
a.HorzScrollBar.Range = 5 -- Slider Track Size
b1 = createButton(a)
b1.Top = 10
b1.Left = 10
b2 = createButton(a)
b2.Top = 10
b2.Left = 100
b3 = createButton(a)
b3.Top = 10
b1.Left = 200
|
From script above :
1. not all buttons on scrollbox area can be displayed correctly, while clicking right scroll button
I don't know how to script that (to covering all button)
2. Seem "scroll step" not matching with "scroll area"
regards
|
|
Back to top |
|
|
akumakuja28 Master Cheater Reputation: 16
Joined: 28 Jun 2015 Posts: 432
|
Posted: Wed Mar 08, 2017 8:41 am Post subject: |
|
|
a.HorzScrollBar.Increment = 1 -- IDK
a.HorzScrollBar.Page = 250 -- Width of track size
a.HorzScrollBar.Smooth = true
a.HorzScrollBar.Range = 500 -- Final Width of scrollbox
seems best to not touch the scrollbars. when building like this.
_________________
|
|
Back to top |
|
|
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
Posted: Wed Mar 08, 2017 10:27 am Post subject: |
|
|
akumakuja28 wrote: | a.HorzScrollBar.Increment = 1 -- IDK
a.HorzScrollBar.Page = 250 -- Width of track size
a.HorzScrollBar.Smooth = true
a.HorzScrollBar.Range = 500 -- Final Width of scrollbox
seems best to not touch the scrollbars. when building like this. |
I got it, now more easier or the other way to implementing scrolling icons to game launcher pad.
Thanks and regards
|
|
Back to top |
|
|
|