Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bringing a control to the front 2

Status
Not open for further replies.

beedubau

Programmer
Jan 7, 2003
97
AU
I have a complex hand coded form on which a 20mm textbox sits just above a grid.

When the contents of the textbox are larger than the visible control area I enlarge the control via a button.

How do I make this enlarge on top of the underlying grid ie 'bring to front'?

regards

Bryan


 
Marcia,

I jumped too soon - put it in the command button code - but it still opens behind the grid

Code:
PROCEDURE  cmdExtras.CLICK()
	
thisform.listExtras.zorder = 0
	

IF thisform.listExtras.HEIGHT = 142

	thisform.listExtras.HEIGHT = 42

ELSE

	thisform.listExtras.HEIGHT = 142
		

ENDIF

Can you help further.

Thanks

Bryan
 
Bryan,
have you tried to bring it to the front? DoubleClick on your textBox, see that it is selected, Now in the menu: Format->Bring to Front
Regards,
Jockey
 
Hi Jockey2

As I said in my original post this is a 'complex hand coded form'

I'm trying to do what you mentioned in code. I don't see the form until runtime.

Bryan
 
Zorder is a method, not a property. The syntax would be obj.Zorder(0).

This isn't a 3rd party activex control grid, is it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top