|
For the multylineedit some workaround, but no solution for the problem itself:
in CPropListCtrl::CPropListCtrl()
the fonts arent created with a proper Charset, with a Charset set to Ansi the problem with the return was solved, it now insert a newline. (Other method would be create the Multilinecontrol with ES_OEMCONVERT)
In the OnKeyDown Event of the CMultylineEdit you'll get the Escape key(and all other key events), if u return there and dont call the baseclass implementation, nothing will happen (and that really confuses me now, so if the Escape message is given to the baseclass all list items disappear ?!? wtf, i really dont understand that), so for the Escape button i return without calling __super::OnKeyDown(...);
|
|
|
|
|
That's great control. But I have some problem !
- I don't know how to change font at runtime
- How can I format date (dd/mm/yyyy or mm/dd/yyyy,..)
- Can I use spin to change date instead showing calendar to choose
Thanks very much .
|
|
|
|
|
It seems like it can only have two colunm, so how can I add new column.
I want to have something like that like
FirstName LastName IDNumber Date
========== ======== ======== =====
|
|
|
|
|
First of Thanks for creating such a useful tool.
Gr8 work u have done.
But I have one problem using it,if possible then plz answer as quick as possible.
Problem is : how to set value to Property whose type is ComboBox
By default I have the 1st value (etc "Unit1") in SAFEARRAY. But what can I do if I want to get for example "Unit3" during the initialization. How can I set SAFEARRAY value properly?
Please tell me about it?
Search: Articles Authors
Help! Articles Message Boards StoreFront Lounge
Premium Sponsor
All Topics MFC / C++ C# ASP.NET .NET
Site MapAdd To FavoritesCodeProject StuffWho's WhoTell a friendIndustry ContactsASP.NETManaged C++.NETSOAP and XMLVB.NETC++ Web Services.NET Compact FrameworkCross PlatformCombo & ListboxesMenus & ToolbarsC# ControlsC# ProgrammingMultimediaC# DatabaseC# WebServicesButton Co
|
|
|
|
|
I am sorry for answering only now, I havent been reading my e-mails for a while...
If I understood tour question correctly you are asking how to set the selected item in the combo box at the start... well if I am remember correctly , you set the buttontype parameter to integer that is the number of the selected item : ie:
AddProperty "Some Category", "Caption", stringArray, "Description", 5, TRUE
Item number 6 will be selected (items start from 0)
Creative minds - create creative creations!
|
|
|
|
|
I'm using this ActiveX in VC6 environment and my code looks as follows
<br />
<br />
resourceText.LoadString(IDS_ADMINTASK_USERLEVEL);<br />
<br />
status = NetWkstaUserEnum(NULL, 1, reinterpret_cast<PBYTE*>(&pWkstaUserInfo),<br />
MAX_PREFERRED_LENGTH, &entriesread, &totalentries, NULL);<br />
if(status != NERR_Success)<br />
{<br />
PrintNetApiError(status);<br />
throw status;<br />
}<br />
<br />
secLevels[0] = ::SysAllocString(L"Allow");<br />
secLevels[1] = ::SysAllocString(L"Deny");<br />
secLevels[2] = ::SysAllocString(L"Monitor");<br />
secLevels[3] = ::SysAllocString(L"Undefined""); <br />
saSecLevels.CreateOneDim(VT_BSTR, 4, secLevels);<br />
<br />
for(unsigned i = 0; i < entriesread; i++)<br />
{<br />
fullName.Format(L"%s\\%s", pWkstaUserInfo[i].wkui1_logon_domain, <br />
pWkstaUserInfo[i].wkui1_username);<br />
propUserLevel.AddProperty(resourceText, fullName, saSecLevels, _T(""), ButtonNone, true);<br />
}<br />
<br />
By default I have the 1st value (etc "Allow"). But what can I do if I want to get for example "Undefined" during the initialization. How can I set SAFEARRAY value properly?
Please tell me about it?
|
|
|
|
|
Brilliant!!
My problem is that when I creating a control. I would like to set a property one of a set amount of states (BorderStyle in your case)
BorderNone = 0 - No border
BorderRaized = 1 - EDGE_RAISED
BorderSunken = 2 - EDGE_SUNKEN
BorderFlat = 3 - BDR_RAISEDOUTER|BDR_RAISEDINNER, BF_FLAT
BorderStatic = 4 - BDR_SUNKENINNER
How is this achieved?
Many thanks, Alton
|
|
|
|
|
What language are you using? C++, VB, script?
Creative minds - create creative creations!
|
|
|
|
|
|
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?
|
|
|
|