Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 19 15:44

    cwensley on develop

    Gtk: Add Gdk.Key.plus and KP_Se… Merge pull request #1929 from c… (compare)

  • Apr 19 15:44
    cwensley closed #1929
  • Apr 19 15:44
    cwensley closed #1925
  • Apr 19 15:43
    cwensley milestoned #1929
  • Apr 19 15:36
    cwensley opened #1929
  • Apr 19 15:35
    cwensley synchronize #1923
  • Apr 19 15:35

    cwensley on template-updates

    Template updates and sdk suppor… (compare)

  • Apr 18 09:15
    ManuelHu commented #1925
  • Apr 16 02:35
    Sarund9 edited #1928
  • Apr 16 02:28
    Sarund9 opened #1928
  • Apr 15 22:14
    cwensley milestoned #1927
  • Apr 15 22:14
    cwensley commented #1927
  • Apr 15 21:59
    cyanfish commented #1927
  • Apr 15 21:57
    cyanfish commented #1927
  • Apr 15 21:40
    cwensley commented #1927
  • Apr 15 21:37
    cyanfish commented #1927
  • Apr 15 21:22
    cyanfish opened #1927
  • Apr 14 17:56
    cwensley commented #1925
  • Apr 14 17:09
    ManuelHu commented #1925
  • Apr 14 16:08
    cwensley synchronize #1923
Curtis Wensley
@cwensley
Hm, had to switch to net5.0 TFM as I don’t have .NET Core 3.1 installed, but switching “Eto.Platform.Wpf” with “Eto.Platform.Gtk” appears to work with a simple “dotnet run"
Screen Shot 2021-02-21 at 9.17.31 AM.png
Jordan Peck
@Auburn
I've just been running it though VSCode, let me try without
Well that works...
Not sure why that works differently from the template project, neither has any launch configs
Curtis Wensley
@cwensley
I actually did the dotnet run from the VSCode integrated terminal myself.
Jordan Peck
@Auburn
Does it work for you if you hit F5?
Curtis Wensley
@cwensley
@Auburn One thing.. are you using the snap version of VSCode? It has.. problems.. like this one.
you need to use the .deb version so it has full access to your system.
Jordan Peck
@Auburn
I don't remember, is there a way to check
Ah yeah I am using the snap version
Curtis Wensley
@cwensley
that would be it, then
Jordan Peck
@Auburn
.deb version fixed it
Thanks
Curtis Wensley
@cwensley
no problemmo. (;
Jordan Peck
@Auburn
The dropdowns are much larger on Linux, messing up my formatting
Curtis Wensley
@cwensley
Yeah controls in general are quite large on Gtk these days. I think they did that to support touch.
philstopford
@philstopford
Indeed. It's that which forced me to move to a tablelayout managed UI. I had this nicely calibrated design that worked well under all platforms (GTK being then GTK2) and then GTK3 messed it all up with enormous controls. Even now, it's massively wasteful of screen space. I think they ought to be somewhat ashamed. Not every UI calls for touch, after all, and when you end up scrolling to access controls that fit in the UI on every other platform, it just looks terrible to the user (in my experience).
Even with a 4K panel, I end up having to have the tablelayout inside a scrollable to account for this particular 'quirk' of GTK. The horizontal and vertical scrolling is tedious and very saddening when I was deliberately aiming for a UI that didn't have controls out-of-sight and made all of them available without subdialogs, extra windows, etc.
The FastNoise projects are neat - wasn't aware of those before and will be taking a look. The imgui (I guess?) node editor in FastNoise2 makes me still want something like that for Eto :D
Jordan Peck
@Auburn
Thanks, the FastNoise2 node editor uses https://github.com/Nelarius/imnodes
philstopford
@philstopford
Yeah - I recognized the look of the imgui from the Veldrid examples.
philstopford
@philstopford
Do you expect to have other implementations (C#, for example) for the FastNoise2, or is that version more for pure speed? Curious about your plans, and whether an Eto UI is being considered (with a node component :D)
Jordan Peck
@Auburn
FastNoise2 uses SIMD for performance and SIMD support isn't fully there yet for C#, can chat more on the FastNoise discord if you want
Jordan Peck
@Auburn
Is it possible to make a Scrollable only scroll vertically?
Curtis Wensley
@cwensley
@Auburn yes, set Scrollable.Content.Width = 1. It will (by default) expand to the width of the scrollable so it won’t actually be 1 pixel wide.
Jordan Peck
@Auburn
image.png
The Scrollable now doesn't auto size to the area though :/
realonepiecefreak
@onepiecefreak3
@cwensley Found out that I could use the ListBox for what I need. It also looks nearly exactly as I need it. Is there a way to vertically align the text in a ListBox somehow?
Curtis Wensley
@cwensley
Depends on the platform, there's no api in Eto for that. You can with a GridView, however as it is much more flexible.
Geoff McQueen
@geoff-m
speaking of vertically aligning text, is there any other way to do that?
i noticed FormattedText has alignment but it seems only horizontal
(even if not, using Measure/MeasureString is a possibility)
Curtis Wensley
@cwensley
vertical aligning? Like Label.VerticalAlignment = VerticalAlignment.Center ?
for a ListBox, there's no API for that, as I mentioned.
With FormattedText, you can Measure and then align it wherever you want.
though that assumes you're using a Drawable to draw the text.
Geoff McQueen
@geoff-m
yeah i am using Drawable
Jordan Peck
@Auburn
Is it possible to create a framework-dependant cross-platform binary when using eto.forms?
realonepiecefreak
@onepiecefreak3
As far as I'm aware, you could theoretically execute every binary by Eto.Forms on any platform. However the technology used behind the specific Eto platform is the limiting factor. I would say, using something like GDK or OpenTK as your platform should make it executable cross-platform, given the respective dependincies are installed of course.
You cannot create an Eto.Forms application based on WPF or WinForms and execute it on Linux or Mac, as far as I'm aware, since the netcore framework does not support them either, and Eto "merely" relies on both existing technologies to wrap around.
Jordan Peck
@Auburn
And there is no way to conditionally load the correct platform.dll at runtime?
Curtis Wensley
@cwensley
@Auburn you could, theoretically do that, yes. This is how it worked when using .NET Framework or mono. It gets complicated on .NET Core/5+ as you can only compile Wpf or WinForms on windows. I might be able to "fix" that by removing the Microsoft.WindowsDesktop.App framework reference, but I don't know if that'll break other things.
Jordan Peck
@Auburn
Can you make the Microsoft.WindowsDesktop.App framework reference conditional?
Curtis Wensley
@cwensley
Not as far as I understand how nupkg's work..
It's either required or not..
Jordan Peck
@Auburn
I'm trying to publish for osx-x64 but it's giving me this error
Optimizing assemblies for size is not supported for the selected publish configuration. Please ensure that you are publishing a self-contained app.
linux-x64 and win-x64 are fine, and Google isn't giving any helpful answers
It works if I do a self contained binary, but I don't really want that