Page 1 of 1

Display a window with a given offset

Posted: Thu Aug 28, 2014 2:34 am
by Eugene Lutsenko
How to display a window with a given offset? How do I convert the program:

Code: Select all

FUNCTION LB_Warning( message, ctitle )

  LOCAL aMsg := {}
*  DEFAULT cTitle TO ''
  IF valtype(message) # 'A'
    aadd(aMsg,message)
  ELSE
    aMsg := message
  ENDIF
  IF LEN(ALLTRIM(cTitle)) > 0
     DC_MsgBox(10,10,aMsg,cTitle)
  ELSE
     DC_MsgBox(10,10,aMsg,'Универсальная когнитивная аналитическая система "Эйдос-Х++"')
  ENDIF

RETURN NIL
If you specify different values ​​of the row and column numbers, it does not affect the position of the window, which is still displayed in the center. Please tell me.

Re: Display a window with a given offset

Posted: Fri Aug 29, 2014 3:50 am
by Tom
Seems that the parameters for line and row are overwritten by "DC_CenterObject" at the DCREAD for DC_MsgBox() (in _DCMSG.PRG).

Re: Display a window with a given offset

Posted: Fri Aug 29, 2014 8:28 am
by Eugene Lutsenko
Thank you so much!

Found inserted in the program, modified to work off-center, and offset, and it worked !!!
I have something similar to this was trying to do, but somehow it did not work.

Re: Display a window with a given offset

Posted: Thu Mar 18, 2021 4:24 pm
by hz_scotty
Hello!
Can you post the changes from the dc_msgbox.prg for modified to work off-center, and offset
Please :pray:
Thank you