PDA

View Full Version : property list question



Lionheart008
18-04-2009, 09:57
good morning dear saturday weekend day :D
hi dear thinbasic user...

first: how can I know more about creating of the 'pItem.cmbItems' and 'pItem.nItemType = %PIT_EDIT' stuff???


pItem.propName = "Dialog Id"
pItem.curValue = "Test application"
pItem.nItemType = %PIT_EDIT
pItem.cmbItems = ""
PropertyList_ItemAdd hDlg, idCtrl, varptr(pItem)


=> script example... "UI" module, ...property list...

second question:



Case %PIT_COMBO
s += "nItemType = COMBO"
Case %PIT_EDIT
s += "nItemType = EDIT"
Case %PIT_COLOR
s += "nItemType = COLOR"
Case %PIT_EDIT
s += "nItemType = THINBASIC SRIPT"
Case %PIT_FREE
s += "nItemType = FREE STUFF"

it's possible to create new %PIT_FREE list properties or it's depending on the ItemType so I can imagine... ???

anybody knows what I am meaning? must laugh... :lol:

ciao and servus, nice day, Lionheardo di Pastalino

ErosOlmi
18-04-2009, 11:58
To be honest I need to expand a little bit help material on PropertyList control.

When in need of help, first of all click on a piece of text inside thinAir and press F1. Most of the time you can get some help. For example if you click on PROPERTYITEM and press F1 you should get more info about it and its items meaning: same as here ttp://www.thinbasic.com/public/products/thinBasic/help/html/propertyitem.htm

Regarding a new type of property, what do you mean? What kind of new items do you need?
So far only supported kind of items type are the one listed in the help. But I can try to add something more. Just let me know.

Ciao
Eros

Lionheart008
18-04-2009, 12:21
hi eros :)

it's ok, I think about this one... and wanted only to know what possibilities I have beside the "combo", "edit", "Color", "Font" nItemType ... I would like to have a list, what items I can use for my property example ...

yes, I know the "F1" help button and I use it very often the last days... for ui, tbgl and other things... better to have a look at these things I am learning much more with help material ;) it's a very useful, good thing !


Case %PIT_COMBO
s += "nItemType = COMBO"
Case %PIT_EDIT
s += "nItemType = EDIT"
Case %PIT_COLOR
s += "nItemType = COLOR"
Case %PIT_FONT
s += "nItemType = FONT"
Case %PIT_FILE
s += "nItemType = FILE"
Case %PIT_EDNUM
s += "nItemType = NUMBER"
Case %PIT_EDIT
s += "nItemType = THINBASIC SRIPT"
Case %PIT_FREE
s += "nItemType = FREE STUFF"

when I have finished my example I tell you more about this one... I wish to have a ui/tbgl scene and get all properties of it and use a property list for it... perhaps I am wrong, I am making up my mind to say more about it next days...

%PIT_Script (read, open tbasic, c++, java... and more scripts)
%PIT_BYTES(read, open, check the amount...)
%PIT_OBJECTS (read objects of a scene, open it)
%PIT_POLYGON_NUMBER (read, open)
%PIT_LIGHTS (read, open)
%PIT_CAMERA (read, open)

... uargh

this kind of things...
perhaps I can help with a new examples or check new properties ... of the list :)

thanks for your reply... ciao and servus, Lionheart :)

may be I am totally wrong with my idea... or I mixed some things to understand this chapter with propertylist.... ;)