terjeio / ioSender

A GCode Sender for Grbl and grblHAL written in C# (Windows only).
BSD 3-Clause "New" or "Revised" License
207 stars 65 forks source link

Feature request: Portrait Support. #277

Open LoganFraser opened 1 year ago

LoganFraser commented 1 year ago

There's a bunch of low-cost portable touchscreens with 1080p (1920x1080) that would be great mounted to a CNC in portrait mode. It's not wide enough for XL when I loaded it so using Standard, there's plenty of room to have the Jogger displayed in the middle at the top of the layout, console below that, and then the remaining half for either 3d or program view.

terjeio commented 1 year ago

You can try that?

The UI layout for the center part of the Grbl tab is here. Unwrap and remove the tab control and replace the dock panel with a vertical stack panel should work. You may keep the tab control without the console if you want both the 3D view and the program view. The jogger is added here, and can be moved to the new stack panel.

LoganFraser commented 1 year ago

I appreciate your pointing out the locations. I'll see if I can get someone from the PrintNC discord to follow up. I'm an electrician/hardware design guy, my programming skills are extremely limited. Thanks for the reply. :)

mintracer commented 1 year ago

Hi Terje,

so this is my first attempt in changing an UI in Visual Studio... My first touch with this program :) I changed the JobView.xaml to a Grid Layout - 2 Colums and 3 Rows I hope you like it and can give me some hints how to make it better :)

btw. The Gcode is just a double bottle opener... :D

WhatsApp Image 2023-03-19 at 19 01 38 WhatsApp Image 2023-03-19 at 19 06 17

terjeio commented 1 year ago

Looks good - but it is wide enough for the probing tabs?

Instead of two columns at the top three will be better? At least with more than 3 axes configured? IMO Program limits could be moved to the center column.

mintracer commented 1 year ago

todays progress... :)

Screenshot 2023-03-20 212031

terjeio commented 1 year ago

I have to admit that I am old fashioned and do not fancy such colorful displays. Users younger than me migh have a different opinion - and I am ok with that. Hopefully someone else can comment too.

mmaczollek commented 1 year ago

I would love a dark theme to the program. I spend a lot of time on computers for work and the light background gives me migraines. @mintracer, can you share that UI somehow? It looks really great.

mintracer commented 1 year ago

I would love a dark theme to the program. I spend a lot of time on computers for work and the light background gives me migraines. @mintracer, can you share that UI somehow? It looks really great.

it´s a really early preview... since i´m not a professional coder as Terje is... I´m learning all the wpf theming... so it will take a while before any "sharing" will be possible.. and offcourse Terje has the last word on it... it is his "baby" ;)

@terjeio is there a central place for all the coloring in wpf? such as css on websites?

terjeio commented 1 year ago

is there a central place for all the coloring in wpf? such as css on websites?

I have not read up on theming in WPF apps so I do not know what is required nor how it is done

axg20202 commented 9 months ago

Hi all. Sorry to revive this old thread, but is anyone able to share a portrait layout (just the JobView.xaml, preferably), in default colours?

LoganFraser commented 9 months ago

There's a touch focused fork of iosender that has more direct support for portrait. My machine is currently in pieces so I haven't looked at it in detail yet but I'm impressed with what I have seen. https://github.com/Jay-Tech/ioSenderTouch/tree/IOSenderTouch

LoganFraser commented 9 months ago

Didn't mean to close it. ;)

axg20202 commented 9 months ago

Thanks. The issue is that I'm not using a touchscreen. Willing to consider switching to one though if it really is a good move.

phil-barrett commented 9 months ago

I'm looking at using a touch screen. A lot of people hate the idea of hooking up a PC to their CNC machine but love the idea of the Masso controller which is effectively the same with a touch screen. I think that using a breakoutboard, microPC and touchscreen could be about 75% of the cost of a Masso and way more flexible. Will be protoyping this fairly soon.

axg20202 commented 9 months ago

Are there touchscreens that are recommended or those to avoid? I've seen some comments on avoiding capacitive screens, but I think those are the affordable ones.

phil-barrett commented 9 months ago

actually, it is resistive touch that is slow an imprecise. cap is better.

I am looking for a windows touch screen that works with a "stock" miniPC. I believe they work by using a USB connection to emulate mouse/keyboard.

axg20202 commented 9 months ago

OK, good to know. I hope a capacitive screen won't go nuts as soon as my vfd fires up. I've seen quite a few all in one pc that have the guts of a mini pc built into the touchscreen too. I.e. Hp G2 touchscreen, Dell made some too.

phil-barrett commented 9 months ago

Yes, the all-in-one PCs will probably work ok but they tend to be expensive. I am seeing miniPCs that are in the $200-300 USD range that should work pretty well.

LoganFraser commented 9 months ago

I'm just using one of the portable USB-C powered 15" touchscreens available on Amazon. It works well enough.

axg20202 commented 9 months ago

I've decided against touch screen. Can anyone help me out with editing the job view xaml of the standard size iosender? I really like the first portrait layout shown towards the top of this thread. Even that job view file would be a huge help for me to get started on tweaking it further.

axg20202 commented 6 months ago

Just bumping this thread. Terje, is this something that you could support please? Being able to view ioSender in portrait would be hugely helpful but I am completely at sea when it comes to editing the code to achieve this.

andrewmarles commented 6 months ago

Hopefully @terjeio it is ok to post, but a user has done a beautiful port of the iosender codebase that is optimized for touch and has portrait support.

https://github.com/Jay-Tech/ioSenderTouch