The following is my custom class, with collections. My application is an MDI app with the ability to open a "Program" form multiple times for multiple programs and I want to use the ProgramBudget class but I want all of the "subclasses" within the Program budget to be contained within the Program form ProgramBudget class.
I am having is...
I don't know if the title explains it very well, so here's what I'm trying to achieve.
With this script people can change the value of configuration variables on the fly like so:
Config::write('General.load', array('plugin1','plugin2'), true);
In that example, it changes the General.load config variable to an array, and sets the 3rd p...
I observed that if I have a custom post type called article, the links become mysite/article/title-of-article-here. How do I make the links to have this pattern -- mysite/title-of-article-here?
...
I needed to see touch events on my window, so I subclassed UIWindow to make my a MYWindow class. I am overriding the sentEvent function to receive the touch events on the window and all of that is working just fine. I did the following to achieve this:
self.window = [[MYWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
[win...
Hi,
I've created a custom titlebar for an Activity of my Android application. However, the background is blue. I would like it to be the gray gradient that toolbars generally are. How can I achieve this?
Here is the XML of my toolbar. It places a checkbox on the left side and some text in the center.
<?xml version="1.0" encoding="...
I have a class called Chair.
I have a view controller that contains an object of type Chair.
At some point, I am trying to assign my viewcontrollers instance to another instance of a Chair object as such:
[viewcontroller setChair: thisChair];
My setter looks as such:
- (void) setChair:(Chair *)thisEntryChair;
{
myVCChair = ...
I've the following Attributes defined on my Name field:
[Required(ErrorMessageResourceName = "ValidationErrorRequiredField", ErrorMessageResourceType = typeof(MyResources))]
[Display(Order = 0, Name = ResXStrings.UserName, ResourceType = typeof(MyResources))]
public string Name { get; set; }
I want to create a custom Attribute which l...
I have created a custom user control to use as a base class for some maintenance functions.
I would like to be able to wire up some events to handlers defined in the base class.
I can do this manually in the code behind but would like to assign them in XAML. Is this not possible?
<src:CustomerMaintenanceControlBase x:Class="ProjectMana...
I'm trying to figure out how to put PHP code into a custom field, but so far all that happens is that it displays the code literally, instead of executing it. So, how would I go about getting the PHP I'm inserting into a custom field to actually execute?—rather than display it like it was plain text.
...
I've created custom form using FAPI for my site. And I place each control at specific location base on template provided by the designer. For instance -
<div id="myform">
<span>Enter Your Name : </span> <?php print drupal_render($form['name']); ?>
<span>Gender : </span><?php print drupal_render($form['gender_radio']); ?>
......
I want to add a custom search option on my drupal theme in a block. It will be a form with a text box and few checkboxes. All that the form has to do while submitting is.. generate a search url based on the checkbox state.
http://localhost/restaurant/search/node/type:restuarant category:34,38 %keyword%
The keyword will be the text ...
if i want to have a custom slider, that looks quiet like a side-window from a car in its behaviour.
so it has a graphical mask overlying. in the background the "window" may be dragged, so that the "glass" fills the whole mask - or in the other direction that the "glass" is not there anymore.
is it possible as a modified slider or do i ...
Is it possible to export a custom contact view to Excel? I have a button that goes to the ExportContacts.page that is defined like:
<apex:page standardController="Contact" contenttype="application/vnd.ms-excel" recordSetVar="contacts" extensions="ExportContactsExtension" >
<apex:pageBlock title="Contacts">
<apex:pageBlockTable va...
I am trying to create a drop down control that is made up of a text box a button and a treeview control. I can not really find any tutorials on how to create a custom drop down control. I did find a user control that drops down a treeview control (vectorlight), but I want to implement my own custom drop down control. Any help would be gr...
Hi,
i made a extended a View, overwrote the 3 View Contructors and tried to insert it on my xml of a widget.
The Exception is:
java.lang.ClassNotFoundException: com.mypackage.myView in loader dalvik.system.PathClassLoader@4001e710
is it possible to use custom views in Widgets?
...
Well im trying to create a custom container class that contains in my case ViewMappingEntry's, so i created a class that inherits Freezable and implements ICollection.. but when creating an instance in Blend and browsing it i get this error: Cannot add content to an object of type 'ViewModelMapping'..
Note: It compiles fine and i get no...
I'd like to replicate the search bar in Contacts app > Favorites > Search (sans icon). Could someone give me a few tips?
A linear layout maybe with some top, left and bottom padding, width is fill_parent, and a weight of 1? With a button next to it with some right padding? How do I make the button look like that? Is there a parameter I ...
Hi All,
I am trying to create a custom dialog in Android. But whatever I tried to do, I am not able to change the width of the dialog. It just remains the same. The following is the view that I am setting as the content for the dialog.
<RelativeLayout
android:id="@+id/current_stats"
android:layout_width="wrap_content"
android:layout...
Hello!
I want to build a custom control that would work like this:
You have a kind of NSButton with an image.
You click the button and than appears a big square with a grid of photos.
You click one of the photos and it is set up as new image for the button. (square dissapears)
Now, how to draw this big square with photos if I want it n...
Hello Community!
I'm trying to create a custom tab navigator that has to look like .
Also, when there's a rollover, the borders of the arrow have to be in blue (like the label in the current tab).
For that purpose, I've created a custom component: a hbox containing a label and a canvas with 3 images inside (for the arrow tip that has...