TitleBar Size RRS feed

  • Question

  • Hello all!


    I'm trying to just set a dialog position below the Main Window title bar.

    If I directly set the number of pixels (hard-coded) that I imagine the TitleBar height has, the dialog is positioned where I want.

    However, is there an way to get the titlebar height? or is there an way to get the Main Window content size (without the title bar size)? Or is there an way to set the top 0 of dialog to be just after the MainWindow TitleBar?


    Thanks in advance for the help!



    Monday, June 18, 2007 7:42 PM


  • The forms clientside  property return the form's painting area which doesnt contain the title bar (and the mainmenu).

    (You can calculate the titlebar's heigth from forms  width/height/size and from clientsize/clientrectangle.)

    I dont understand your last question.

    Monday, June 18, 2007 9:08 PM