When I click on "Toggle Dialog" a message box displays 0,0 and window sizes to 0.
I removed the need for ot4xb.
I call DC_GetWorkArea() to get the screen coords.
That doesn't solve the problem but it fixed the problem with the 0,0 window size.
I may have an old version of ot4xb.
The problem seems to be related to using a DCSTATUSBAR for the buttons.
I never tested DC_StatusBarRepaint() with no title bar and borders.
DC_StatusBarRepaint() draws directly into the oDlg object and sizes and moves the drawingArea as required.
I will have to see what I can do with this.
Fulls screen toggle
Re: Fulls screen toggle
The eXpress train is coming - and it has more cars.
Re: Fulls screen toggle
Ok Jack, I have a fix for your problem.
I made a small change to DC_StatusBarRepaint().
The problem was that GetSystemMetrics() was used to get the width of the border and the height of the title bar.
This always returned the same value even if oDlg:titleBar was FALSE and oDlg:border was no border.
It works good now.
Copy _DCGETBX.PRG to you \exp19\source\dclipx folder and run BUILD19_SL1.BAT to rebuild DCLIPX.DLL.
I made a small change to DC_StatusBarRepaint().
The problem was that GetSystemMetrics() was used to get the width of the border and the height of the title bar.
This always returned the same value even if oDlg:titleBar was FALSE and oDlg:border was no border.
It works good now.
Copy _DCGETBX.PRG to you \exp19\source\dclipx folder and run BUILD19_SL1.BAT to rebuild DCLIPX.DLL.
- Attachments
-
- _dcgetbx.zip
- (86.87 KiB) Downloaded 675 times
The eXpress train is coming - and it has more cars.
-
- Posts: 605
- Joined: Thu Jan 28, 2010 9:11 pm
- Location: Steven Point, Wisconsin USA
- Contact:
Re: Fulls screen toggle
Doesn't something like DC_StatusBarRepaint(o) potentially apply to this case.
Re: Fulls screen toggle
I don't understand your question.Doesn't something like DC_StatusBarRepaint(o) potentially apply to this case.
That's what I just posted.
The eXpress train is coming - and it has more cars.
-
- Posts: 605
- Joined: Thu Jan 28, 2010 9:11 pm
- Location: Steven Point, Wisconsin USA
- Contact:
Re: Fulls screen toggle
I posted this message after seeing Tom's reply, but before seeing your response or modification. I was just suggesting that function might help as you recommended it to me to realign things in the past.