I have an app with a customized frame (i.e., caption/titlebar, borders). I customized the frame by removing the WS_CAPTION style, and overriding OnNcCalcSize to reserve a custom-sized area for the caption, which the app paints in OnNcPaint.
A side effect is that the menu bar no longer displays, which is OK because I want to customize th...
I have an activity that calls a custom view when a button is pressed. The custom view runs fine until I try to add an ImageView to it. I have tried this in my xml that is called in my main activity with setContentView:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
andro...
In my search activity I am pulling data from 4 Cursors (each with a tag saying what it contains) placed in a MergeCursor. What I'd like to is create a section indexer which allows the user to move between these sections, instead of the usual alphabetical one. How should I go about doing this?
Thanks
...
Hi folks,
In creating unique custom reference codes (i.e. JOB1293XYZ) for a while I have been generating custom reference/hashes in PHP then checking my database to see if it already exists and if so generating another.
I'm curious if in MySQL it is possible to to generate the contents of a field based on the other fields in that row, ...
Hi team,
I am getting overlapping issue while using following code. I used custom cell and normal cell style for this form.
Any suggestion is appreciated
(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *RSVNIdentifier = @"RSVNCell";
CreateReservationViewCe...
Is there a way to replace the standard ListView that pops up when opening a Spinner with a custom one?
I would like for my Spinner list to be Filterable (and/or even possibly have two tabs with different lists the user could select options from).
Is this achievable or do I have to do my own implementation alltogether?
...
hi,
In my web application project I am using MYSQLMemberShipProvider. Now I want that instead of reading the connection string from web.config file, it will read the connection string from external file every time.
So that I am implementing the custom membership provider class, this class inherits the MembershipProvider class.
But th...
I am wondering if it possible to, for example, set the warning level for unused import statements on files that end in *Impl.java?
I know I can use the @SupressWarnings annotations, but the files that I want excluded are built from another project. I simply want to ignore their problems...at least for the time being.
I don't see any...
I've got a custom frame I need to inherit from in multiple projects. This frame includes some code and some components, and it resides somewhere on disk, in it's own project directory. I don't want to COPY it to the Object Repository folder, that doesn't seem right to me: I'd end up having two copies of the form, one in my Mercurial-back...
Hi,
I have some data with a key associated with each data item. The key is made of two parts: let's call them color and id. I want to iterate the container by color to speed up rendering and I also want to find items in the container by id alone.
I tried using std::map for this with a key
class MyKey {
public:
int color;
int id;
...
Hi, I'm not very good at this and I hope to get some help from people who understands the issue a lot more that I do.
So here's the deal. In my application there is background JPanel with Image drawn over it. Then there is a small JPanel which I'm trying to create custom painting for. I wanted to have JPanel with rounded corners and s...
I am doing C# application, and I want to change the style of a message box. Is it possible or not?
Example: change button style, fore color, etc.
...
Hi,
I've come across hints about output caching a server control, but have yet to find a definitive answer to: Can the output of a server control be cached (in the same way that user controls are cached)?
The suggestions I've come across involve caching the data (not true output caching), or suggest setting the response.cache options. ...
I want to define a property for a working directory(say work.dir=/home/username/working-directory), for my production .properties file, without hard-coding the /home/username.I want to reference the system property user.home in place on the hard-coded /home/username, to make work.dir more generic. How do I reference the system property a...
I'd like to set a custom view engine from within a controller that is specific to that controller. Or is there some configuration-based way to tell the framework to use the custom view engine only for that specific controller?
...
I have implemented a custom table view cell. I can get the cell to load, that is not the issue. What I am struggling with is setting the text property of the label. My code is below, what am I doing wrong?
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
[self.icaoLabel se...
Hello!
Is it "ok" to add attributes to various tags to use in JavaScript DOM parsing?
For example if I want to have required fields in a form, would it be a bad practice if I would do this:
<input type="submit" name="name" required="true"/>
Thank you.
...
I need to validate some sets of fields in a form, and I've researched enough to figure out how to do it with a Class level DataAnnotation attribute, but I'm thinking that this has got to be a not uncommon situation, so I'm wondering if anybody knows where such an attribute has been published. I'm not coming up with anything meaningful b...
I am working on a J2EE struts web application. I want to send application information to the server through the Request Headers.
Is there anyway that i can add a custom header information like isValidUser: true to the HttpServletRequest object programatically just like we do it using addHeader method in the HttpServletResponse class.
...
I would like to place buttons in various places (not in the nav bar), which have dynamic text. I want them to look similar to black nav bar button items (with the gray and black gradient).
How would I go about creating these? They need to be dynamic width based on the text of the button. I know I could create png files and stretch them,...