1. Vinicius Geraldino
  2. PowerBuilder
  3. Friday, 12 January 2024 14:26 PM UTC

Hello.

Im applying a dark theme with ribbonbar

But when i maximize any window , the theme dont work on second titlebar

 

How i change color of this? or how i can maximize without this titlebar?

Attachments (1)
Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 12 January 2024 20:22 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Vinicius

  Thank you for the Test App! Here is what it looks like under PB 2022 R3 ...

  I did notice that the MDI Frame's resize code was a bit off. Here is what I changed it to ..

rbb_main.Move (0,0)
rbb_main.width = newwidth
mdi_1.y = rbb_main.height  + 4
mdi_1.height 	= newheight - rbb_main.height 
mdi_1.width  	= newwidth

 Also for the Sheet Windows, we now have this "handy" introspection command ...

IF  main.IsTabbedViewEnabled ( ) =	TRUE THEN
	THIS.controlmenu =	FALSE
END IF

However, I see the issue when the RibbonBar is active and the Sheet Windows have the "Control Menu" active. I think that the PBVM should disable the Control Menu automatically when it sees that a RibbonBar control is active to prevent this weird behaviour. In the newer SalesDemo App versions, the Control Menu is not enabled - hence, the Min/Max issue is avoided.

This might be worth opening a Support Ticket and attaching your current test case for Engineering to look at. Maybe a possible enhancement could come out of this. Thanks for your patience.

Regards ... Chris

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 12 January 2024 16:13 PM UTC
  2. PowerBuilder
  3. # 1

Hi Vinicius;

  Can you please always specify in your questions ...

  1. The PB version & build that you are using.
  2. The MS-Windows version & build
  3. Whether the problem is in an EXE or running under the IDE or both?
  4. For an EXE is it 32bit or 64 bit?
  5. Is the EXE P-Code or M-Code compiled!

Now for your problem ... I would suggest that you ...

  • Create a simple PB App test case that replicates this issue
  • Open a Support Ticket for this problem if it's reproducible.

Many thanks in advance!

Regards ... Chris

Comment
There are no comments made yet.
Vinicius Geraldino Accepted Answer Pending Moderation
  1. Friday, 12 January 2024 17:28 PM UTC
  2. PowerBuilder
  3. # 2

Hi Chris,

1 - its PB 2021 - 1509

2- Windows 10

3 - Running ide, dont tested in exe.

I already tested in sales demo applying the theme and had the same problem.

 

 

Attachments (1)
Comment
  1. Vinicius Geraldino
  2. Friday, 12 January 2024 18:19 PM UTC
i Think you need to click on maximize/restore button to do this.
  1. Helpful
  1. Vinicius Geraldino
  2. Friday, 12 January 2024 18:23 PM UTC
You need to change any window (i changed w_customer_maintenance) to show control menu
  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 12 January 2024 18:32 PM UTC
Hmmmm ...

1) no issues displaying the SalesDemo App when Maximizing or Minimizing using the "Dark" theme.

2) I do not have a "w_customer_maintenance" window class in my recent SalesDemo Apps (PB 2022 R2 or R3).

You must have an old SalesDemo version (my guess).

I would recommend upgrading to PB 2022 R3 LTS version ASAP anyway as PB 2021 is no longer supported.

Food for thought.
  1. Helpful
There are no comments made yet.
Vinicius Geraldino Accepted Answer Pending Moderation
  1. Friday, 12 January 2024 18:59 PM UTC
  2. PowerBuilder
  3. # 3

Please, try to see this test.rar example , maximize the window.

Attachments (1)
Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.