Display a window with a given offset

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Display a window with a given offset

#1 Post 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.

User avatar
Tom
Posts: 1165
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Display a window with a given offset

#2 Post by Tom »

Seems that the parameters for line and row are overwritten by "DC_CenterObject" at the DCREAD for DC_MsgBox() (in _DCMSG.PRG).
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Display a window with a given offset

#3 Post 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.

User avatar
hz_scotty
Posts: 107
Joined: Thu Jan 28, 2010 8:20 am
Location: Wr.Neustadt / Österreich

Re: Display a window with a given offset

#4 Post 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
best regards
Hans

Post Reply