Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing elements #23

Closed
sumo961 opened this issue Apr 8, 2016 · 22 comments
Closed

Missing elements #23

sumo961 opened this issue Apr 8, 2016 · 22 comments

Comments

@sumo961
Copy link

sumo961 commented Apr 8, 2016

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

  • no buttons on tabs 2 or 3 (but buttons in tab 1 are fine)
  • Open GL window has no content
  • The DC draw elements on the panel are missing (and is there initially supposed to be a blue line on a blue background?)
  • none of the images work (there is a warning initially about "invalid format")
@ianharrigan
Copy link
Member

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
Copy link
Author

sumo961 commented Apr 9, 2016

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
#23 (comment)

@ianharrigan
Copy link
Member

ianharrigan commented Apr 19, 2016

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
Copy link
Author

sumo961 commented Apr 26, 2016

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

  • images are all there now!
  • Most of the DC stuff works

What's missing:

  • Second vertical slider is not there (but I do see only the text 100 50 0 underneath a radio button)
  • "Test" DC element does not show
  • Open Gl button is invisible, appears once position is clicked
  • Open Gl window is just grey
  • Buttons on Tab 2 and 3 still missing

Thanks - keep up the good work

@ianharrigan
Copy link
Member

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
Copy link
Member

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

@sumo961
Copy link
Author

sumo961 commented Apr 27, 2016

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
#23 (comment)

@ianharrigan
Copy link
Member

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

@ianharrigan
Copy link
Member

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
Copy link
Author

sumo961 commented May 7, 2016

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
Copy link
Member

you need git version of hxcpp

@sumo961
Copy link
Author

sumo961 commented May 7, 2016

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
#23 (comment)

@ibilon
Copy link
Member

ibilon commented May 7, 2016

The latest commit,
a lot was fixed and added.

@sumo961
Copy link
Author

sumo961 commented May 8, 2016

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
Copy link
Member

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
Copy link
Author

sumo961 commented May 8, 2016

Yes, definitely progress. Keep up the good work.

Here are two questions:

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

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
Copy link
Member

ibilon commented May 8, 2016

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

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

@sumo961
Copy link
Author

sumo961 commented May 8, 2016

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
#23 (comment)

@ianharrigan
Copy link
Member

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?

@sumo961
Copy link
Author

sumo961 commented May 9, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants