These are chat archives for picoe/Eto

17th
Sep 2017
Markus Schaber
@markusschaber
Sep 17 2017 15:32
Does eto.Forms work with .NET Core?
philstopford
@philstopford
Sep 17 2017 16:57
Is there a way to consistently size/space WPF elements between Win10 and Win7. On Win10, my Eto/WPF UI looks fine, but Win7 has various elements overlapping due to size/padding changes (I guess)
Curtis Wensley
@cwensley
Sep 17 2017 20:46
@markusschaber: not at the moment, but soon (ish) it should now that .NET Core 2.0 is out. I've updated MonoMac to work on it, and it should also be able to work on linux using @cra0zy's native gtk port of Eto which removes the gtk# dependency.
As for windows, there's no UI framework that works on .net core.
Markus Schaber
@markusschaber
Sep 17 2017 20:46
@cwensley that's good news.
Curtis Wensley
@cwensley
Sep 17 2017 20:47
well, other than UWP I guess so that might be an option
Markus Schaber
@markusschaber
Sep 17 2017 20:47
I'm eagerly searching for an usable, cross-platform UI framework (mostly interested in Linux and Windows).
Curtis Wensley
@cwensley
Sep 17 2017 20:49
@philstopford: You shouldn't be setting the size of elements that change size based on the platform.. I can't remember, are you using a PixelLayout for you layout? That would also be a problem when trying to size controls on different platforms or between Win7 and Win10.
e.g. a TextBox you'd set the width, but not the height
so that the platform can decide what the ideal height is
philstopford
@philstopford
Sep 17 2017 22:14
Yeah, I'm using a PixelLayout because there's no obvious way to avoid that given the complexity of the UI I need to deliver.
What surprised me is that the WPF element sizes change from Win7 to Win10
Curtis Wensley
@cwensley
Sep 17 2017 22:30
yeah, that happened.. Is there really no way to use a TableLayout or DynamicLayout for your UI?
se5a
@se5a
Sep 17 2017 22:31
how much faster if at all is it to check value equality (for an int for example) than to just call OnPropertyChanged() and update the value on the ui without checking first?
I gues that depends on how often it changes...
Curtis Wensley
@cwensley
Sep 17 2017 22:32
Well, some platforms setting properties already check if it's the same value before doing anything..
but you can't guarantee that all properties behave that way
btw, working on this: https://imgur.com/a/pqK10
Finishing up the DocumentControl that @cra0zy started
se5a
@se5a
Sep 17 2017 22:35
Oh nice!
is the close tab x thing something new too or have you manually put that in the tab header, or is it something old that I've missed?
Curtis Wensley
@cwensley
Sep 17 2017 22:37
It's a new control. DocumentControl, much like TabControl but allows closing and reordering of tabs.
se5a
@se5a
Sep 17 2017 22:37
ahh a whole new control. cool.
Curtis Wensley
@cwensley
Sep 17 2017 22:37
This i hope to expand in the future to provide other 'views', e.g. an MDI environment
se5a
@se5a
Sep 17 2017 22:39
that'd be pretty mint
Curtis Wensley
@cwensley
Sep 17 2017 22:40
at least, depending on demand. A lot of people have asked for a way to have closable tabs, so this should make it super easy.
I only know of one person recently that asked for MDI..
se5a
@se5a
Sep 17 2017 22:45
I might use it if I had it.
I probably would use it depending on how much implementation work there was trying to set it up.
how much stuff I'd have to change to the exsisting code
how far did you guys get with the OpenGL stuff?
Curtis Wensley
@cwensley
Sep 17 2017 22:48
I dunno, you'd have to ask @philstopford
Harry
@cra0zy
Sep 17 2017 22:48
@cwensley I kind of forgot that I didn't finish the themed handler, lol....
nice to see it finished
Curtis Wensley
@cwensley
Sep 17 2017 22:50
(;
It's not done yet.. I need to add some unit tests
to make sure all the load events work correctly.
Harry
@cra0zy
Sep 17 2017 22:52
btw. any update on the custom layout logic you were working on?
Curtis Wensley
@cwensley
Sep 17 2017 22:53
No, sorry. Drag 'n Drop has bubbled up to the front of my (paid for) list of things to do.
I initially was looking at the layout stuff due to a perceived notion that it was required, but nothing has come up that can't be done with the existing layout yet.
Harry
@cra0zy
Sep 17 2017 22:54
that's fine
se5a
@se5a
Sep 17 2017 23:00
I did try building the xamarin forms eto addin, it took forever and I got distracted with something else, but it ended up failing. I forget or didn't look at what the problem was. I'll try it again.
Harry
@cra0zy
Sep 17 2017 23:06
@cwensley I discovered something strange
se5a
@se5a
Sep 17 2017 23:06
humn, it's not loading some of the projects now in MD7.1 - something about unknown item type and unknown solution item type.
Harry
@cra0zy
Sep 17 2017 23:07
2 inconsistent behavior of gtk 3 between Arch Linux and Ubuntu 16.04
numeric stepper is broken on Ubuntu 16.04, the size becomes way too large
you can see it in the test app
it however works just fine with Arch
on the other hand Label warping does not work on Arch
but it does on Ubuntu
I always thought that was a general gtk 3 bug
se5a
@se5a
Sep 17 2017 23:09
you know what I don't understand? is error dialogs which you can't copy the error so you can paste the damn thing to google it.
Harry
@cra0zy
Sep 17 2017 23:12
hey, at least you get an error message
I have the dialogs that just tell you Error 3
guid looks like it matches
Harry
@cra0zy
Sep 17 2017 23:13
btw. I don't think you'll get the addin compiled for the new version of MD
se5a
@se5a
Sep 17 2017 23:13
ah
Harry
@cra0zy
Sep 17 2017 23:13
because template format got changed
again
se5a
@se5a
Sep 17 2017 23:13
that... oh
humn
ok I thnk I've got an older version... in flatpak
Harry
@cra0zy
Sep 17 2017 23:13
even worse
se5a
@se5a
Sep 17 2017 23:14
humn
fun
heh
Harry
@cra0zy
Sep 17 2017 23:14
flatpak sandboxes MD
se5a
@se5a
Sep 17 2017 23:14
yeah
Harry
@cra0zy
Sep 17 2017 23:14
no one wants to fix dbus sharp
so for example you can't debug a gtk# 3 app
se5a
@se5a
Sep 17 2017 23:14
your script needs to have a flag to define a version of MD, :p
Harry
@cra0zy
Sep 17 2017 23:15
monodevelop-stable --help | grep 1
se5a
@se5a
Sep 17 2017 23:19
was it dbus sharp that jo said needed fixing to get it to run flatpak outside the sandbox?
Harry
@cra0zy
Sep 17 2017 23:19
to launch apps from outside sandbox
yes
it's missing fd support
(fd is pretty much an int under most implementations)
(or at least it's an int under all that I know of)
(fd = file descriptor, it's something like a stream)
(the lower level)
se5a
@se5a
Sep 17 2017 23:21
it's things like this that'd be good for some kind of bounty
Harry
@cra0zy
Sep 17 2017 23:21
I actually know how to fix it, tho MD failed me one too many times, I refuse to do any work on it
se5a
@se5a
Sep 17 2017 23:22
heh.
I feel like I have a love hate relationship with MD
Curtis Wensley
@cwensley
Sep 17 2017 23:24
I have a pretty much hate-hate relationship with MD on linux
Harry
@cra0zy
Sep 17 2017 23:25
same here
these days I just use vs code...
se5a
@se5a
Sep 17 2017 23:25
I feel like it's gotten better, but I'm not sure if that feeling is just some sort of stockhold syndrome.
Harry
@cra0zy
Sep 17 2017 23:25
most of the time at least
"calm before the storm" eh
se5a
@se5a
Sep 17 2017 23:26
I felt like vscode took too long to figure out how to set up how I wanted it.
Harry
@cra0zy
Sep 17 2017 23:26
once you get used to it it's amaizing
I also use it for C/C++ stuff and HTML/CSS/JS/PHP stuff
its ability to setup custom tasks is perfect for me
se5a
@se5a
Sep 17 2017 23:28
I used rider for a bit. I liked that. though there were some somewhat low level annoyances that just didn't get fixed. like tooltip text covering up tabs so you couldnt click on them.
it's a bit more stable... sortof, than MD. MD crashes compleatly from tiem to time. rider just throws an error and keeps going.
Harry
@cra0zy
Sep 17 2017 23:29
rider is... HORRIBLE
try to compile Eto source code with it
I'll congrat you if you succeed
se5a
@se5a
Sep 17 2017 23:29
I think I tried once, I don't think it'd even load.
Harry
@cra0zy
Sep 17 2017 23:29
no, it loads
it just does not compile
se5a
@se5a
Sep 17 2017 23:31
yeah it's failing to find targets or something
Harry
@cra0zy
Sep 17 2017 23:34
one among many bugs
there is failing to include embedded resource
and ignoring #if defines
I have no idea how they managed to break it in so many ways
se5a
@se5a
Sep 17 2017 23:34
oh wow, I don't use those but that sounds kinda big.