Jump to content

AlexK17

Members
  • Posts

    38
  • Joined

  • Last visited

Posts posted by AlexK17

  1. Hi.

    Code for all container generate by ugfx studio 0.24.1.

        // Page container
        wi.g.show = FALSE;
        wi.g.x = 0;
        wi.g.y = 0;
        wi.g.width = 240;
        wi.g.height = 320;
        wi.g.parent = 0;
        wi.text = "Container";
        wi.customDraw = background_OtherTestPageBg;
        wi.customParam = 0;
        wi.customStyle = &TextWhiteWS;
        ghPageContainerTermTestPage = gwinContainerCreate(0, &wi, GWIN_CONTAINER_BORDER);

    and 5 more similar containers as project pages. 

    If i redefine GWIN_CONTAINER_BORDER to zero in giu.c Coordinate and size still is good.

  2. Hi.

    In file gwin_container.c i found this #define BORDER_WIDTH        2 and change his value to zero. Coordinate displacement and resizing is not happening, but I'm not sure if I won't have problems in the future. I got problems because I tried to combine the background image in the main container and the buttons to speed up the work.

    Best regards.

  3. Hi

    I have the following problem. After creating an object, its coordinates and size can be changed by 1 or 2 points. Why?

    Part program from gui.c

        // ghPBChangeSpeed
        wi.g.show = TRUE;
        wi.g.x = 32;
        wi.g.y = 135;
        wi.g.width = 205;
        wi.g.height = 120;
        wi.g.parent = ghPageContainerTermTestPage;
        wi.text = "";
        wi.customDraw = FRNone;
        wi.customParam = 0;
        wi.customStyle = 0;
        ghPBChangeSpeed = gwinButtonCreate(0, &wi);

    Data from debuger in attached file.

    Almost all objects undergo coordinate changes.

    1.PNG

  4. Hi.

    GSourceHandle enterHandle = ginputGetToggle(GINPUT_TOGGLE_ENTER);

    Why can this string cause a compiler error? 

    Error[Pe059]: function call is not allowed in a constant expression

    but if use

    #define enterHandle   ginputGetToggle(GINPUT_TOGGLE_ENTER)

    It does not cause an error and works fine.

    Compiler IAR 7.5

    Best regards, Alexandr.

     

     

  5. Hi.

    I have the following situation.
    Two containers are on the same page. If necessary, one or the other can be seen. If I try to combine containers, then one becomes the parent of the other.How to avoid such a situation.
    The question is not on the topic. Prompt, please the correct way of creation a modal window by analogy with MessageDlg from windows api.

    Best regards.

    P.S. What function should menu item "Rise" do?

  6. 1 hour ago, AlexK17 said:

    Hi.

    I'm sorry, but it does not work. Labels are displayed only on the source page. What is my mistake, I do not understand.

    I'm sorry to trouble you.

    Best regards.

    P.S. In my project there is  page where there i't a single widget, just a background of two pictures. Only on this page the label widget are displayed normally.

    If i placed any widget on empty page, tow time label are not displayed.

  7. Hi.

    I do not know what I can do wrong.  I changed the parent to  label and container to which the label belongs, but both

    labels are shown only on the start page. In debug window i see that the variable flagы is different when the label widget

    is displayed on the page. Maybe it will tell you something.

    flags = 0x00013F00 if widget visible on page.

    flags = 0x00013D00 if widget not visible on page (parent this widget changed manually).

    Best regards.

  8. HI.

    I placed tow label widget in container, and changed parent properties this container.

    // this code not displayed datetime bar

    gwinHide(ghPageContainerStartPage);   // old parent page container for DateTimeBar

    ghDateTimeBar->parent = ghPageContainerSelectByTerminalPage;

    gwinShow(ghPageContainerSelectByTerminalPage);  // new parent page container for DateTimeBar

     

    Container displayed only page, where was created. I using uGFX-studio for generate project.

    In the previous case, I tried to change the property of parents label widgets. Sometimes this label widget displayed on new page? sometimes not displayed.

    Best regards.

  9. Hi.

    Tell me please the correct way, with which you can, for example, one label to show on several pages.

    Tried to replace the parent, but it does not work correctly.

    It is necessary for mine to display information such as date, time and so on.

     

    Best regards.

  10. 12 minutes ago, Joel Bodenmann said:

    I guess you simply didn't click the Close button in the target editor dialog. I'll consider renaming that button to something like Apply or Save.

    I'm completely unable to reproduce the issue with the image.

    Hi.

    I click on Close button,  but the changes that were made are not saved. 

    I'll try to run the same tests on another computer.

    Best regards.

  11. 1 hour ago, Joel Bodenmann said:

    I can't reproduce either of the two things you're mentioning.

    Please provide proper instructions on how to reproduce. That's something you should always do. 

    Hi.

    In first case, i create new project and go to the edit default target settings. After set all parameters, i close this dialog settings.

    After returning to edit default target settings in GINPUT page radio button set to "calibration dialog startup"(in previous edit i set this radio to "custom calibration value").

    In second case, i create new image. After returning to edit this image, i receive dialog box with error.

    I really do not like what's happening. Very similar to the problems on my computer, but the rest of the applications work fine. I use Window 7x64.

    Maybe there is a problem with this?

    Best regards.

×
×
  • Create New...