How to build MFC libs, so I can debug inside MFC code. Agha Khan
User 616616
Posts
-
Debug MFC -
Storing,retrieving from an object.I am confused and why I can not store information in an object. If I want to save this information what I have to do? #include std::list MyList; RECT rc = {0,0,0,0}; MyList.push_back(rc); std::list::iterator it = MyList.begin(); RECT& RectOne = (RECT) *it; RectOne.left = -1; RECT& RectTwo = (RECT) *it; int left = RectTwo.left; RectOne is reference to first element of the RECT container. I changed the value of the first element of the container, and look the value in RectTwo, but it didn’t change the value. Real confused. :(( Agha Khan
-
Z-index for combo boxI have a Select object (Combo box) which is just under the menu bar. When my mouse hover the menu a drop down menu shows up, this is correct behavior. The Select object always has high precedence, so my menu items show beneath Select object (Combo box). My real question was to bring menu item above the Select object (Combo box). There must be a way. Try in HTML file any two objects, where one of them should be Select object. Try to change the z-order. You just can not. Thanks for reply Agha
-
Capture mouse in HTMLHow can we capture mouse (in HTML) for Select Object? Agha
-
Z-index for combo boxI have written menu (HTML) which works fine, which implies that user can hover the mouse and see all the available options. (i.e. File – New, Save as ..) For some reason I also have a Select object (Combo Box). (Bug in HTML that you can not change the Z-index of a Select object) Now if user hover the mouse on any menu item, the Select object is top of selection of that menu item’s selection and user can not see that. Is there any way so that I can change Z-index of Select object (Combo Box), so we could able to see the selection from menu? Agha Khan
-
Submit in html:zzz: I am writing application for palm which is purely using html nothing more (Not JavaScript, vbScript or any other because it does know any). I have a listbox (which is produced by tags) which has 2 or 3 options to choose from. Now user can select any item, but how can I submit? Is there anyway to do so? Your help will be very much appreciated. Agha Khan
-
Dynamic Height:confused:I have a table which grows dynamically. Every row has different height due to its text inside which varies so the height of the row. Does someone know how to find pixel height of the table? I am using JavaScript. Agha Khan
-
Disable DblClickIt is true that I am talking about javascript in the html page. Perhaps you have noticed the system process the default implementation first and then returns control to your custom functions. Take this example function OnDblClick() { alert("Hello"); return false; } Before displaying the Hello it already selected the text. So returning false or true has no effect. There must be another way. Still I do not know. Thank you very much for your reply.
-
Disable DblClickWell I have written a calendar in JavaScript, which has 2 combo boxes (for month and year) along with the table displaying the month. As you understand there is a function Onreadystatechange in script which allows you making changes at the start of web page. where I change the color of today’s date. Double click makes the date ugly. There is another solution that I could change color by firing with fireEvent function. That is also not working. I do not know why? function OnLoadDate() { var now = new Date(); var today = now.getDate(); var month = now.getMonth(); var year = now.getFullYear(); var StartOfMonth= StartDayOfMonth(year,month); var ObjectID = StartOfMonth + today - 1; var Row = Math.floor(ObjectID / 7); var Col = ObjectID % 7; Laplink.CalYear.options[year - 1995].selected = true; Laplink.Months.options[month].selected = true; WriteMonth(year,month,today); Laplink.all.CalendarID.rows[Row].cells[Col].fireEvent("ondblclick"); } Agha</x-turndown>
-
Disable DblClickI have a table in html file and table has few columns and rows. There is a text in each cell. When user double clicks it, it selects the text. I want to disable that function. I created my own DblClick function, but I was unable to stop double click and it select the text. My function is something likes this. function OnDblClick() { return; } And sometimes I want to fire ondblclick event to select the text. var CurrentCell = document.getElementById(id); CurrentCell.fireEvent("ondblclick"); It also does not work. Any clues? Thanks in advance. Agha Khan