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
Jordan Peck
@Auburn
Yup I have all of those
Curtis Wensley
@cwensley
Hm.. could you zip it up and send it over? I can take a look at what's going on.
That is just missing my changes to add references to Eto.Platform.Gtk
Curtis Wensley
@cwensley
gotcha.
could you add them in a branch so I can see what you did?
Jordan Peck
@Auburn
Currently I've just replaced Eto.Platform.Wpf with Eto.Platform.Gtk while I'm trying to get it working
Curtis Wensley
@cwensley
ah ok, let me give it a go.
Jordan Peck
@Auburn
And tried switching to 2.5.10, but 2.5.2 didn't work either
If I put a breakpoint into the constructor of my Form is does get hit
And I don't have any code that triggers Application.Instance.Quit()
Thanks for having a look
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