Remvode unused config.ini

Made the create folder window have the text box selected so you can type right away.
Asking for more library stuff by index.

Small work on HTML widget
This commit is contained in:
Lars Brubaker 2015-07-22 18:30:22 -07:00
parent 3458d4ba68
commit 53f7ba8579
15 changed files with 81 additions and 151 deletions

View file

@ -72,10 +72,10 @@ namespace MatterHackers.MatterControl
#if false // test
{
SystemWindow releaseNotes = new SystemWindow(640, 480);
string releaseNotesFile = Path.Combine("OEMSettings", "ReleaseNotesMini.html");
string releaseNotesFile = Path.Combine("OEMSettings", "ReleaseNotes.html");
string releaseNotesContent = StaticData.Instance.ReadAllText(releaseNotesFile);
HtmlWidget content = new HtmlWidget(releaseNotesContent, RGBA_Bytes.Black);
content.AddChild(new GuiWidget(HAnchor.None, VAnchor.ParentBottomTop));
content.AddChild(new GuiWidget(HAnchor.AbsolutePosition, VAnchor.ParentBottomTop));
content.VAnchor |= VAnchor.ParentTop;
content.BackgroundColor = RGBA_Bytes.White;
releaseNotes.AddChild(content);

View file

@ -66,8 +66,8 @@ namespace MatterHackers.MatterControl
htmlParser.ParseHtml(htmlContent, AddContent, CloseContent);
VAnchor |= VAnchor.ParentBottomTop;
HAnchor |= HAnchor.ParentLeftRight;
VAnchor = VAnchor.Max_FitToChildren_ParentHeight;
HAnchor = HAnchor.Max_FitToChildren_ParentWidth;
}
public class WrappingTextWidget : GuiWidget
@ -274,7 +274,7 @@ namespace MatterHackers.MatterControl
break;
default:
throw new NotImplementedException("Don't know what to do with {0}".FormatWith(elementState.TypeName));
throw new NotImplementedException("Don't know what to do with '{0}'".FormatWith(elementState.TypeName));
}
}