Solaric Posted July 4, 2016 Posted July 4, 2016 Im trying to add image to tab panel and tabs.. How can I add it. (I only can use guiCreateStaticImage with png file) Thanks!
DakiLLa Posted July 5, 2016 Posted July 5, 2016 local yourTabPanel = guiCreateTabPanel( ... ) local tab = guiCreateTab( "fancyTab", yourTabPanel ) local imagePosX, imagePosY = 30, 50 -- relatively to tab local imageSizeX, imageSizeY = 75, 90 -- whatever local image = guiCreateStaticImage( imagePosX, imagePosY, imageSizeX, imageSizeY, "path/to/your/image.png", false, tab )
Solaric Posted July 6, 2016 Author Posted July 6, 2016 local yourTabPanel = guiCreateTabPanel( ... ) local tab = guiCreateTab( "fancyTab", yourTabPanel ) local imagePosX, imagePosY = 30, 50 -- relatively to tab local imageSizeX, imageSizeY = 75, 90 -- whatever local image = guiCreateStaticImage( imagePosX, imagePosY, imageSizeX, imageSizeY, "path/to/your/image.png", false, tab ) It works! But tabPanel is on top.
Fox261098 Posted July 7, 2016 Posted July 7, 2016 local yourTabPanel = guiCreateTabPanel( ... ) local tab = guiCreateTab( "fancyTab", yourTabPanel ) local imagePosX, imagePosY = 30, 50 -- relatively to tab local imageSizeX, imageSizeY = 75, 90 -- whatever local image = guiCreateStaticImage( imagePosX, imagePosY, imageSizeX, imageSizeY, "path/to/your/image.png", false, tab ) It works! But tabPanel is on top. Just start editing coordinates and you will find the right one
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now