Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    carlTLR
    @carlTLR
    Specifically, if I wanted to change the color of a button when it is pressed, I have to modify the theme, which means modifying gxui. It seems like a theme could be specified by the user, since the light and dark themes are really a collection of colours.
    Is there a reason why users of the library were not allowed to specify a theme at runtime?
    cor-bos
    @cor-bos
    Hi, If I want to open a sub window while in the main window, what is the right way to connect the sub window to the main window? Also catching the close event of the sub window so that the adjustments in the sub window can be processed. I couldn't find any examples. If anyone could give me an example that would be nice. Thanks.
    Ben Clayton
    @ben-clayton
    @carlTLR there was no decision to lock-down the apperance
    of controls - the original goal was that the dark package provided a very simple example of implementing a theme
    The light theme was pretty much a fork of that
    I'm not opposed to making the theme colors controllable at runtime, but it sounds like you're wanting to control a button's colors on a per-instance basis
    In that case, I'd probably recommend 'deriving' your own version of Button and overriding the Paint method as you see fit
    Ben Clayton
    @ben-clayton
    @cor-bos I'm not sure I understand what you mean by "connect the sub window to the main window"
    Theme has CreateWindow() to spawn new windows. You can add listeners to that window's OnClose event.
    You probably know all this, so I'm probably just not understanding your question
    Samuel Nelson
    @nelsam

    What is the correct method to overwrite text (for completions, snippets, electric braces, or other forms of automatic code writing) in a mixins.CodeEditor without access to mixins.CodeEditor.TextBox.controller? I see the code editor using the controller field to apply code suggestions and indentation, but the field isn't exported and doesn't have any getters, so far as I can see. I suppose I can use SetText, but that seems overkill.

    On a similar note, how bad an idea would it be to export access to that controller field? I find myself wanting access to it more and more as I go on; but that may just mean that I should be implementing my own gxui.CodeEditor without using the mixins.

    carlTLR
    @carlTLR
    @ben-clayton No, not aiming to control things per instance. Being able to specify a theme structure once at startup would be enough for me. I like that the design basically gives you consistent looking elements.
    cor-bos
    @cor-bos
    @ben-clayton When I put my question on the board I didn't but in the meantime I found out how. But now a strange problem pops up. On my linux labtop everything run as it should be but when compile for Windows the main window is fine but the second window stays black. The controls are missing. Could it be a memory problem? The windows pc has 2GB of ram memory, that should be enough for such a simple program is my guess.
    kelwang
    @kelwang
    for some reason, label.setText, won't work for utf-8 chars, not sure what I was missing
    guess I missed the font, seems font is an interface, what's easiest way to add the font?
    sol
    @s-ol
    are there screenshots available somewhere?
    Ben Clayton
    @ben-clayton
    You can use custom fonts by using Driver.CreateFont:
    https://github.com/google/gxui/blob/master/driver.go#L29
    @S0lll0s - sorry I haven't got around to uploading screenshots. I see you've found the PR, I think adding them to another branch is a good idea. There is the gh-pages branch which is what gxui.io points to. Perhaps that is the most sensible place for them
    www.gxui.io that is
    sol
    @s-ol
    @ben-clayton "> I see you've found the PR" uh.... I haven't...?
    sol
    @s-ol
    now I have though.
    Ben Clayton
    @ben-clayton
    ah, sorry, my bad.
    My main account
    @git123hub
    Gitter
    devin5411
    @devin5411
    This message was deleted
    chitra
    @Chitratech
    hi
    Rosen Lu
    @lucumt
    Hi
    I am a new gopher
    Enea Marius
    @eneamarius
    dasdcs1
    @dasdcs1
    This message was deleted
    manyak12345
    @manyak12345
    hello
    Sherrin John
    @sherrinjv_twitter
    Test
    Roy Charles
    @kYsShu
    hi everyone :)
    alberto.garcia
    @albertog
    Can someone confirm me if gxui is discontinued?
    Ben Clayton
    @ben-clayton
    @albertog - for the time being yes. If I find myself with some free time, I'd love to revisit it, but until then I'm afraid so.
    Sherrin John
    @sherrinjv_twitter
    Testing
    Joey Perme
    @joeyperme_twitter
    Are there any good alternatives for Golang GUI support?
    Working on creating a GUI interface for desktop trading over Robinhood.
    @ben-clayton
    Ben Clayton
    @ben-clayton
    @joeyperme_twitter - the best list of alternatives that I'm aware of is at https://github.com/avelino/awesome-go#gui
    ric026
    @ric026
    Ok
    Fidel Ramadhan
    @fidellr
    hi, i'm a new gopher.. could anyone suggest me where i should learn go from?
    DaivikDave
    @DaivikDave
    I just installed ubuntu along with windows . Everything works fine except internet is not working in ubuntu .can someone help me?
    flacko
    @theflacko
    hello (=
    HEBIN
    @hoobean1996
    hello - -
    jayboyY1
    @jayboyY1
    file:///storage/emulated/0/Download/images.jpeg
    Anshuman Pattnaik
    @anshumanpattnaik

    Hell everyone,

    It's great to join this community and I would like to introduce you to my YouTube channel and my channel is dedicated to Game Development, Application Development & Ethical Hacking tutorials and I'll be posting many videos on these areas.

    Channel Link :- https://www.youtube.com/channel/UCxba1-Auu5bGLBPyFtMnq9w

    If you like my current videos then please do LIKE, SUBSCRIBE and COMMENT to my channel.

    Thanks
    Anshuman Pattnaik

    Ghost
    @ghost~5d72f7fad73408ce4fca3ea7