custom

C# Custom DataView

Hi, I have some requirement to implement a very non-standard sort in my data grid, the grid is currently bound to a DataView with the Original rows data row filter set, the data comes in realtime so i do an accept changes on a timer every second to show any changes made on the underlying data table. The grid is read-only, it's purely d...

How do I get a device's maximal width and height in android

Hi I have a problem creating a custom view for an Android application. My custom view wants to use if permitted the maximum screen width. I couldn't find any way to retrieve this value. Can anybody point me to the right method? ...

How does one support custom Desktop DPI settings in Delphi 7 applications?

We have a few legacy applications that were written in Delphi 7. We've had a few requests over the years to support custom desktop dpi settings in these applications but we have been able to dodge the bullet up till know. Well we can't anymore. When users set their desktops to say 120dpi some of the controls "fall off" the application o...

Custom background for UINavigationBar problems

Hi there, I've managed to add a custom background to my navigation bar by using: UIImageView *iv = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"UINavigationBar.png"]]; [myViewController.navigationBar insertSubview:iv atIndex:0]; [iv release]; This works fine and I can see the title and buttons okay. However, when I drill ...

Flex Custom Component Communication

Hi All, What is the best practice in terms of communication (variable usage ann method calls) between custom components developed using mxml. ...

How do I pass a custom field to a hook (Invision Power Board [ipb] / PHP)

A long shot but here's hoping someone has some experience coding PHP hooks for Invisions Power Board forum. I'm attempting to code a status addition and the PHP works fine on it's own, it's the passing of the IPB's reference to my hook that is the issue. I.E. You setup a custom field in your forum for MSN Username, then from within a s...

Rails: validation between columns

Assume, we have a model, let's call it Articles. There, we have two columns, min and max. The rule is: min can't be greater or equal to max. How do you resolve this custom type of validation? Any ideas? Going further, let's assume that we have columns character and made_of. Task is to create a validation which is gonna help to avoid a s...

Drupal: Create custom search

I'm trying to create a custom search but getting stuck. What I want is to have a dropdownbox so the user can choose where to search in. These options can mean 1 or more content types. So if he chooses options A, then the search will look in node-type P,Q,R. But he may not give those results, but only the uid's which will be then themed ...

How to pass a property from an ASP.Net page to a user control

I have created a user control which exposes a custom type property called SoftwareItem. The page where I have placed this user control has a page property of the same type. I cannot figure out how to pass the page's property to the user control. I understand that this can be done in the code_behind but wanted to set the property declarat...

Google earth browser plugin does not accept custom markers with custom images.

I use custom images in google maps markers. I have included google earth control through google earth browser plugin. But they don't show custom images in google earth control? Any way I can solve this problem? Thanks, Jayesh ...

Sorting a range by the order of another list in Excel

I have two tables, like this: Table 1 A 1 FirstPhase 2 SecondPhase 3 ThirdPhase 4 FourthPhase Table 2 A B 1 Item1 FirstPhase 2 Item4 FourthPhase 3 Item2 SecondPhase 4 Item3 ThirdPhase The result I want to achieve after sorting is: A B 1 Item1 FirstPhase 2 Item2 SecondPhase 3 Item3 ThirdPhase 4 Item4 FourthPhase ...

When using a PHP function that requires a callback, how do we pass a custom parameter to the callback?

For example, http://www.php.net/manual/en/function.preg-replace-callback.php <?php // this text was used in 2002 // we want to get this up to date for 2003 $text = "April fools day is 04/01/2002\n"; $text.= "Last christmas was 12/24/2001\n"; // the callback function function next_year($matches) { // as usual: $matches[0] is the complet...

C# variable height for nodes in a TreeView

Despite my google efforts, I could not find a solution to use a default .NET treeview and have variable height for each node in that tree view. I need is a way to have 2 types of node with different heights. Ideally, I would also like that one node type can also become bigger as the mouse hover it. Any clever guy around? :) ...

Email Synching into Custom App

Hello, How have people intergrated custom CRM type applications with email? I have a Access 2003 front-end application with a SQL Server 2005 backend. One CRM part of the application tracks the activity with the customer in a traffic log table. Sometimes the salesstaff has communication with their customer using email instead. What...

Custom UITableViewCell that expands on touch and includes uitextfield

Hi guys, I've pretty much added a lot to my CustomCell, its working great. However, theres one thing i cant work out.. My requirement is, for a grouped TableView, On tapping a single UITableViewCell, it should expand below, kinda animate and extend below and show more information in that cell. On tapping an already expanded cell, it s...

Adding a Component from the Data Sources View in Visual Studio on a Form with a Custom Designer

Hello guys, I have developed a custom Designer (by inheriting from DocumentDesigner and reflecting the code found in the FormDocumentDesigner class so that I do not brake the default Form design time features) class for my forms. I associate the designer with my forms by using the Designer attribute the following way: [Designer(typeof(...

Django ImageField / FileField custom upload_to function, and security

Hi. I have part of a model defined like this: logo_image = models.ImageField(upload_to=lambda i, fn: "logo_%s"%(fn), height_field="logo_image_height", width_field="logo_image_width") and had a question about the upload_to function. According to django's documentation for FileField.upload_to, the second paramater, filename is "The fil...

Creating "pretty" Qt Custom Widgets

What is the process behind making custom widgets (using Qt) that don't look...well...ugly? I know it is fairly trivial to make a "custom widget" that has say, a listbox and a pushbutton slapped together into one, but how would I go about making something that looks more like this: QAnalogWidgets I have made some rough mock-ups that ba...

How long has a user been on a asp.net page (custom analytics)?

Hi guys, I am trying to come up with a way to measure how long a user has been on a page in my ASP.NET application. I am storing the userid, pagename, pageenteredtime and pagelefttime in a database. Each record has its own unique id as well, called featureuselogid. At the moment, I can track when a user comes into the page with the pa...

Custom exception using NHibernate ISqlExceptionConverter

Hi everybody. I need to register custom exception for NHibernate dialect. I have implemented and registered ISqlExceptionConverter, as shown in NHibernate tests. But when exception in code throws, it is not converted. My conversion code even does not call. My code is really simple: try { using (ISession sess = OpenSession()) ...