Author Topic: DDGUI absolute positioning  (Read 435 times)

Offline Qedo

  • Mr. Polyvector
  • ***
  • Posts: 131
  • UNUS SED LEO
    • View Profile
DDGUI absolute positioning
« on: 2017-Feb-21 »
if you want the absolute positioning in DDGUI you must add the following lines of code in DDgui.gbas

   wabspos%=0 //added  line 444
   CASE "XPOS";     wdg.wxpos% = val$;wdg.wabspos%=1 //added  line 767
   CASE "YPOS";     wdg.wypos% = val$;wdg.wabspos%=1 //added  line 768
   IF wdg.wabspos%=1 // added  line 1585
      xpos%=wdg.wxpos% // added  line 1586
      ypos%=wdg.wypos% // added  line 1587
   ENDIF // added  line 1588


and use absolute positioning in this way:
DDgui_set(L_n_rate_year$, "YPOS",120)
DDgui_set(L_n_rate_year$, "XPOS", 50)



Only tried with DDgui_widget DDgui_numbertext DDgui_text DDgui_button.
These changes should not create incompatibility with standard DDGUI programs.
If this happens I apologize.
Let me know
Ciao
Qedo