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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Arrange objects in properties window?

Status
Not open for further replies.

johnbuckley

Technical User
Mar 25, 2002
52
GB
Does anyone know a way to arrange the object list in the properties window in form designer.

I get for example:

Form1
label7
command4
label3
line4
line8
label6
command3
line1

and would really like all types together or alphabetical order. It's a real pain trying to find some.

Thanks
 
johnbuckley

Maybe not the solution you were looking for, but when your property sheet is opened and you select the combo at the top the find an object, you can use the incremental search capability of the combo.
Ortherwise to change the order that they appear, you would have to use the form as a table and hack the records to re-order them the way you want. The objects usually order themselves in the order they were put on the form.
 
johnbuckley

Following on from mgagnons comments about hacking the records to reorder the table, you could

USE original.scx IN 0
COPY TO temp.scx
USE temp.scx IN 0
Add a column new_field and replace the value in new_field with the value from the memo field Objname.
SORT on new_field TO original.scx
Remove the added column new_field from original.scx

This is untried but should give you an alphabetically ordered original.scx

If you try it, let us know how you get on! HTH

Chris [pc2]
 
johnbuckley

Apologies - just realised you would need to concatenate the value from the memo field parent and the memo field objname to get the correct order. HTH

Chris [pc2]
 
ChrisRChamberlain - thanks. I'd tried the original and got a horrible mess. Now it makes sense. I'll work on it a bit but I know where I'm going now.

Much obliged.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top