Page 2 of 2

Re: RibbonBar and Win7

Posted: Fri Feb 26, 2010 12:51 pm
by Wolfgang Ciriack
Hi Roger,
the problem seems to be your method ResizeDrawingArea.

Re: RibbonBar and Win7

Posted: Fri Feb 26, 2010 11:23 pm
by Auge_Ohr
Wolfgang Ciriack wrote:the problem seems to be your method ResizeDrawingArea.
as i say Codejock and other Windows Application does not know about :DrawingArea and Xbase++ return wrong Size when using CJ Controls.

so you have to "calculate" it from oDialog:CurrentSize - Ribbonbar high/wide. -Border (-FramePadding / Win7)

Also :DrawingArea "Size" will different e.g. when Ribbonbar :AllowMinimize := .T. is :Minimized == .T.
which is different as Hide (oDialog:oCommandbarS:ActiveMenuBar:Visible := .T. )

btw.
same is with Codejock Shortcutbar when set to left/right Side of :DrawingArea.
You will get "wrong" Size from :DrawingArea:CurrentSize()

what shell we do ? we can wait until Alaska fix it or we can use a workaroud with "calculation"

Re: RibbonBar and Win7

Posted: Sat Feb 27, 2010 9:23 am
by rdonnay
I don't have any problem with workarounds.

That's what I have been doing in eXpress++ since day 1.

If I can calculate the ribbonbar area, I must now attach a window to the dialog rather than the drawingArea, as I do in DCSTATUSBARs. This concept is not new to me. What I am not sure about yet is how much control I will have of that static area. That is my work for this weekend.