How to move the remaining widgets after changing the Extent of a widget | developer.brewmp.com How to move the remaining widgets after changing the Extent of a widget | developer.brewmp.com

Developer

How to move the remaining widgets after changing the Extent of a widget

Hello Friends,

I am going to change the Extent of the text widget dynamically.
But when I increase its Extent then the widget below it does not shift down.

I have used IConstraintContainer for placing the several widgets
to briefly explain I have following widgets added in the constraint container

1 static widget
2 text widget
3 static widget
4 text widget

when I increase the extent of the 2 text widget,
I want to move the remaing widgets down

How to achieve this ?

Please suggest and if possible provide the sample code.

Hello Friends,
To elaborate the problem,
When I add the two static and two text widget , initially it looks like this
|-----------------------------------
|Address
|-------------------------------|
|Abf ksdjgfajksgkjkajsg |
|-------------------------------|
|City
|-------------------------------|
|Nagpur |
|-------------------------------|
|
But when I add more text in the address text box to occupy the multiple line
i am able to change the extent of the text box but the lable City does not move down, as the forms components are not redrawn
I Want the o/p to be
|-----------------------------------
|Address
|-------------------------------|
|Abf ksdjgfajksgkjkajsg |
|gjgasgdjhagsdjgsdasj |
|86963493849839834ss |
|-------------------------------|
|City
|-------------------------------|
|Nagpur |
|-------------------------------|
|
Againe to inform you that i have added all these component in the constraint container , then I am getting its qidget by qyryinterface and setting that widget as a WID_FORM to put in the form
So my question is that " How to redraw the remaining widgets on the form so that they will relatively chage their position when one of the widgets extent changes dynamically?"
in this example as the extent of the address text box increases , then what should be done to move the remainig two widgets City and city text box down.
Please suggest the solution for this
Thanx in advance,
Lalit

Hello Friends,
To elaborate the problem,
When I add the two static and two text widget , initially it looks like this
|-----------------------------------
|Address
|-------------------------------|
|Abf ksdjgfajksgkjkajsg |
|-------------------------------|
|City
|-------------------------------|
|Nagpur |
|-------------------------------|
|
But when I add more text in the address text box to occupy the multiple line
i am able to change the extent of the text box but the lable City does not move down, as the forms components are not redrawn
I Want the o/p to be
|-----------------------------------
|Address
|-------------------------------|
|Abf ksdjgfajksgkjkajsg |
|gjgasgdjhagsdjgsdasj |
|86963493849839834ss |
|-------------------------------|
|City
|-------------------------------|
|Nagpur |
|-------------------------------|
|
Againe to inform you that i have added all these component in the constraint container , then I am getting its qidget by qyryinterface and setting that widget as a WID_FORM to put in the form
So my question is that " How to redraw the remaining widgets on the form so that they will relatively chage their position when one of the widgets extent changes dynamically?"
in this example as the extent of the address text box increases , then what should be done to move the remainig two widgets City and city text box down.
Please suggest the solution for this
Thanx in advance,
Lalit

Lalit wrote:Hello Friends,
To elaborate the problem,
When I add the two static and two text widget , initially it looks like this
|-----------------------------------
|Address
|-------------------------------|
|Abf ksdjgfajksgkjkajsg |
|-------------------------------|
|City
|-------------------------------|
|Nagpur |
|-------------------------------|
|
But when I add more text in the address text box to occupy the multiple line
i am able to change the extent of the text box but the lable City does not move down, as the forms components are not redrawn
I Want the o/p to be
|-----------------------------------
|Address
|-------------------------------|
|Abf ksdjgfajksgkjkajsg |
|gjgasgdjhagsdjgsdasj |
|86963493849839834ss |
|-------------------------------|
|City
|-------------------------------|
|Nagpur |
|-------------------------------|
|
Againe to inform you that i have added all these component in the constraint container , then I am getting its qidget by qyryinterface and setting that widget as a WID_FORM to put in the form
So my question is that " How to redraw the remaining widgets on the form so that they will relatively chage their position when one of the widgets extent changes dynamically?"
in this example as the extent of the address text box increases , then what should be done to move the remainig two widgets City and city text box down.
Please suggest the solution for this
Thanx in advance,
Lalit
- constraint of the top of CITY is set relative to bottom of text widget.
- Call IWIDGET_Invalidate on constraint container widget to redraw the entire widget compostion after the text widget extent is increased..
hope this solves the problem

Lalit wrote:Hello Friends,
To elaborate the problem,
When I add the two static and two text widget , initially it looks like this
|-----------------------------------
|Address
|-------------------------------|
|Abf ksdjgfajksgkjkajsg |
|-------------------------------|
|City
|-------------------------------|
|Nagpur |
|-------------------------------|
|
But when I add more text in the address text box to occupy the multiple line
i am able to change the extent of the text box but the lable City does not move down, as the forms components are not redrawn
I Want the o/p to be
|-----------------------------------
|Address
|-------------------------------|
|Abf ksdjgfajksgkjkajsg |
|gjgasgdjhagsdjgsdasj |
|86963493849839834ss |
|-------------------------------|
|City
|-------------------------------|
|Nagpur |
|-------------------------------|
|
Againe to inform you that i have added all these component in the constraint container , then I am getting its qidget by qyryinterface and setting that widget as a WID_FORM to put in the form
So my question is that " How to redraw the remaining widgets on the form so that they will relatively chage their position when one of the widgets extent changes dynamically?"
in this example as the extent of the address text box increases , then what should be done to move the remainig two widgets City and city text box down.
Please suggest the solution for this
Thanx in advance,
Lalit
- constraint of the top of CITY is set relative to bottom of text widget.
- Call IWIDGET_Invalidate on constraint container widget to redraw the entire widget compostion after the text widget extent is increased..
hope this solves the problem