GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - dengg88/ExpressCraft: ExpressCraft (For Bridge.Net) - Create a Windows Application using ExpressCraft UI and Bridge for the Browser. Handles Modal and Non-Modal Forms - When using Dialogues you can assign call-backs based on the Dialogue Result.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

448 Commits
448 Commits

Folders and files

NameName
Last commit message
Last commit date
ExpressCraft.Design
ExpressCraft.Design
 
 
ExpressCraft
ExpressCraft
 
 
ExpressCraftXamlExample
ExpressCraftXamlExample
 
 
Properties
Properties
 
 
ShareTest
ShareTest
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
ExpressCraft - Copy.nuspec
ExpressCraft - Copy.nuspec
 
 
ExpressCraft.csproj
ExpressCraft.csproj
 
 
ExpressCraft.nuspec
ExpressCraft.nuspec
 
 
ExpressCraft.sln
ExpressCraft.sln
 
 
License.txt
License.txt
 
 
PackProject.bat
PackProject.bat
 
 
README.md
README.md
 
 
download.png
download.png
 
 
nuget.exe
nuget.exe
 
 

Repository files navigation

ExpressCraft

NuGet Built with Bridge.NET

Demo Rep:

https://github.com/samuelGrahame/ExpressCraftDemo

How to create a Form

Form.Setup(); // This is no longer needed with version 0.0.2 - nuget package
var x = new Form();
x.Text = "Hello World";
x.Show();

How to use SplitterContainerControl

var splitContainerControl = new SplitControlContainer();

splitContainerControl.SplitterPosition = 150;
splitContainerControl.SetBoundsFull();

this.LinkchildToForm(splitContainerControl);
this.AppendChild(splitContainerControl);

How to use TabControl

tabControl1 = new TabControl();
tabControl1.ShowClosedButton = true; // Show the Close on the Tab
tabControl1.SetBoundsFull();
tabControl1.AddPages(new TabControlPage() { Caption = "Tab1" }, new TabControlPage() { Caption = "Tab2" });
this.AppendChild(tabControl1);

How to use Google Cloud Print

GoogleCloudPrint.Setup();
var x = new GoogleCloudPrint("www.google.com", "title", GoogleCloudPrintingMimeType.Url);
x.Show();

How to use DataTable Class

var dataTable = new DataTable();				

dataTable.AddColumn("FieldName", DataType.String);

// Update direcly to datatable

dataTable.BeginDataUpdate();

dataTable.AddRow("Value");

dataTable.EndDataUpdate();

// Batch adding

dataTable.BeginNewRow(1000); //  It calls BeginDataUpdate...

for(int i = 0; i < 1000; i++)
{
  var x = dataTable.NewRow();
  x[0] = i.ToString();
}

dataTable.AcceptNewRows(); // It calls EndDataUpdate...

How to use the GridView with the DataTable

// Requirements - dataTable filled with data, Inside a Form class.

var gridView = new GridView(true, true);

gridView.SetBoundsFull(); // Dock the gridView Full
gridView.DataSource = dataTable;

this.LinkchildToForm(gridView); // required to manage resize events.
this.Body.AppendChild(gridView); // add the control to the working form

How to access the HTML Element for Control Clases

var x = new Control();

HTMLElement element =  x.Content;

var y = new Form();

HTMLElement body = y.Body;
HTMLElement baseContent = y.Content;

How to use the Color Class

var color = Color.Blue;
color = Color.FromKnownColor(KnownColor.Brown);
color = Color.FromArgb(100, Color.Black);

color = Color.FromArgb(10, 10, 10);

Document.Body.Style.BackgroundColor = color;

// The color implicitly is casted to string using a Hex value. 

How to use the GridLookupEdit

var gridLookupEdit = new GridLookupEdit() { DisplayName = "RowContent", FieldName = "RowId" };
gridLookupEdit.Width = 150;
gridLookupEdit.gridView.DataSource = GetTestData();

public static DataTable GetTestData()
{
  var dt = new DataTable();

  dt.AddColumn("RowId", DataType.Long);
  dt.AddColumn("RowContent", DataType.String);

  dt.BeginDataUpdate();

  for(int i = 0; i < 1000; i++)
  {				
    dt.AddRow(i, "Content_Value" + i.ToString());
  }

  dt.EndDataUpdate();

  return dt;
}

How to choose your Console

public enum ApplicationDefitnion
{
	BrowserConsole,
	BridgeConsole,
	ExpressCraftConsole
}  
Application.SetApplicationDefinition(ApplicationDefitnion.BrowserConsole);
Application.SetApplicationDefinition(ApplicationDefitnion.BridgeConsole);
Application.SetApplicationDefinition(ApplicationDefitnion.ExpressCraftConsole);
if(Application.AplicationDefition == ApplicationDefitnion.ExpressCraftConsole)
	// Do Something

Application Settings

Settings.NetworkURL = "Host.ashx"; // Default Network asp.net ashx page
Settings.ResourceURL = "./images/"; // Resource Directory
Settings.AutoRender = true; // Auto render when added to parent. appendChild(x);
Settings.DefaultFont = "8.25pt Tahoma";

Settings.GridViewAutoColumnGenerateFormatAsDate = false;
Settings.GridViewBlurOnScroll = false;
Settings.GridViewRowScrollPadding = 0;
Settings.GridViewScrollDelayed = false;
Settings.GridViewScrollDelayMS = 25;

Settings.ContextMenuStartingZIndex = 500;
Settings.ContextMenuMinWidth = 200;

Settings.MessageFormTextMaximumHeightInPx = 500;
Settings.MessageFormTextMinimumHeightInPx = 32;
Settings.MessageFormMinimumWidthInPx = 195;
Settings.MessageFormBeep = false; // Beep when a message box shows

Settings.MaximumPixelScrollingRows = 500000;
Settings.WindowManagerVisible = false; // Show Window Manager
Settings.AllowCloseWithoutQuestion = false; // Disable Question to close browser tab/page
Settings.ShowExceptionDialog = true; // Show the Exception Dialog
Settings.FormFadeDuration = 100; // Fade Duration when closing a Form

Settings.ConsoleDefaultSize = new Vector2(540, 240); // Size of the Console Form

Settings.OnF2ShowThemeForm = true; // Show the Theme Form on F2

Settings.ToolTipPopupDelayMs = 1000;
Settings.ToolTipPopupStayOpenDelayPerWordMs = 250;

Stand Alone Form Instance's

new Form().Show(null, true);

// The form does not follow the modal system.
// in a seperate List<Form>

Added Custom Themes

var Theme Theme2 = new Theme(
"#0173C7", "#C5C5C5", "#CCCCCC",
"#F0F0F0", "#C3C3C3", "#ADADAD",
"#2A8AD0", "#D3D3D3", "#2A8AD4",
"#015C9F", "#E81123", "#F1707A",
"#AEAEAE", "#FAFAFA", "white",
"#CFCFCF", "#B9B9B9", "rgba(1, 115, 199, 0.3)",
"rgba(1, 115, 199, 0.5)", "#A6A6A6",
"#777777", "#80868A", "#404040",
"white", "black");

// Example of how to create a theme.
// How to set the theme in the project

Settings.ActiveTheme = Theme2;

// Will  Add Notes later for what the colors are used for each variable

Open the Theme Form || Press F2 when (Settings.OnF2ShowThemeForm == true)

ThemeForm.ShowThemeForm();

Added Support for Tooltips

var control = new Control();
control.ToolTip = new ToolTip("This is a heading test.", "This is a description test.");

Settings.ToolTipPopupDelayMs = 1000;
Settings.ToolTipPopupStayOpenDelayPerWordMs = 250;

About

ExpressCraft (For Bridge.Net) - Create a Windows Application using ExpressCraft UI and Bridge for the Browser. Handles Modal and Non-Modal Forms - When using Dialogues you can assign call-backs based on the Dialogue Result.

github.com/samuelGrahame/ExpressCraftDemo

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct
Activity

Stars

3 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.