Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Scroll box and button face
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Sat Mar 04, 2017 7:55 am    Post subject: Reply with quote

Thanks DaSpamer for your script.
Topic continue other post.

Ragards
Back to top
View user's profile Send private message
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Tue Mar 07, 2017 10:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Wed Mar 08, 2017 5:29 am    Post subject: Reply with quote

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
View user's profile Send private message
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Wed Mar 08, 2017 8:41 am    Post subject: Reply with quote

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
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Wed Mar 08, 2017 10:27 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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

CE Wiki   IRC (#CEF)   Twitter
Third party websites