Jan 12, 2018

Re: Alpha 360 ERP - MainMenu - Show / Hide

1 comment



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 ?




v_Windows_Width is int



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



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




Happiness Always

BKR Sivaprakash

Steven Sitas
Jan 13, 2018


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





New Posts
  • Admin
    Sep 11, 2018

    Hello, It would be great to have a complete comparison chart showing as to what is available in which version of alphi360. Where can we find this comparison? Yogi Yang
  • Admin
    Sep 1, 2018

    Hello, This is just a suggestion to build two Procudures/Functions that would allow a user to read a value from one single field and write/update value one single field. Where it can be useful. For example when a user is creating an invoice and the user selects a product/item and we need to fetch its price (only nothing else) from another table generally will have to create a query for this particular operation or write a set of hreadseek, etc. Instead of that it would be better to call a procedure that would fetch the required value from any table thrown to it. According to me the parameters of such a Procedure/Function would be for example: GetAnyFieldValue(sTableName is String, sFieldName is String, sWhereClause is String) Here one has to give name of table from which data has to be fetched and field name whose value needs to be fetched and the where clause is just that the criteria according to which data is fetched. One condition here should that the where clause should only return one single record but if the number of records returned are more than one we have to fetch the value from the first row and return it, ignoring the rest. Again just my thoughts.... Yogi Yang
  • Admin
    Oct 16, 2018

    Hello, I have watched all your videos but I am specifically writing here regarding this video: In this video I observed that every time we assign Window/Form names to the Dynamic structure we tend to write the name of Internal Window as string. Instead of that can't we use Window's name followed by ..Name. Like for example: IWB_Asset..Name. Coding like this has its advantages. One is that if for any reason we need to rename a window (for any of the million reasons) all that we have to do is rename the window and immediately the Refraction feature of WD will kick in and offer to rename all occurrences in code with the new name. Otherwise what we have to do is find each occurrence and replace it manually. Just my thoughts. Yogi Yang


Leoforos Dodonis 43,  45221


Registered VAT ID: EL084190121