Setting Size, no change

[LUA]resource.AddFile("…/addons/rules.txt")
resource.AddFile("…/addons/admins.txt")
resource.AddFile("…/addons/admins.txt")

if SERVER then
AddCSLuaFile(“MOTDFrame.lua”)
else
hook.Add(“InitPostEntity”,“UniqueIdntifier”, function()
local MOTDFrame = vgui.Create( “DFrame” )
MOTDFrame:SetTitle( “Message of the Day” )
MOTDFrame:SetSize( 950, 850 )
MOTDFrame:Center()
MOTDFrame:ShowCloseButton( true )
MOTDFrame:SetBackgroundBlur( true )
MOTDFrame:SetDraggable( false )
MOTDFrame:SetVisible( true )
MOTDFrame:MakePopup()

	local PropertySheet = vgui.Create( "DPropertySheet", MOTDFrame )
	PropertySheet:SetParent( MOTDFrame )
	PropertySheet:SetPos( 5, 30 )
	PropertySheet:SetSize( 340, 315 )

	local SheetItemOne = vgui.Create( "HTML" )
	SheetItemOne:SetSize( MOTDFrame:GetWide() - 900, MOTDFrame:GetTall() - 800 )
	SheetItemOne:SetHTML( file.Read( "../addons/rules.txt") )

	local SheetItemTwo = vgui.Create( "HTML" )
	SheetItemTwo:SetSize( MOTDFrame:GetWide() - 900, MOTDFrame:GetTall() - 800 )
	SheetItemTwo:SetHTML( file.Read( "../addons/admins.txt") )

	local SheetItemThree = vgui.Create( "HTMl" )
	SheetItemThree:SetSize( MOTDFrame:GetWide() - 900, MOTDFrame:GetTall() - 800 )
	SheetItemThree:SetHTML( file.Read( "../addons/credits.txt") )
	
	PropertySheet:AddSheet( "Rules", SheetItemOne, "gui/silkicons/user", false, false, "Rules" )
	PropertySheet:AddSheet( "Admins", SheetItemTwo, "gui/silkicons/user", false, false, "Admins" )
	PropertySheet:AddSheet( "Credits", SheetItemThree, "gui/silkicons/user", false, false, "Credits" )
end )

end[/LUA]

So Basicly, whenever I change the size of my Sheet frames. Nothing happens… The Text Boxes stay the exact same.

Picture of the MOTD: http://img707.imageshack.us/i/settingsize.jpg/

vgui.Create( “HTMl” )

Will error I’m sure. HTMl needs to be HTML.

Can you give us any more info though?

There’s no errors when running the code. But Small fix, I will post a screenshot in 5 minutes.

[editline]11:44PM[/editline]

Added Picture, check first post.

I think I didn’t quite explain it properly, so. Here it goes, basicly, whenever I try to change the size of the Property Sheets example:

[lua]local SheetItemOne = vgui.Create( “HTML” )
SheetItemOne:SetSize( MOTDFrame:GetWide() - 900, MOTDFrame:GetTall() - 800 )
SheetItemOne:SetHTML( file.Read( “…/addons/rules.txt”) )[/lua]

It’s set to 900 wide, and 800 Tall… Ok… No problem… However if I change it to say, 50 wide and 150 Tall, the change is nothing.

[lua]local SheetItemOne = vgui.Create( “HTML” )
SheetItemOne:SetSize( MOTDFrame:GetWide() - 50, MOTDFrame:GetTall() - 150 )
SheetItemOne:SetHTML( file.Read( “…/addons/rules.txt”) )[/lua]

What I ask you, is why isnt it changing the size? No errors are being displayed in the console.

DPropertySheet resizes controls if NoStretchX or NoStretchY are false.

Make your DPropertySheet larger or call PropertySheet:SizeToContentWidth( ) after you add your items to it.

Thank you very much! It’s working now (: