I´m trying to implement a mdi management in my app. I have a ribbon group with buttons to cascade, etc the opened mdi windows.
The buttons are coded like this
- Code: Select all Expand view
- @ 15, 3 ADD BUTTON oBtn1_3_1 PROMPT "Kaskadieren" ;
BITMAP "WinCascade" ;
GROUP oGr3_1 ;
WHEN Len( oAppWnd:oWndClient:aWnd ) > 1 ;
ACTION oAppWnd:Cascade() SIZE 105, 21 MOSTLEFT
The button should be activated when more than one mdi window is open. But if I open a second mdi window, the button stays inactive and is not automatically activated.
In a normal menu it is working fine.
Any solution ?