Trying to create a box that contains sentences (with spaces) and can have a maximum width of 300px. When the text is too long, it will autowrap without a scroll bar.
I'm searching files and returning lines that include the search text, and I'm not really sure the best way to display the information I get. Every time I get a match, I want to show, in some sort of control, the File it came from, and the whole text line. (aka streamreader.ReadLine() result). First I tried just putting it all in a read-only text box, but it doesn't have a scroll bar.
What is the best form control to help me display this data neatly?
Hi,
I want to develope a graphicintensive application. It should be hardwareaccelerated with DirectX. Also it must looking good, so I use a LayeredWindow for nice shadoweffects.
But now I have a big problem, because I cannot draw with DX on a LayeredWindow. So I search for a possibility to render with DX into a bitmap, so I can use it for the layeredwindow. I found a way to get a stream of the rendersurface, but this brings up my processor to 100%, because I must render the layeredwindow up to 75 times per second.
Thank you, if you can help me, or you know a better way to draw with DirectX a Window with unregular Border and Shadows.
Hello,
In ASP.NET MVC, we don't have controls which can do stuffs such as autocompletion (we don't have controls at all from Visual Studio like in web forms).
But, Is it possible to still get 'Auto-completion' with a text box in ASP.NET MVC (like with the textbox found on the Google's Home page)?
If this is the case, what's the best way to do so? JQueryUI? or there's someother way of getting that functionality?
Thanks for helping.
I'm trying to add a button onclick event to a button tag when I load my Fancybox popup using the following code:
var processOrder = function(id) {
$('#processPopupLink').fancybox({
'hideOnContentClick': false,
'frameWidth': 850,
'frameHeight': 695
}).click();
$('#processComplete').click(function() {
alert('debug');
});
}
However, it's not showing the message box when I click the button, I have no idea why it is not working, any help would be appreciated.
I have a which needs to be auto adjusted according to the content in it.. how can i do this, right now my content is coming out of the
the class i have used fo that div is as follows
box-centerside {
background:url("../images/greybox-center-bg1.jpg") repeat-x scroll center top transparent;
float:left;
height:100px;
width:260px;
}
pls help
I have created a project using the following maven webapp project in eclipse:
When adding a package to the project (right click project - new - package), the package gets added as a folder (I added a package named core). It does not have the usual package icon:
If I try to create a new class and select a package, there are no entries in the list box. I have tried creating packages in a normal eclipse dynamic web project and these work correctly.
How do I get packages in Maven enabled webapp projects?
Hello!
I have some code which shows a simple dialog box and handles user action (written using plain WinAPI).
// Display dialog and handle user action
LRESULT choice = DialogBoxParam(NULL, MAKEINTRESOURCE(AP_IDD_DIALOG), NULL, (DLGPROC)DialogCallback, NULL);
Is there any way to hardcode the resource file dialog.rc, which is used to build the dialog ?(I would like to get rid of .rc files and I'm pretty sure there is a way, yet I don't know what it is :)
Hy,
I was looking for a software to model an application, because is becoming too big.
Like this:
Class - A
Methods - a, b, c, d, e
Class - B
Methods - a, b, c, d, e
This should be in graphical mode, Classes are some boxes, and the methods are in the box.
Then I would like to be able to make a arrow from one method to another.
Do you know some good software?
thanks
I chose ibox lightbox for my site. it has been working fine but i need to open a link in the current lightbox but to close the current lightbox first and open the link in a new light box. any ideas???
Here's the link for ibox http://www.ibegin.com/labs/ibox
I am populating data using
<select name="test">
<option value='<%=session.getAttribute("tList")%>'><%=session.getAttribute("tList") %></option>
</select>
but the values are getting display in a single row in the combo box not row wise,where i am going wrong ?
Hi,
Is it possible to hilight part of a text and copy in Android?
It's kinda like how in iPhone, when you hold a text for sometime, the box will show up and you can copy then paste that somewhere?
Thanks,
Tee
How would I take a text box value and use it in the query string on submit? I'd like it to start as this,
/News?favorites=True
and end up something like this after the user enters in a search and clicks search.
/News?query=test&favorites=True
The controller action looks like this
public ActionResult Index(string query,bool favorites)
{
//search code
}
This question is something close to what I'd like to do, but I'd like to use the query string and maintain the existing values in the query string.
Thanks.
What is the easiest way to align the text vertically here with CSS ?
<ul>
<li>Hello</li>
<li>Bye Bye</li>
<li>Ciao</li>
</ul>
li {
border: 1px solid black;
width: 100px;
height: 50px;
margin-bottom: 20px;
text-align: center;
}
Hi,
i have a dialog box with 2 text inputs.Dialog has 2 buttons ok/cancel
What i want is when open the dialog and input 1 has a value of "pets" and change it to "animals" when click ok holds the new value (animals) but when click the cancel return to old value (pets).
Any help appreciated
I am trying to get the last editing point of a UITextView box.
I have tried getting the value textView.selectedRange.location,but it always comes out as 2147483647 (which is -1).
When should I read this value
I'm using the symbol \otimes as a unary operator and it's vertical alignment doesn't seem right to me. It wants to sit a bit below the baseline:
and
I tried using \raisebox to fix this, e.g., \raisebox{1pt}{$\otimes$}:
But \raisebox doesn't seem to be sensitive to subscripts. The operator stays the same size while everything around it shrinks:
The problem, I think, is that \raisebox creates its own LR box, which doesn't inherit the settings in the surrounding math environment. Is there a version of \raisebox that "respects math"?
In my application i have an in-box.If new message is arrived I need to increment the unread count.For that Whether I need to make the database connection for every second to find the new message is arrived?Is there any other methods?
I am using form_for to create a form that has 1 input field and 1 button. I'd like the submit button to be beside the input field rather than underneath it.
Relevant code is:
.input{border: 1px solid #666666; width:400px; height:22px;font-size:16px;}
<td width="900" height="50" align="left" valign="middle">
<% form_for @contact, :url => {:action => "create"}, :html => {:class => "input"} do |f| %>
<%= f.text_field :email, :size=> 74 %>
<%= image_submit_tag '2009-12-06-Landing1.gif' %>
<% end %>
</td>
For each ad on my site, I would like a box that shows the number of views it has (similar to this site).
How would I capture the number of page views an ad has? Is there a function that does this in PHP?
I have the following code:
(function(jQuery){
jQuery.fn.timepicker = function(){
return this.each(function(){
jQuery(this).val("14:00");
});
};
})(jQuery);
Currently I invoke this function by the following code: $("#event_start_time").timepicker();
Where #event_start_time is the ID of an <input> field.
How can I invoke this code only when I click inside the text box?
Hi,
I am writing the SPQuery for getting the data in contact list of sharepoint site.but how to write that?
Means I want to retrieve data as :
Name:aaa
Cell No: 13123131
Address : something address here..
so on...
of given LAst Name in search text box (build by me).
how to do that? Means what query i have to write? (Syntax please).
On 2 separate machines in completely different environments (work, home) I've been unable to compile libCURL out of the box. Running nmake -f Makefile.vc mode=dll VC=10, I get an unresolved external symbol errors for _IdnToAscii and _IdnToUnicode. I believe the definitions are in Normaliz.lib, which is referenced in LFLAGS, but it either isn't finding it or the version I have doesn't have those functions. But I don't see any option to download this file...anyone have a good solution short of commenting out the 2 lines that use these functions?
How are files downloaded from servers in programming languages like C? I understand higher level languages have magic functions like "download_file_from_url()" but they don't help me understand what is actually going on. I'm a little familiar with sockets but network programming in general is still a black box to me. Thanks for any help.