Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
In my app I have a Container with two Chart objects CH05 and CH06. On the same sheet I also have a separate Text Object.
However, I only want this Text Object to be shown when CH05 in the Container is Selected. I guess I need to edit the Expression for the text shown in the Text box, but how do I do that?
Thanx for any suggestion on how to solve this problem
BR, Hans Kaminsky
Hi Marcus (and Anjos), Thank you for the clarification.
This solution seems to be a bit complicated, at least for me with my limited QV knowledge... And I intentionally I simplified the question. In reality my Container contains 10 different charts, and the text in the Text box must be hidden for 5 of them.
However, I figured out a simple solution for myself: Instead of showing the text in a Text box, I use the General/Window Title for each chart (with "Show Title in the Chart"-box ticked) for showing the text for each chart.
But thank you for your support!
BR/Hans
Unfortunately there is no way to know the container state.
A bettter approach is use buttons do hide/show the elements
Hi Anjos, Thank you for your suggestion!
However, my problem is that when the user selects the CH06 chart in the Container (i.e. instead of CH05), the text in the Textbox must automatically be deleted/hidden (or the entire Text box). I guess the approach you suggest implies that the button manually must be clicked by the user for the Text box to be hidden. Or have I misunderstood you, i.e. is there a way to automatically delete/hide the Text box (when CH06 is selected) using a button?
BR/Hans
The meaning was more to avoid the container itself and emulate it with a textbox as frame and textboxes/buttons for the container-objects which simply switch a visibility-variable. And your depending additional textbox could be controlled with the same variable.
- Marcus
Hi Marcus (and Anjos), Thank you for the clarification.
This solution seems to be a bit complicated, at least for me with my limited QV knowledge... And I intentionally I simplified the question. In reality my Container contains 10 different charts, and the text in the Text box must be hidden for 5 of them.
However, I figured out a simple solution for myself: Instead of showing the text in a Text box, I use the General/Window Title for each chart (with "Show Title in the Chart"-box ticked) for showing the text for each chart.
But thank you for your support!
BR/Hans
The idea behind my suggestion is eliminate the container and mimic it using buttons
Yes I know (I understood that from Marcus Sommers post). But as I wrote, I used another approach to solve the problem. Well, thanks anyway. /Hans