|
The default behavior doesn't support filtering
Althoug you can override the default by responding to "ButtonClicked" event and returning the picked file in the Value parameter of the event, thus telling the control to use the value you supplied instead of the default behavior , of course in this case the default dialog will not be opened.
Creative minds - create creative creations!
|
|
|
|
|
1) Does not compile in Unicode Release/Debug;
2) reproduction for VCDemo:
a) insert:
MoveWindow(0,0,300,500); // change dialog/control size
in function:
BOOL CDlgSize::OnInitDialog()
before string:
return TRUE;
b) run application;
c) Close "Button controls" category (Single-click on right button);
d) Open "Button controls" category (Single-click on right button);
bug description:
button from Image category("...") did not delete and is able to see on the same position
|
|
|
|
|
Hi,
I just stumbled upon your control. Looks promissing!
While looking at the API I found that it's only possible to set a caption text per property. I would like to know if it's also possible to set an icon per property. (placed before the text, on the left)
Kind regards,
Tom
|
|
|
|
|
Nope... Sorry
Although since there is all the source code, you could easily exend that finctionality... It shouldn't be too complicated...
Also i'll apreciate if you do this that you'll send me the source so i can include it in the next update...
Creative minds - create creative creations!
|
|
|
|
|
hi, I tried to use this component for a program in spanish, but some words like "Explosión" or "Físico" doesn't appears correctly.
|
|
|
|
|
1. Go to the constructor of CMyList class (where the fonts are created)
2. Find the line : lf.lfCharSet = HEBREW_CHARSET;
3. Change HEBREW_CHARSET to the apropriate language.
Sorry for the control no to be UNICODE.
Creative minds - create creative creations!
|
|
|
|
|
Hi,
First of all great control!
One of the best out there, but with one major drawback, unicode support...
I've tried to modify the charset setting, then recompile the activeX control (using VC++ 6) but it fails...
38 Errors and 4 warnings is what I receive.
How do I re-compile the control?
Also, can't you make it Unicode by uisng a Unicode supporting font, like Arial, then setting the charset to Default_Charset ?!?
Thanks!
|
|
|
|
|
i like this control. its really great!!!
is there any lisencing issue for using this control?
|
|
|
|
|
Nope, free to use, free to distribute and modify... etc.
Although if you use it in a comericial product i'd like to now what that product is , and i'd like you to put my name somewhere in the credits text.
Creative minds - create creative creations!
|
|
|
|
|
Congratulations for the control!
How I get the value of a property?
Marco Antonio
São Paulo - Brasil
|
|
|
|
|
Well , i thought of adding a GetValue method, but i didn't... And this is why:
This control is supposed to be just a UI representation of some object's properties,
you should of course have the initial properties of the object to fill the control with.
When you get a "PropertyChanged" notification from the control you are passed the new value of the property as the event parameter, you should then update that property in your object...
So there is no really a need for get property method, since the control already pesses the new value when the property is changed...
Creative minds - create creative creations!
|
|
|
|
|
OK
Tks
|
|
|
|
|
sorry, how to recieve the notification message ("PropertyChanged")?
Does my code have any error?
afx_msg void OnPropertyChanged(LPCTSTR PropertyName, const VARIANT& NewValue);
ON_NOTIFY("PropertyChanged", 201, OnPropertyChanged)
afx_msg void CmvObjBar::OnPropertyChanged(LPCTSTR PropertyName, const VARIANT& NewValue)
{
---
}
thx...
troy
|
|
|
|
|
How to do that i delete some items, not all?
thx
|
|
|
|
|
The code should be :
afx_msg void OnPropertyChangedProplistctrl1(LPCTSTR PropertyName, const VARIANT FAR& NewValue);<br />
<br />
DECLARE_EVENTSINK_MAP()<br />
<br />
BEGIN_EVENTSINK_MAP(CVCDemoDlg, CDialog)<br />
ON_EVENT(CVCDemoDlg, IDC_PROPLISTCTRL1, 1 , OnPropertyChangedProplistctrl1, VTS_BSTR VTS_VARIANT)<br />
END_EVENTSINK_MAP()<br />
<br />
void CVCDemoDlg::OnPropertyChangedProplistctrl1(LPCTSTR PropertyName, const VARIANT FAR& NewValue) <br />
{<br />
<br />
}
Creative minds - create creative creations!
|
|
|
|
|
How to translate the ON_EVENT message by myself ?
ON_EVENT belong what kinds of message type ?
ex: i translate a NM_CLICK notification message.
LRESULT CMyStatic::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
if (message == WM_NOTIFY)
{
NMHDR* pNMHDR = (NMHDR*)lParam;
if (pNMHDR->code == NM_CLICK ||
pNMHDR->code == LVN_BEGINDRAG ||
pNMHDR->code == LVN_ITEMCHANGED ||
pNMHDR->code == LVN_ENDLABELEDIT ||
pNMHDR->code == NM_CUSTOMDRAW ||
pNMHDR->code == NM_RCLICK )
::SendMessage(pWnd, WM_NOTIFY, wParam, lParam);
}
return CStatic::WindowProc(message, wParam, lParam);
}
|
|
|
|
|
This atricle has been updated at 05/11/2004
Most of the asked before questions has been resolved.
Creative minds - create creative creations!
|
|
|
|
|
in VB 6 when i add a Combobox property
how can i set the value for the property?... always display the first item of array
For example, I have a myprop object, the value property is 2, but this property have a combo box
dim myarray (5) as string
dim x as integer
for each itemx in myprop.combotext
myarray(x)=x & ":" & itemx ' "1:Option1" , "2:Option2"
x=x+1
next
Prop.AddProperty myprop.cat, myprop.name, myarray, myprop.Description, ButtonNone, True
myvalue=myprop.value & ":" & myprop.ComboText.Item(myprop.value)
Prop.SetValue myprop.nombre, myvalue
in the last line I get the next error message:
Run Time Error 380: Wrong Parameter Type
Thanks for your help
Elias Castañeda
|
|
|
|
|
Set the button type parameter to the desired selection :
Instead of:
MicroElias Corporation Framework wrote:
Prop.AddProperty myprop.cat, myprop.name, myarray, myprop.Description, ButtonNone, True
myvalue=myprop.value & ":" & myprop.ComboText.Item(myprop.value)
Prop.SetValue myprop.nombre, myvalue
Use:
Prop.AddProperty myprop.cat, myprop.name, myarray, myprop.Description, myprop.nombre, True
Assuming that
myprop.nombre is the number of the current selection.
Creative minds - create creative creations!
|
|
|
|
|
i'm try the following code with array[2] and get the same result
Prop.AddProperty myprop.cat, myprop.name, myarray, myprop.Description, 0, True
Prop.AddProperty myprop.cat, myprop.name, myarray, myprop.Description, 1, True
Prop.AddProperty myprop.cat, myprop.name, myarray, myprop.Description, 2, True
always the first element of the array is showed.
What's wrong?: I need download the component again? Thanks.
Elias
|
|
|
|
|
MicroElias Corporation Framework wrote:
What's wrong?: I need download the component again? Thanks.
Yes you are but whait till Sunday...
You'll see when i midify the page that the version is updated...
Creative minds - create creative creations!
|
|
|
|
|
Alex Hazanov wrote:
Yes you are but whait till Sunday...
You'll see when i midify the page that the version is updated...
The hour is late and i'm missing keys on the keyboard...
Alex Hazanov wrote:
Yes you are but whait = wait till Sunday...
You'll see when i midify = modify the page that the version is updated...
Creative minds - create creative creations!
|
|
|
|
|
ok, dont worry... usually it happens
|
|
|
|
|
hi, I'm working in a program in vb that needs multiple property lists in a tabbed dialog in the same form, but the property_change event only is called for one control and the other control ignore the event, when i change a property in any control then all the controls locks and any changes in properties are not allowed but if i call to the metod .clear and refill the controls they works again...
What can I do?
Thanks for you help...
Elias
|
|
|
|
|
This is resolved in the new version which I'll upload by the end of the week.
Also it's illegal to call SetValue() inside the PropertyChanged event!
Unless you call SetValue on another property list
|
|
|
|