haxeui / hxWidgets

Haxe externs (and wrappers) for wxWidgets
MIT License
77 stars 22 forks source link

Missing elements #23

Closed sumo961 closed 8 years ago

sumo961 commented 8 years ago

Looking through the code more, there are several missing elements on OS X/wxwidgets 3.0.2:

ianharrigan commented 8 years ago

Ill have to double check the other issues, though i dont remember them being issues (although im using a mac vm so not sure if that could be related).

However, as you mentioned i have noticed the DC stuff not working at all on mac / linux, which ive been meaning to take another look at. Unfortunately time isnt my friend at the moment.

sumo961 commented 8 years ago

Thanks.

One thing - are you using WXwidgets 3.0.2 or 3.1?

Another thing - could some things be ported over from the waxe project? I think you're approach is quite different how you make the "glue", so I'm not sure. One nice thing waxe had, was a way to handle OS X Menu items like this:

    //file.append(App.s_macAboutMenuItemId, "About Simple.hx");
    //file.append(App.s_macPreferencesMenuItemId, "Preferences of

Simple.hx"); //file.append(App.s_macExitMenuItemId, "Exit");

On Sat, Apr 9, 2016 at 6:45 AM, Ian Harrigan notifications@github.com wrote:

Ill have to double check the other issues, though i dont remember them being issues (although im using a mac vm so not sure if that could be related).

However, as you mentioned i have noticed the DC stuff not working at all on mac / linux, which ive been meaning to take another look at. Unfortunately time isnt my friend at the moment.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/ianharrigan/hxWidgets/issues/23#issuecomment-207768419

ianharrigan commented 8 years ago

Ok, so as far as the menus go you have a few options now:

file.appendItem(new MenuItem(file, null, null, StandardIds.ABOUT));
file.appendItem(new MenuItem.PreferencesMenuItem(file));
file.append(StandardIds.EXIT);
sumo961 commented 8 years ago

Updated list of what works/what's missing on my system

What's missing:

Thanks - keep up the good work

ianharrigan commented 8 years ago

Ok, great... slowly moving forward! :)

Any chance you can send a screen shot? It might just be that some controls are underneath other controls. Also I had to remove the menu stuff i detailed above as it didnt seem available in linux, so will have to rethink it somewhat. Still, progress is progress.

Cheers, Ian

ianharrigan commented 8 years ago

(Also you might want to grab the latest ive just pushed also)

sumo961 commented 8 years ago

Cool - further improvements:

DC area now has red background and text "Test" appears.

Other issues still exist including the strange "openFL button only become visible once clicked on"

Cheers,

Hartmut

On Tue, Apr 26, 2016 at 4:01 AM, Ian Harrigan notifications@github.com wrote:

(Also you might want to grab the latest ive just pushed also)

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/ianharrigan/hxWidgets/issues/23#issuecomment-214660907

ianharrigan commented 8 years ago

Have you got a screen shot btw? Just want to check something.

sumo961 commented 8 years ago

It seems I cannot sent screenshots here.

https://www.dropbox.com/s/olckp6o2im0d4hi/Bildschirmfoto%202016-04-27%20um%2011.48.48.png?dl=0

https://www.dropbox.com/s/o2gvfcy0esl19v0/Bildschirmfoto%202016-04-26%20um%2019.32.26.png?dl=0

ianharrigan commented 8 years ago

Hi Sumo,

When you get a moment can you pull latest demo and try again... one thing to now about this is that the "drawing" page doesnt work. Im not quite sure what it is, but something strange happens on osx. But you should be able to flip between the pages now and see components. Bizarrely the event handler for the event when the notebook page changed needed an e.skip() - not totally sure why, but my guess is that it was "eating" the event so the OS never knew it had been changed and thus to relayout everything - not sure.

Anyways, let me know if it works (screen shot would be good too!)

sumo961 commented 8 years ago

Right now I get a compile error - do I need a different version of hxcpp?

./src/hx/widgets/TextCtrl.cpp:46:16: error: ambiguous conversion for functional-style cast from 'Pointer' to '::cpp::Pointer'

ianharrigan commented 8 years ago

you need git version of hxcpp

sumo961 commented 8 years ago

but which version? - The version I have worked before

On Sat, May 7, 2016 at 3:49 AM, Ian Harrigan notifications@github.com wrote:

you need git version of hxcpp

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/ianharrigan/hxWidgets/issues/23#issuecomment-217614307

ibilon commented 8 years ago

The latest commit, a lot was fixed and added.

sumo961 commented 8 years ago

OK, I got it running now.

First tab: the multiline text control is "smashed" and nothing on drawing tap other than black background.

Console shows: 12:48:12: Debug: wxColour::Set - couldn't set to colour string 'CYAN' 12:48:12: Debug: wxColour::Set - couldn't set to colour string 'GREY' 12:48:12: Debug: wxColour::Set - couldn't set to colour string 'LIGHT GREY' 12:48:12: Debug: wxColour::Set - couldn't set to colour string 'MEDIUM GREY'

bildschirmfoto 2016-05-08 um 12 45 54 bildschirmfoto 2016-05-08 um 12 44 52 bildschirmfoto 2016-05-08 um 12 44 39

ianharrigan commented 8 years ago

Yeah, ive noticed those two issues on my VM too... Something to do with the sizers (for the text field) and not sure about the drawing dialog... seems like the paint isnt handled correctly... Still, apart from that looking pretty good.

sumo961 commented 8 years ago

Yes, definitely progress. Keep up the good work.

Here are two questions:

Von meinem iPhone gesendet

Am 08.05.2016 um 13:33 schrieb Ian Harrigan notifications@github.com:

Yeah, ive noticed those two issues on my VM too... Something to do with the sizers (for the text field) and not sure about the drawing dialog... seems like the paint isnt handled correctly... Still, apart from that looking pretty good.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub

ibilon commented 8 years ago
  • will there be native file dialogs?
  • will drag and drop be possible?

wxWidgets supports both of these, and they are useful, so yes ;)

sumo961 commented 8 years ago

Great!

On Sun, May 8, 2016 at 1:56 PM, Valentin Lemière notifications@github.com wrote:

  • will there be native file dialogs?
  • will drag and drop be possible?

wxWidgets supports both of these, and they are useful, so yes ;)

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/ianharrigan/hxWidgets/issues/23#issuecomment-217736325

ianharrigan commented 8 years ago

Ok, so i think im going to close this issue and open up new ones about the text field and drawing... As well as some feature requests for file dialogs and drag and drop... Ok with you @sumo961?

ianharrigan commented 8 years ago

Here are the new issues:

sumo961 commented 8 years ago

Sounds good

Von meinem iPhone gesendet

Am 09.05.2016 um 03:12 schrieb Ian Harrigan notifications@github.com:

Ok, so i think im going to close this issue and open up new ones about the text field and drawing... As well as some feature requests for file dialogs and drag and drop... Ok with you @sumo961?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub