Page 1 of 1
Titlebar height and font
Posted: Wed Feb 14, 2018 7:52 am
by skiman
Hi,
I was wondering if it is possible to change the height of the titlebar of a dialog, and to change the font of the title.
I thought first to draw my own titelbar on a dialog where notitlebar is set, but at that moment I realised that the dialog can't be moved at that moment.
Any suggestions are welcome.
Re: Titlebar height and font
Posted: Wed Feb 14, 2018 8:48 am
by Wolfgang Ciriack
Perhaps you can use the example movewin from Roger for your dialog without titlebar.
Re: Titlebar height and font
Posted: Thu Feb 15, 2018 12:49 am
by skiman
Yes, that is what is was looking for.
Re: Titlebar height and font
Posted: Thu Feb 15, 2018 1:07 am
by Auge_Ohr
Wolfgang Ciriack wrote:Perhaps you can use the example movewin from Roger for your dialog without titlebar.
can you please point me where i find example movewin ?
Re: Titlebar height and font
Posted: Thu Feb 15, 2018 2:32 am
by reganc
Auge_Ohr wrote:Wolfgang Ciriack wrote:Perhaps you can use the example movewin from Roger for your dialog without titlebar.
can you please point me where i find example movewin ?
I believe they are talking about the Move Window example in Sample Group 6 of Xdemo.
Re: Titlebar height and font
Posted: Thu Feb 15, 2018 3:09 am
by Wolfgang Ciriack
Thats right, or express\Samples\Movewin.
Re: Titlebar height and font
Posted: Fri Feb 16, 2018 2:38 am
by c-tec
Hello,
simply use dc_moveparentwindow() on the main static.
regards
Rudolf
@ 0,0 DCSTATIC SIZE nWidth,nHeight PIXEL COLOR setgetschema("SUB"),setgetschema("SUB") EVAL {|o|o:lbDown := {|a,b,c|DC_MoveParentWindow(a,b,c)}} OBJECT oStatic