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

Property Window : what object is that? 2

Status
Not open for further replies.

mican

Programmer
Nov 6, 2003
19
PH
Is there someone who can enlighten me...

I am curious to use that object used by VFP Object Property Window. It looks like a grid but the data types varry in each row... for example, Caption property is in Character Type, while, FontBold property is in Logical Type...

How to do that?
 
mican

Can you clarify your question? Are you referin to the property sheet of a form (or control)?

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Mican,
But in the "grid" area, both columns are simply a textbox. It's other pieces of this complex container that offer the variant field types. e.g. The combobox/textbox that changes context (and sometimes disapears) based on the "type" of the PEM selected in the "grid".

Rick
 
Dear Mike,

My apology for not clarifying my question. Allow me to re-phrase it.

I am refering to the Properties Window that displays properties, events, and methods and etc. Specifically, the Properties List which shows all properties that can be changed at design time and their current settings.

The Properties List looks like a grid. However, I can't understand how can it displays different data types in the same column. Example, the Caption property may be assigned with a value in Character data type while the FontBold property may be assigned with a value in Logical data type. These property values belong to the same column.

In addition, there are cells in a column that contains text boxes while other cells in the same column contains combo boxes or spinner or any object.

Is it possible to develop like what the Property List looks like? Can anyone give me an idea how?

Thanks in advance for the usuall support.
 
Mican,

The grid is not really displaying different data types. As far as the grid is concerned, they are in fact all character strings. It's true that they represent different type of data to the user (you), but you are actually seeing character data on the screen.

Also, the underlying control is not a VFP grid. It is more like a Listview. If you create a Listview in detail mode, and hide the column headings, and size the two columns correctly, you will something that vaguely resembles the property window. If you don't know how to do that, see:

Hope this helps.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
Dear Mike Lewis,

Thank you very much for enlightening me. I appreciate it very much. In fact, ListView is new to me. Now, I will study more about this object.

I treasure the idea you have given to me, mike.
 
Hi
For my configuration file setup form, I've developed a grid that activates dynamically a form object over the value cell.
Using this approach, I can add new application parameters in configuration file very easy.
The value column is read only, with an expression as ControlSource but, when enter or edit button is clicked, the form control is activated in cell. Appears like the control is inside column, bu is not
If you want, I can send you my test grid


 
Badukist,

Hey - cool idea (form control activated above cell vs. within cell?!)

I would be interested in seeing your test grid - either source code and/or a screen shot.

If your code or screen shot is too big to post to the forum, you can send it to mgreene @ bdurham.com (without the spaces).

Thanks for sharing!
Malcolm
 
Hi
I've sent the zip to you.
I've tried to generate code from the form, but doesn't work.
Also the config table has scripts for each option, so can be dificult to generate commands.
The ActiveX DTPicker is version 6.0 (SP4)
 
Badukist,

Thank you for your offer to send me the Zip.

Can you resend this zip - I saw your post 10 hours ago and have not yet seen your email? I apologize about this hassle.

Thanks again!
Malcolm

mgreene @ bdurham.com

remove spaces on either side of the "@" sign for my email
 
Badukist,

I am also interested to study the test grid that you have created and see for myself the kindness that your grid could do...

With your kindness, please send it to mican10110100@yahoo.com

thank you
 
MikeLewis,

I am still on my study of your listview. It would be better if I can study it harder before to ask you a question. (That's to avoid stupid questions :))

Thanks a lot for your kindness
 
Mican,

I am still on my study of your listview. It would be better if I can study it harder before to ask you a question.

That's fine. Come back when you are ready. (You might like to ask any questions in a new thread. If you include SimpleList in the thread title, other people who are interested will see it as well.)

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top