I'm making an iPhone game in which I have two main views, the planning stage and the action stage. Both of these will have different graphics etc, but I'll obviously need to pass information between them. I've pretty much finished programming the planning stage, and I know how to switch between views, but I'm a little fuzzy on how exactl...
I found strange rules in MS SQL CREATE VIEW syntax.
It must be on the first line of query batch processing and it must be created in the current database.
I should make VIEWs that have dynamic name described by string variables
(type: VARCHAR or NVARCHAR). And those VIEWs should be created in other databases.
Because of the rule, CREAT...
Hi there,
We have multiple project solution based on MS Prism in WPF. For ease of understanding lets take we have project shell, and project usercontrol. The usercontrol project has numerous views for various functions. We have a pop up window in shell project which is called from main shell window, what i want is to load different view...
I'm a newbie programmer and I have played around with the SDK for a while. How do you create a homepage that has a button that will bring you to another view (the content of the app)??? If you know can you list the steps in order or link a tutorial site (It woul be awesome if the steps had code with it I needed). Thanks!
...
Hi,
I have set up an application and used some of the basic code from "The iPhone Developer's Cookbook" to create a simple view. The application works correctly in portrait mode, but when it is rotated, the dimensions of the boxes stay the same. Here is my code:
- (void)loadView {
//Create the full application frame (minus the stat...
My current view produces this kind of output...
Product1 Product2
Jet Ski
Water Polo
Could i use a computed column in a view, in order getting results like these?
Product1 Product2 Computed
Jet Ski Jet Ski
Water Polo Water Polo
...
I'm trying to set the background color of a View (in this case a Button).
I use this code:
// set the background to green
v.setBackgroundColor(0x0000FF00 );
v.invalidate();
It causes the Button to disappear from the screen. What am I doing wrong, and what is the correct way to change the background color on any View?
Thanks.
...
Hi all,
This is what i'm trying to achieve:
Use a TextView in a TabWidget (i.e. call TabHost.TabSpec.setIndicator(View) instead of TabHost.TabSpec.setIndicator(String)).
And i want to configure that TextView in XML instead of building it programatically.
So initially, in my layout XML, i had:
<TabHost
android:id="@+id/mainTabHo...
I'm programming for the iPhone and I'm wondering when to use the addSubview method of a view and when to present to use the modal view controller (presentModalViewController). What complicates this even more is if you are using a navigation controller (I'm not) and you can use the pushViewController method?
When would you use each and w...
So.. I have a problem. I'm sure almost anybody that tried MVC has had it. Nevertheless I've been unsuccessfull in googling a solution or thinking of one for my self.
The problem is this: I have a list of textboxes that I'd like to edit all at once, and I'd also like to add new items to my list. However, the text binding fails after the ...
Hi,
I've managed to create a Zoom (extends View) in order to load a PNG into a Drawable object and have it on the screen with zooming and panning function. See the code of the View (Zoom.java) :
public class Zoom extends View {
private Drawable image;
private int zoomControler = 200;
private int shiftleft = 0;
private int shiftup = 0 ;...
Hi,
I am working on an application where I want the view to change quite a lot when the device is rotated. I know that in Interface Builder it is possible to change the orientation and set up the layout there, however when I then rotate it to portrait, the view is the same as for the landscape. Is there a way to set up the two views inde...
In IB, there is a Cocoa View Template that creates a xib without any type of window. I have looked in the docs and can't seem to find how this is useful. You can't just load a xib without a window. Well, you can but it doesn't show anything.
Does anybody know how to use a View Xib without a window? Can it be used as a popupmenu?
...
I have been reading the heated debates on composite vs surrogate keys on Stack Overflow and other websites, and even though puzzled about some of the arguments given, I feel I am aware of the pros and cons of each.
I feel tempted to go for surrogate keys, but now I have another question. Let me explain my situation. I have a table consi...
I am a new comer to Android development so I imagine I have a simple problem, but I can't seem to figure out what's wrong.
I basically copied the LunarLander game example from the samples, but I tried to to only copy the parts I needed to make a little pong game or something. But for some reason, onKeyUp and onKeyDown are not getting c...
A django web app needs to make ajax calls to an external url. In development I serve directly from django so I have a cross domain problem. What is the django way to write a proxy for the ajax call?
...
Hi,
I have recently started to examine asp.net mvc. I have studied quite a few examples and common to these are that they contain quite simple scenarios, where a view will map to either an instance of a type in the model or a list of a paritcular type from the model.
I'm looking for guidelines to compose/composite views. In the long ...
Hi,
I want to simulate the touch over MPMoviePlayer ( making the controls visible and not).
I am adding an overlay and i have some touch events for the overlay view.
Currently the overlay view will respond to the touch and do the rest. but i want the send teh same touches to MPMoviePlayer to make the controls visible at the same time.
...
I'm coding in Objective-C for the iPhone. I was wondering when I use init: and when I use initWithNibName:bundle: when creating a view controller.
I can't really find an answer to this question.
Thanks.
...
I am after the XML view code, just like the E-mail setup.
How can I put on that bottom grey bar that Next button, how about a Prev button on left side?
...