Fulls screen toggle

This forum is for eXpress++ general support.
Message
Author
User avatar
rdonnay
Site Admin
Posts: 4745
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Fulls screen toggle

#11 Post by rdonnay »

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.
The eXpress train is coming - and it has more cars.

User avatar
rdonnay
Site Admin
Posts: 4745
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Fulls screen toggle

#12 Post by rdonnay »

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.
Attachments
_dcgetbx.zip
(86.87 KiB) Downloaded 626 times
The eXpress train is coming - and it has more cars.

Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Re: Fulls screen toggle

#13 Post by Cliff Wiernik »

Doesn't something like DC_StatusBarRepaint(o) potentially apply to this case.

User avatar
rdonnay
Site Admin
Posts: 4745
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Fulls screen toggle

#14 Post by rdonnay »

Doesn't something like DC_StatusBarRepaint(o) potentially apply to this case.
I don't understand your question.
That's what I just posted.
The eXpress train is coming - and it has more cars.

Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Re: Fulls screen toggle

#15 Post by Cliff Wiernik »

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.

Post Reply