Print Page | Close Window

Ribbon control enabled !!

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=18631
Printed Date: 06 October 2024 at 12:26am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Ribbon control enabled !!
Posted By: sgrappatore
Subject: Ribbon control enabled !!
Date Posted: 07 July 2011 at 12:31pm
Hello everyone
I have a little problem ...
In the main form "form_a" there is a ribbon control and other controls like grids, pageframe, and commanbutton.
When I click the CommandButton (outside the ribboncontrol) initiating a form "form_b" modal and until this point everything is ok.
The problem is that, despite the "form_b" is modal, I can click on the ribboncontrol ("form_a") and do not want that.
I tried to disable the ribbon control of "form_a" with:

oform_a.ribboncontrol.enabled = false

before launching the "form_b" but I do not get the desired result (of the ribbon control "form_a" is enabled)

I also tried to disable all controls on the ribbon with a control loop .. nexot but given that there may be some control already disabled before the launch of "form_b" when the "form_b" is closed and I have to re-enable the controls on the ribbon control I can only re-enable them all and lose the initial state of controls.

But if I try to launch the "form_b" directly from a CommandButton control on the ribbon I get the desired result.

I hope I was clear (I'm Italian)
Any idea is welcome!



Replies:
Posted By: Oleg
Date Posted: 11 July 2011 at 6:32am
Hi,

Its in VB6 ? Can you reproduce it with our sample ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: sgrappatore
Date Posted: 11 July 2011 at 6:38am
Originally posted by Oleg Oleg wrote:

Hi,
Its in VB6 ? Can you reproduce it with our sample ?
My application is written in Visual Foxpro 9.0 sp2
I'll try to post a small example.
Thanks for your interest.
 
 


-------------
Visual foxpro 9.0
Codejock 15.0.1


Posted By: Hemesh
Date Posted: 20 July 2011 at 4:34am
How about disabling form_a when you launch form_b? (and then re-enable when you close form_b obviously as it's modal)

-------------
Product: Xtreme SuitePro (ActiveX) version 18.5.0

Platform: Windows 7 Enterprise (64-bit)

Language: Visual Basic 6.0


Posted By: sgrappatore
Date Posted: 20 July 2011 at 4:48am
The problem is that the form_b is modal, but once launched, can also click on the ribboncontrol form_a and perform the operations provided.
I think it's an incompatibility issue with Visual Foxpro.


-------------
Visual foxpro 9.0
Codejock 15.0.1



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net