GUI Problems

  1. ‹ Older
  2. last year

    If I would run a Linux virtual machine on my Mac and run Xojo on it, would the interfaces match?

  3. José M

    8 Aug 2018 Pre-Release Testers, Xojo Pro Spain

    @Donald P If I would run a Linux virtual machine on my Mac and run Xojo on it, would the interfaces match?

    If you run Linux in a VM and you design the app there, then you'll have the right components sizes for Linux (yes, the Linux IDE takes care of this). You can add a button, check the high properties and set that to the example. You'll see then the buttons are complete in the RPi (Or Linux) GUI.

  4. Ivan T

    8 Aug 2018 Pre-Release Testers
    Edited last year

    Just acept the facts. Xojo it is doing a terrible job with the default, optimized font size and font and font size, even the default control size.

    You have to make your controls bigger. And watch unsolved bugs, Combo box with large texts, Fontsize on texboxes, etc

  5. @Pedro I;Tellez Corella Just acept the facts. Xojo it is doing a terrible job with the default, optimized font size and font and font size, even the default control size.

    You have to make your controls bigger. And watch unsolved bugs, Combo box with large texts, Fontsize on texboxes, etc

    When you develop on a Mac, dragging a control from the Library gets you controls that are the right size for Mac. Same goes for Windows and for Linux. Until we have an autolayout engine for desktop apps there’s not much we can do about that.

    FWIW, generally controls have the following heights:

    Mac: 22px
    Windows: 24px
    Linux: 26px

  6. William R

    10 Aug 2018 Pre-Release Testers, Xojo Pro Irvine, California USA

    This might be the right place to mention this (for Donald's benefit).

    BEWARE GROUP BOX!

    Buttons placed inside a GroupBox 'shift' their click-area upwards about 1/2 of the control height. So if you can normally click anywhere inside a buttons bounds and register a down event, this event target area shifts to a position far above the button when placed in a GroupBox. So if you group a couple buttons on top of one another in the GUI and those buttons are in a GroupBox, you may accidentally register clicks on the wrong buttons.

  7. Eugene D

    10 Aug 2018 Pre-Release Testers, Xojo Pro Canada scispec.ca

    @WilliamReynolds Buttons placed inside a GroupBox 'shift' their click-area upwards about 1/2 of the control height. So if you can normally click anywhere inside a buttons bounds and register a down event, this event target area shifts to a position far above the button when placed in a GroupBox. So if you group a couple buttons on top of one another in the GUI and those buttons are in a GroupBox, you may accidentally register clicks on the wrong buttons.

    Hi William,

    A feedback report was made and it looks like it is fixed. My guess is for 2018 r3?

    Feedback Case #52538

  8. Alberto D

    10 Aug 2018 Pre-Release Testers

    Eugene, that case say: "Release: Xojo 2018r2" so it should be included in r2. If it is not working maybe it will be good to report it again.

    I see other case that say "Release: Xojo 2018r3" and was not included in r2.

  9. William R

    10 Aug 2018 Pre-Release Testers, Xojo Pro Irvine, California USA

    Existing Ticket: 52538 - Raspberry Pi groupbox controls misplaced on Pi, good on Windows 10
    (but it's set to Closed - and I can't request it be changed apparently)

    I've updated that ticket with today's notes. Hopefully that helps.

  10. Julian M

    12 Aug 2018 Pre-Release Testers, Xojo Pro San Francisco Bay Area

    @Greg OLone FWIW, generally controls have the following heights:

    Mac: 22px
    Windows: 24px
    Linux: 26px

    Looks like buttons, check box, menu and labels default to 20px high on Mac (2018r2). Text field defaults to 22px

  11. Greg O

    12 Aug 2018 Xojo Inc

    @Julian M Looks like buttons, check box, menu and labels default to 20px high on Mac (2018r2). Text field defaults to 22px

    True. If you use the same “offsets” though, I believe it’ll still work.

  12. OK, here's an update. The first picture is Linux Mint running in Fusion on my Mac. The second is Raspberry Pi debug.

    Is there any way to make the GUIs match?

    -image-

    -image-

  13. Mark C

    14 Aug 2018 Pre-Release Testers Spain 03170

    an application i have that is built for MAC Pi and win uses a method "SetPlatformSpecific" that changes the text sizes for several controls, the default sizes on each platform is not the same, there is a recent post about this subject that gives more information as to the platform standard pixel sizes for each.

  14. Greg O

    14 Aug 2018 Xojo Inc
    Edited last year

    @Donald P OK, here's an update. The first picture is Linux Mint running in Fusion on my Mac. The second is Raspberry Pi debug.

    Is there any way to make the GUIs match?

    -image-

    -image-

    By default you get the system font at the system font size. As you can see there, they are very different on Linux Mint and Raspbian so you’ll have to adjust.

  15. My last attempt was installing Raspberry Pi Desktop in a virtual machine. It looks just like the desktop on the Pi. Unfortunately, it is 32 bits and I was able to install Xojo, but it just disappears when it gets to the point of displaying the environment.

    Here's why I am trying to make this work. The last embedded controller I ran on a Pi had the 7" touch screen and around 12 screens with buttons and dialog boxes. It took a long time to adjust the boxes and font sizes to get it to look right on the Pi screen after everything looked right in the development environment. Even when I set the font size, it seemed like the kerning was different and messages would wrap around the screens.

    I was hoping Xojo would fix this problem.

  16. Ivan T

    15 Aug 2018 Pre-Release Testers
    Edited last year

    @Greg OLone When you develop on a Mac, dragging a control from the Library gets you controls that are the right size for Mac. Same goes for Windows and for Linux. Until we have an autolayout engine for desktop apps there’s not much we can do about that.

    @Greg OLone By default you get the system font at the system font size.

    That is not allways true.

    For example in windows, when I was testing with Static and other native Controls, when created whithout font, the default system font size IS BIGGER than the xojos controls, so, the font size is defined by xojo and NOT "controls that are the right size for Mac. Same goes for Windows."

    So, if xojo is really using some random value as default font size. It should be consistent on all platforms. In GTK xojo is using a FIX layout model, so, it shuld be also a fixed fontsize.

  17. 11 months ago

    Jürg O

    21 Sep 2018 Pre-Release Testers, Xojo Pro

    @Greg OLone FWIW, generally controls have the following heights: Linux: 26px

    I'm still trying to figure out a way to have the GTK-3 Controls reasonably sized (26).

    @Greg OLone By default you get the system font at the system font size. As you can see there, they are very different on Linux Mint and Raspbian so you’ll have to adjust.

    But I don't want to assign the Font "SmallSystem", just to have a huge PushButton with some tiny Text inside... I want the GTK-3 Controls to be sized at 26 (such as with GTK2 before).

    I've TextField and PushButton looking ok, but could need some help with ComboBox and PopupMenu.
    There's an example project in this forum thread .
    Maybe that styling approach could be used for RasPi, too - so I wonder what that example would look like on RasPi.

  18. Tim J

    21 Sep 2018 Pre-Release Testers, Xojo Pro Dehydrating in AZ

    What we need is a clear Xojo to GTK3 control mapping and a way to force CSS for an app.

    See GTK Themes and CSS discussion

  19. Tanner L

    is not verified 21 Sep 2018 Pre-Release Testers Toronto, Canada

    @Jürg O with ComboBox and PopupMenu.

    I posted in the other thread, but I'll follow up here.

    This is what I get with PopOS (Ubuntu deriv.) using your sample project with a simple mod.

    -image-

    I'm using this line for both Combobox and Popupmenu:

    Me.Style_Linux_GTK3_CSS = "min-height: 24px; min-width: 16px; border: 0px solid; border-radius: 5px; padding: 0 0px;"
  20. Jürg O

    23 Sep 2018 Pre-Release Testers, Xojo Pro

    @Tanner Lee I posted in the other thread

    Thanks.

    @Tanner Lee but I'll follow up here.

    I won't - the two seem to be quite the same. And I don't feel like double-posting everything.

  21. What I really don't understand is that I am not using the default size font. The font is specified and it is the same size on each platform. Maybe if the font was specified in pixels? Is there a way to do that?

or Sign Up to reply!