alpha

360

  • Home

  • Documentation

    • GitHub
    • Offline
  • Order

    • Online Orders
    • Price List
    • Compare
  • Downloads

  • Blog

  • Forums

  • Contact

  • More

    Use tab to navigate through the menu items.
    0
    To see this working, head to your live site.
    • Categories
    • All Posts
    • My Posts
    sivakrith
    Jan 12, 2018

    Re: Alpha 360 ERP - MainMenu - Show / Hide

    in Business Applications

    Hello,


    Using Alpha 360 Erp - 1.1, Screen Resolution is 1920 x 1080


    Looks like the placement is TAB_Dynamic is not right when we hide SIDE_Menu and again show it. I changed the procedure as follows, looks like it's working correct.


    Your calculation is as comments. The arbitary value of 5 & 8 is required (in my setup) as there is a right margin when we load the mainmenu for the first time. To keep that right margin (roughly calculated to 5), we deduct that value when we hide the SIDE_Menu.


    When we show the SIDE_menu, there need to be a gap between SIDE_Menu & TAB_Dynamic and I arrived the value to 8. That value I've added to arrive the new X position of TAB_Dynamic.


    And Width of TAB_Dynamic to be adjusted to 13 (5 + 8) to keep the right margin in tact.


    Could you please verify whether these calculations ?


    PROCEDURE UI_ShowHideMenu()


    v_Windows_Width is int

    v_Windows_Width=MNU_MainMenu..Width


    IF gb_Hide_SideMenu=True THEN

    SIDE_Menu..X = -(gn_Width_Of_SideMenu + 40)

    TAB_Dynamic..X = gn_X_of_SideMenu

    // TAB_Dynamic..Width = v_Windows_Width - ((2*20)-18)

    TAB_Dynamic..Width = v_Windows_Width - ((2*20)-18) - 5

    gb_Hide_SideMenu=False

    ELSE

    SIDE_Menu..X = 3

    // TAB_Dynamic..X = 269

    TAB_Dynamic..X = SIDE_Menu..X + SIDE_Menu..Width + 8

    TAB_Dynamic..Width = v_Windows_Width - ((2*20)-18 + gn_Width_Of_SideMenu) - 13

    gb_Hide_SideMenu=True

    END


    Happiness Always

    BKR Sivaprakash

    1 comment
    0
    1 Comment
    S
    Steven Sitas
    Jan 13, 2018

    Hi BKR,

    there were some issues with various combinations of Screen Resolutions, Font Sizes and Images used on the Dynamic TAB. With some "of the above combinations" the application just GPFed at the begining of the project code, and the debugger didn't even fire _OR_ it GPFed in the UI_ShowHideMenu().


    We think that the problem had to do with some images used in the styles of the dynamic tab.


    For some reason, unknown to us, the code inside the UI_ShowHideMenu() - with its peculiar values - seemed to ELIMINATE the problem, although with the cost of a small image "shift".


    We will take a look at your code and values and if everything works OK we will add it in the next release.


    thanks for sharing




    Like
    1 comments

    computerplus

    Leoforos Dodonis 43,  45221

    IOANNINA - GREECE

    Registered VAT ID: EL084190121

    alpha360(at)computerplus(dot)gr

    Forums

    Videos

    Documentation for v1 Releases

    WX Links

    Terms of Use

    Subscribe to the newsletter

    ​

    © 2017-22 by computerplus