Does anybody know on how to make people able to move & resize specific object like buttons and text?
[Visual Studio | Windows Forms] moveable objects
Discussion in 'Rust Development' started by LaserHydra, Sep 12, 2015.
-
Draggable WinForms Controls - CodeProject
May be worth looking at -
-
From what I know there is nothing built in to allow that.. Winforms is a pretty static thing!
That project Norm recommended is probably your best shot at something like this unless you do it all yourself. The flexibility of .NET and the underlying Win32 platform is very powerful, but it's also pretty painful to toy with when you start doing things like that. -
You think I could maybe try making an Unity APP instead of an WinForm?
-
Never toyed with Unity, no clue. I would have said jquery, that thing is pretty kick ass to make things like this
-
[DOUBLEPOST=1442141042][/DOUBLEPOST]How would you Initialize a new button within a script? lol. New UnityEngine.UI.Button does not work -
I would use jquery to be honest, learning curve isn't that hard
-
-
jQuery -
-
-
[DOUBLEPOST=1442165283][/DOUBLEPOST] -
Jquery is to javascript what LINQ is to C#... and more... it's a very different way of doing things but extremely powerful with very little code. Good stuff, it's brilliant. -
Calytic Community Admin Community Mod
I have developed multiple WYSIWYG editors in the decade I have been coding. Any research on the subject will quickly reveal that developing a good WYSIWYG editor is really hard. Given your level of experience, I would not recommend this unless you are willing to put down weeks, possibly months, of effort. The problem seems trivial at first, and you think, "well if that moron Calytic can do it - so could I". And you can, but be prepared to be onslaught by a full regimen of, albeit common, difficult programming problems. Developing a WYSIWYG for me took about 2 weeks, and this was even still leveraging existing technologies to the fullest extent possible. I already knew how I would do it when I started, had a ton of prior experience doing similar applications, and fortunately it ended up working out for me. Even I ran into some unexpected obstacles but that is a story for another day.
There are 2 good ways to accomplish what you want. As others have stated, using HTML/JS is really the smartest move. Building a system like this using a conventional desktop application is only really feasible if you leverage an existing graphics engine and even then you'll have to spin up most of the components yourself. In contrast, a web-based solution with existing technologies is the easiest and least painful route. -
Good post cyclone and so true. This and damn text editors, looks so simple until you get into the million edge cases and "what ifs". I worked for 10 years on a wysiwyg win32 windows based app and man, we were still bitching at the complexity and limitations when I left the project. Its really not simple.