|
i embed PropList ctrl in a float bar,and when a WM_ERASEBKGND occured,the ctrl coudle not redraw window valid,there is always remain a area could not be drawn.i have no idel about what is wrong.
|
|
|
|
|
Hi, Mr. Hazanov!
What a great control you have coded!
Anyway, I'm having problems to create a combobox using javascript in an HTML page.
Instead of having a combobox created, a button is shown preceded by the text "Nothing selected".
This is the code I'm using:
<html>
<head>
<script language="javascript">
function populate() {
var values = new Array(3);
values[0] = "Test1";
values[1] = "Test2";
values[2] = "Test3";
pp.AddProperty("Group", "Caption", values, "Description", 0, 1);
}
</script>
</head>
<body onload="populate();">
<object name="pp" classid="clsid:75C461D9-9588-415A-8D8F-4EA2430703B9" width="200" height="500">
<param name="ShowDescription" value="0">
</object>
</body>
</html>
I hope you can test it and fix it (if it's a bug), or tell me how to create combo boxes using Javascript.
Oh, and it would be great if comboboxes wouldn't be limited to the listed values (I mean, editable comboboxes).
Good work!!
Greetings.
-------------
CoMiKe
|
|
|
|
|
I would suggest using VB script instead since JavaScript has some strange way to represent arrays, and they aren't always easy to read in C++
You could setup some VBScript function just for that purpose and call it from JScript
I'll try to look in teh code what could be wrong (since I remember myself using JScript with the control) , but I can't promise taht it would be in the next couple of days , since my hands are full at the moment.
Creative minds - create creative creations!
|
|
|
|
|
Alex Hazanov wrote: You could setup some VBScript function just for that purpose and call it from JScript
Thanks for the suggestion, I will try!
Alex Hazanov wrote: I'll try to look in teh code what could be wrong (since I remember myself using JScript with the control) , but I can't promise taht it would be in the next couple of days , since my hands are full at the moment.
My intention is to write a CSS editor for Maxthon Browser, and you control would fit very well for the job.
Thanks for you reply and your interest!
|
|
|
|
|
It doesn't work using vbscript either, though in this case, a non-editable control is created after the caption. This is the code I'm using:
<html>
<head>
<script language="vbscript">
function populate()
dim values(3)
values(0) = "Test1"
values(1) = "Test2"
values(2) = "Test3"
pp.AddProperty "Group", "Caption", values, "Description", 0, 1
end function
</script>
</head>
<body onload="populate()">
<object name="pp" classid="clsid:75C461D9-9588-415A-8D8F-4EA2430703B9" width="200" height="500">
<param name="ShowDescription" value="0">
</object>
</body>
</html>
Good luck!
-- modified at 7:59 Thursday 15th December, 2005
|
|
|
|
|
That has become quite a rare thing to get so pleased from other's work.
Great API and very clear design.
Thank you for this one.
|
|
|
|
|
Congrats... and thank you
I think the control is very usefull and transparently coded!!!
you have my 5
tbw
|
|
|
|
|
How do you set the filters on the ButtonOpen-File Open dialog ?
|
|
|
|
|
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!
|
|
|
|