Getting started

I would like to use HaxeUI but I’m new to it.
Why not add a ‘Getting started’ section to your website (http://haxeui.org/)?

I know a similiar question about starting with HaxeUI was posted here (How to get started?).
However it’s about Linux (so about custom configuration).

I’ve seen there are lots of examples on “http://ha xeui.org/explorer/
but it’s not written how to compile/build/debug/run them on desktop.

There are more templates on GitHub (“https://github.com/haxeui/ha xeui-templates/tree/master/command-line”), unfortunately they don’t seem to work for me.
Is there maybe some HelloWorld I could rely on? This would be really great.
I found this (“https://git hub.com/haxeui/haxeui-guides/blob/master/hello-world.md”) emtpy md-document instead.

https://git hub.com/haxeui/haxeui-core
By the way, this link, which contains some very important information
on installation etc. is missing on “http://ha xeui.org/

And I feel like it should be noticed somewhere on the official website that
there is a disctinct difference to
https://git hub.com/ianharrigan/haxeui

Thank you!!

ps. Sorry I had to mess up the links because new users are not allowed to use more than 2 links. (lol, srsly??)

Yeah, completely agree. There was the beginning of a getting started on my old SSD but it got lost unfortunately - but you are 100% - its about time something was up there to help new users get started.

Ill hopefully have time this week / next week to go on a little “documentation drive” after a little bit of a bug hunt.

Cheers,
Ian

1 Like

FYI, ive upped the new user settings too (as yeah, the default of 2 links seems a little silly for a forum like this that is hugely busy).

1 Like

Also, i just reread your post properly :slight_smile:

The templates are indeed out of date, and i should get rid of them, an easy way to setup up a project is to use the command line tool, something like:

haxelib run haxeui-core create [backend]

where backend one of:

  • html5
  • hxwidgets
  • openfl
  • nme
  • pixijs
  • kha
  • winforms
  • android
  • flixel
  • electron
  • qt

haxelib run haxeui-core help should give you some more info. Also, you should also be able to run haxelib run haxeui-core setup and that should setup a “haxeui alias” so now you can just run haxeui create ... , this has only be tested properly on windows though, so might not be working correctly on linux / osx.

3 Likes

Hey, thanks a lot for your reply. I didn’t expect it this fast.
OK, actually things started to work out after I removed/reinstalled/updated all haxeui libraries.

In the end:
Html5 did work well (with Firefox),
OpenFL, too, however the graphics were blurry.
WinForms (guess not fully supported) did not work for now on my system (Windows 10).

(By the way the alias for haxeui via haxelib run haxeui-core setup did work, too)

So, thanks a lot for the support.
For more details see below.


First I removed all haxeui libraries and reinstalled HaxeUI-Core (“Core”!!):
haxelib install haxeui-core

I got some backends I’d like to try out:
haxelib install haxeui-html5
haxelib install haxeui-openfl
haxelib install haxeui-winforms

Then tested each:

I created a project folder ‘FirstTryWithHtml5’ and in there:
haxelib run haxeui-core create html5
haxelib run haxeui-core build html5
(I could then successfully run the index.html on Firefox by which I mean
the displayed button ‘Click Me!’ switched to ‘Thanks!’ on click etc.)

I created a project folder ‘FirstTryWithOpenFL’ and in there:
haxelib run haxeui-core create openfl
haxelib run haxeui-core test openfl
(I had to reinstall OpenFL properly:
haxelib install openfl
haxelib run openfl setup
)

I created a project folder ‘FirstTryWithWinForms’ and in there:
haxelib run haxeui-core create winforms
haxelib run haxeui-core test winforms

Building for haxeui-winforms using “haxe winforms.hxml”

C:\Installierte Programme\HaxeToolkit\haxe\lib\haxeui-winforms/1,0,0/haxe/ui/backend/ScreenImpl.hx:41: lines 41-44 : Field removeComponent overrides parent class with different or incomplete type
C:\Installierte Programme\HaxeToolkit\haxe\lib\haxeui-core/1,0,25/haxe/ui/backend/ScreenBase.hx:56: lines 56-58 : Base field is defined here
C:\Installierte Programme\HaxeToolkit\haxe\lib\haxeui-winforms/1,0,0/haxe/ui/backend/ScreenImpl.hx:7: lines 7-75 : Defined in this class
C:\Installierte Programme\HaxeToolkit\haxe\lib\haxeui-winforms/1,0,0/haxe/ui/backend/ScreenImpl.hx:41: lines 41-44 : error: Void should be haxe.ui.core.Component
C:\Installierte Programme\HaxeToolkit\haxe\lib\haxeui-winforms/1,0,0/haxe/ui/backend/ScreenImpl.hx:41: lines 41-44 : have: (…) → Void
C:\Installierte Programme\HaxeToolkit\haxe\lib\haxeui-winforms/1,0,0/haxe/ui/backend/ScreenImpl.hx:41: lines 41-44 : want: (…) → haxe.ui.core.Component
C:\Installierte Programme\HaxeToolkit\haxe\lib\haxeui-core/1,0,25/haxe/ui/core/Screen.hx:50: lines 50-56 : Field removeComponent overrides parent class with different or incomplete type
C:\Installierte Programme\HaxeToolkit\haxe\lib\haxeui-winforms/1,0,0/haxe/ui/backend/ScreenImpl.hx:41: lines 41-44 : Base field is defined here
C:\Installierte Programme\HaxeToolkit\haxe\lib\haxeui-core/1,0,25/haxe/ui/core/Screen.hx:12: lines 12-132 : Defined in this class
C:\Installierte Programme\HaxeToolkit\haxe\lib\haxeui-core/1,0,25/haxe/ui/core/Screen.hx:50: lines 50-56 : error: haxe.ui.core.Component should be Void
C:\Installierte Programme\HaxeToolkit\haxe\lib\haxeui-core/1,0,25/haxe/ui/core/Screen.hx:50: lines 50-56 : have: (…) → haxe.ui.core.Component
C:\Installierte Programme\HaxeToolkit\haxe\lib\haxeui-core/1,0,25/haxe/ui/core/Screen.hx:50: lines 50-56 : want: (…) → Void
C:\Installierte Programme\HaxeToolkit\haxe\lib\haxeui-winforms/1,0,0/haxe/ui/backend/ScreenImpl.hx:35: lines 35-39 : Field addComponent overrides parent class with different or incomplete type
C:\Installierte Programme\HaxeToolkit\haxe\lib\haxeui-core/1,0,25/haxe/ui/backend/ScreenBase.hx:52: lines 52-54 : Base field is defined here
C:\Installierte Programme\HaxeToolkit\haxe\lib\haxeui-winforms/1,0,0/haxe/ui/backend/ScreenImpl.hx:7: lines 7-75 : Defined in this class
C:\Installierte Programme\HaxeToolkit\haxe\lib\haxeui-winforms/1,0,0/haxe/ui/backend/ScreenImpl.hx:35: lines 35-39 : error: Void should be haxe.ui.core.Component
C:\Installierte Programme\HaxeToolkit\haxe\lib\haxeui-winforms/1,0,0/haxe/ui/backend/ScreenImpl.hx:35: lines 35-39 : have: (…) → Void
C:\Installierte Programme\HaxeToolkit\haxe\lib\haxeui-winforms/1,0,0/haxe/ui/backend/ScreenImpl.hx:35: lines 35-39 : want: (…) → haxe.ui.core.Component
C:\Installierte Programme\HaxeToolkit\haxe\lib\haxeui-core/1,0,25/haxe/ui/core/Screen.hx:37: lines 37-48 : Field addComponent overrides parent class with different or incomplete type
C:\Installierte Programme\HaxeToolkit\haxe\lib\haxeui-winforms/1,0,0/haxe/ui/backend/ScreenImpl.hx:35: lines 35-39 : Base field is defined here
C:\Installierte Programme\HaxeToolkit\haxe\lib\haxeui-core/1,0,25/haxe/ui/core/Screen.hx:12: lines 12-132 : Defined in this class
C:\Installierte Programme\HaxeToolkit\haxe\lib\haxeui-core/1,0,25/haxe/ui/core/Screen.hx:37: lines 37-48 : error: haxe.ui.core.Component should be Void
C:\Installierte Programme\HaxeToolkit\haxe\lib\haxeui-core/1,0,25/haxe/ui/core/Screen.hx:37: lines 37-48 : have: (…) → haxe.ui.core.Component
C:\Installierte Programme\HaxeToolkit\haxe\lib\haxeui-core/1,0,25/haxe/ui/core/Screen.hx:37: lines 37-48 : want: (…) → Void
Using name from descriptor “descriptors.HxmlFile”: “Main”
running: build/winforms/bin/Main
Process creation failure : build/winforms/bin/Main

Yeah, i havent run winforms in a while, i actually thought i had lost for a long time! I guess it drifted from haxeui-core, ill have a look at it a little later… When you say blurry graphics on openfl, can you be more specific / give a screen shot?

Cheers,
Ian

Hello @AlienBuchner

Welcome to the forum. I’ll see what i can find for you as well that you can use to learn some of the basics. I happen to come across a few nice links earlier today that were easy to understand and follow.

Here is one link, they have examples for a few different languages, all very similar, easy to follow.

-Shaun

1 Like

screenshot

haxeui-winforms is fixed now (in the sense the basic app compiles) - i havent looked REALLY deep into to make sure it all works, but i will when i get a moment. A (very) basic test seems OK though:

image

can you use the git versions of haxeui-* ? I havent made a release in a while, and i broke a few things recently, so need to fix them before i do.

(let me know if you dont know how to use git versions of haxelibs)

EDIT: heres my openfl+html5 output of the app above:

image

WinForms should be accessable for haxe:
haxelib install haxeui-winforms
Output: You already have haxeui-winforms version 1.0.0 installed
haxelib update haxeui-winforms
Output: haxeui-winforms is up to date

(OK, a 1.0.0 version…if this is correct)

I’m not exactly sure what you mean with “git versions of haxelibs
does that mean I have to install them manually from git?

Ok, so what i mean is that the version in haxelib (“haxelib install xyz”) is a specific “snapshot” of the source, which is fairly out of date at this point, however, you can get haxelib to point to another version (either locally, or git etc). So for example, latest haxeui-core git version is here: https://github.com/haxeui/haxeui-core

To use that version (ie latest master) with haxelib simple use:

haxelib git haxeui-core https://github.com/haxeui/haxeui-core

Same goes for everything else:

haxelib git haxeui-openfl https://github.com/haxeui/haxeui-openfl
haxelib git haxeui-winforms https://github.com/haxeui/haxeui-winforms
haxelib git haxeui-html5 https://github.com/haxeui/haxeui-html5
etc

Hopefully that helps?

Ian

2 Likes

If it could help you, this page is interesting when you start with haxeui
http://www.unexpected-vortices.com/haxe/haxeui-tut/index.html

2 Likes

Thank you @WillNa , that does have some handy tidbits.

that did help! WinForms works now! Thank you.
I guess these snapshots will be master/official in the future…

Yeah, ill make some haxelib releases soon™, i just need to make sure things are working correctly before i do.

Glad it helped.

Cheers,
Ian

1 Like