Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Screen Programming :Custom Control

Former Member
0 Likes
484

Hello,

In my screen,i have a custom container. On this container i have a text edit control but i have to display it only where there is some text to be displayed.

When there is no text to be displayed, i do not create a text edit control but <b>the problem is that i get empty lines on the screen where the container</b> is present. So basically i want to hide the custom container. Does anyone know how this can be done. i tried looping thru the screen and hiding the box, but that didnt work.

Please let me know if u have any suggestions or the only way out is creating a subscreen area for the box.

REgards

Manoj.

3 REPLIES 3
Read only

FredericGirod
Active Contributor
0 Likes
448

Hi,

use split container and set the percent to zero.

or use docking container (nothing to create on the screen).

Rgd

Frédéric

(see DWDM for examples)

Read only

0 Likes
448

Frédéric

This wont work for me because i need to hide the container not the control.

Thanks

Read only

0 Likes
448

If you have something behind the container, your create a custom container, inside the container you set a split container with two new container.

The first container will contain your text edit control and the second the rest of your screen.

So if the text is empty you set the size of the first part of the split container = 0.

What is under your text edit ?

Fred