spvessel / spacevil Goto Github PK
View Code? Open in Web Editor NEWSimple examples of SpaceVIL implementation for C# / .NET Framework, C# / .NET Core and Java.
Home Page: https://spvessel.com
License: MIT License
Simple examples of SpaceVIL implementation for C# / .NET Framework, C# / .NET Core and Java.
Home Page: https://spvessel.com
License: MIT License
Where can I find the source code of the framework itself? Maybe you'll publish it too?
I have found that documentation located at https://spvessel.com/spacevil/docs/csharp/html/class_space_v_i_l_1_1_core_window.html seems to be out of date. At least it doesn't mention CoreWindow.ToggleFullScreen() anywhere.
Hello.
I started using spacevil relatively recently. I readed the docs, and decided build and run example from this repository. I tried using .net framework 4.7.2 and .net 5, OS Windows. The results are the same - console window remains opened several seconds and app fail with code -1073741819. I tried creating window with "hello world" label - the same thing. Do you know what to do?
I really like spacevil and I don't really want to switch to other frameworks.
P.S. Sorry for the grammar - I'm not from an English-speaking country
UPD: I understood why the window is not displayed. I used 32 bit GLFW, and compiled app for x86. When i switched architecture to x64, it worked. However, the problem remains: 32 bit apps aren`t works. I recommend compiling separate binary files for x86 and x64 architectures, it may solve the problem.
Is there an analogue of the table (eg javafx.scene.control.TableView) in the framework?
Have tried to use TextEdit.SetFontSize() the same way I have used it with the Label element, but when I have looked at the Mimic example I found that SetFont() and SetSubstrateFontSize() are used instead. It is a bit unexpected that SetFontSize() is available, but has no effect. In fact, using SetFont() and SetSubstrateFontSize() also had no effect. :)
Have tried manipulating font size in the code below:
TextEdit textEdit = new TextEdit();
textEdit.SetFont(DefaultsService.GetDefaultFont(5));
textEdit.SetSubstrateText("Placeholder");
textEdit.SetSubstrateFontStyle(FontStyle.Regular);
textEdit.SetSubstrateFontSize(5);
textEdit.SetHeightPolicy(SizePolicy.Fixed);
textEdit.SetHeight(5);
Could you please let me know if I am missing something in my code?
Hi!
I am writing a dialog box and I need the current thread to wait for the dialog to finish working. For this, for example, in Java FX there is a method to showAndWait. Is there an analog here?
Hi!
In Prototype class we have field eventMousePress, but how i can handle mouse release event?
I have no idea why MouseRelease throws a null reference exception. Here is the code:
ButtonToggle menuItem = new ButtonToggle("Enable Combobox");
menuItem.SetStyle(Style.GetMenuItemStyle());
menuItem.SetTextMargin(new Indents(25, 0, 0, 0));
menuItem.EventMouseClick += delegate
{
var e = new MessageBox();
e.SetMessageText("Hey");
e.Show();
};
AddItem(menuItem);
When following the steps to create a project using SpaceVIL on Ubuntu 18.04 using Dot Net Core 3.1 following the steps from the official website (https://spvessel.com/#downloads) an unhandled exception is thrown:
Unhandled exception. System.EntryPointNotFoundException: Unable to find an entry point named 'glfwGetMonitorContentScale' in shared library 'glfw'.
at A.b.A(q , Single* , Single* )
at A.b.A(q , Single& , Single& )
at SpaceVIL.Common.CommonService.InitSpaceVILComponents()
at MyApp.Program.Main(String[] args) in /home/username/MyApp/Program.cs:line 10
Code
Program.cs
using System;
using SpaceVIL;
namespace MyApp
{
class Program
{
static void Main(string[] args)
{
if(!SpaceVIL.Common.CommonService.InitSpaceVILComponents())
{
return;
}
MainWindow mainWindow = new MainWindow();
mainWindow.Show();
}
}
}
MainWindow.cs
using SpaceVIL;
namespace MyApp
{
public class MainWindow : ActiveWindow
{
public override void InitWindow()
{
SetParameters(nameof(MainWindow), nameof(MainWindow), 800, 600);
SetMinSize(400, 300);
SetBackground(32, 34, 37);
}
}
}
MyApp.csproj
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Reference Include="SpaceVIL.dll" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.Drawing.Common" Version="4.6.0-preview7.19362.9" />
</ItemGroup>
</Project>
Hello, im looking for exaple how to use ComboBox in C#, and also is is possible to bind image to a MenuItem?
SpaceVIL version: 0.3.6.0-ALPHA - June 2020
Platform: .Net Core
OS type: Linux
OS: Arch Linux (KDE)
Open Kate -> Copy Text -> Close Kate -> Paste Text in TextEdit-> Exception
How to catch it?
Unhandled exception. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.Runtime.InteropServices.Marshal.ReadByte(IntPtr ptr, Int32 ofs)
at A.b.A(IntPtr )
at A.b.f(Int64 )
at SpaceVIL.Common.CommonService.GetClipboardString()
at A.N.A(ITextShortcuts , KeyArgs )
at B.W.a(Object , KeyArgs )
at A.g.A(Int64 , KeyCode , Int32 , InputState , KeyMods )
at A.e.A(Int64 , KeyCode , Int32 , InputState , KeyMods )
at A.b.A(Double )
at SpaceVIL.WindowManager.A.b()
at SpaceVIL.WindowManager.b()
at A.o.D()
at SpaceVIL.CoreWindow.Show()
P.S. sorry if this is not a library problem
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.