actions

C#: How to get the assigned value from an action?

Hello, I use the following code to Invoke and access properties on my from from a different thread. public static void PFA(Action<frmain> action) { var form = Form.ActiveForm as frmain; if (form != null) { form.PerformAction(action); } } public void PerformAction(Action<frmai...

Secondary Shortcut does not fire

I am using Delpho 2006. The Scenario: On the data module I have an ActionList. One of the actions has a shortcut Ctrl+F4 and I want to have a secondary shortcut Ctrl+W. I tried all of the following: Adding Ctrl+W to the actions SecondaryShortcut list in the IDE. Adding it in the DataModuleCreate procedure using either ActFileCloseFil...

Do all of the assigned workflow tasks need to be complete in order for the workflow to continue working?

I have built a workflow in SharePoint Designer and put two "collect data from user" actions as parallel actions in the same step. Do both of the users need to complete their tasks in order for the workflow to continue to its next step? If both of them are needed, how can I build the workflow so that both users have tasks but only one o...

asp.net- mvc pass variables from one controller (action) to another controller (action)

i have an AccountController that does the asp.net login and user registration. (Register action below.. After that is successful i also want to add this user data to another table of mind called users. Right now i have a "UsersController" and an action called "Create" so as you can see below i have the line: return RedirectToAction("C...

wordpress: actions, filters & hooks

Howdy Guys, I'm quite new to this (understanding the WP Guts), and I wanted to understand the Hooks and Filters better, I can't get it right from Codex. I did a simple test, the idea is to override the get_title() method in order to erase the "Protected: " sentence from the title if the page is protected, there is a protected_title_f...

Java default form action or button

Hi, In HTML forms, if you press 'enter' while in a text field the form will generally submit. I'm implementing a search panel in Java Swing, and I want to include the same functionality as I think users will be expecting this. I know that it's possible to use setAction on a JTextField to accomplish this, however I was wondering if the...

Sync JMenu ButtonGroups with JToolbar ButtonGroups

Hi, Imagine I'm making a simple Word Processor with Java Swing. I've got a set of Actions written to perform text justification. On the MenuBar I've got a menu: View Left Justify Center Jusitfy Right Justify This consists of JRadioButtonMenuItems and a ButtonGroup to ensure only one item is selected at any one time. Also, ima...

Qt Play/Pause Action?

What's the best way to go about creating a play/pause button in Qt? Should I create one action and change it's icon when clicked, or should I create two actions and then somehow hide one when clicked? How do I use one shortcut key to activate both actions? (Pause when playing, or play when paused). ...

Managing Swing Actions with a Registry

Typically when I'm creating a Swing (or any UI) application, I have various Actions that appear on menu items and buttons. I usually create an action registry and store the actions in there and then when certain things occur, I disable/enable actions in the registry based on the state of the application. I wouldn't call myself an avid Sw...

result inside a sx:tabbedpanel? STRUTS AJAX

Hi, I am quite new to struts. I have a sx:tabbedpanel with three s:divs inside of it. <sx:tabbedpanel id="mainContainer" > <sx:div label="View Files" cssStyle="height:200px;margin:20%;" href="ShowFiles.action"> loading... </sx:div> <sx:div label="Upload Files" href="ShowFileUpload.action" closable="false"> ....

Rails - Redundant RESTFUL Actions for map.resources? (new, create)

Hello there, I was wondering why when you create restful routes in rails with map.resources it generates actions for new, create, edit, update? Is there anything wrong in declaring just one action for create and update and do something like this? def create unless post? @user = User.new else redirect_to :action => 'index' ...

Mouse enter mouse leave? Expression blend (silverlight)

Hi I'm a designer using Expression blend. Does anyone know how to use the events tab? I'm looking at a column of input fields, such as mouse enter etc. Not sure what to put in these any ideas? Thanks Judi ...

Actions in ASP.NET MVC

Hello, When typing in my URL SalaryFor/Microsoft/Balmer i need to display salary for user with name Balmer and if I type in URL SalaryFor/Microsoft i need to display salary for all employee in Microsoft company Is it possible? because when I use this link SalaryFor/Microsoft/Balmer all works fine public ActionResult Salary(strin...

What's the best practice in cocos2d to redirect an animating sprite?

I am making a game where 'defending' sprites need to animate towards 'attacking' sprites. But for example an attacker might change course to attack something else, mid animation. What's the best way to manage animations, and destinations? I believe I must remove any action on a sprite before adding a new one. Perhaps I need to use the s...

Best approach for dual-state Action

I have recently implemented an Action that toggles the enabled status of a business function. Whenever the user invokes the action I set a boolean flag: "willEnable" to determine whether the next invocation will enable or disable the function. Likewise I update the action name, short description and icon to reflect the new state. Then...

drupal actions triggers rules

Hi, I'm looking at the code in the signup module. It seems that there are triggers and actions in place already for certain events. If I was to add rules events, would that confuse the situation? Or is it possible to use the triggers to call rules actions? I would like to add rules events and rules schedule to it. Thanks Ed ...

Quick Ruby on Rails question on redirect_to in the same Controller

Inside a given controller "BobsController" - is the controller argument on the redirect_to method optional, so that: redirect_to(:controller => 'bobs', :action => 'index') is the same as: redirect_to :action => 'index' when being used inside the BobsController class? I assume because the controller is derived from the current cont...

Problem with form_for Helper

I have the following form_for declaration in a Rails site I am building: form_for(form_question, :url => { :controller => "form_questions", :action => "edit", :id => form_question.id }) do |f| but the site renders; <form action="/form_questions/1/edit"> why is it putting the '/1/' before the "edit" in the action url? ...

How to implement custom admin actions in non-custom-models in Django?

I'd like to build a custom admin action into a model defined by Django. Let's say I wanted to add the action "Activate selected User(s)" on django.contrib.auth.models.User in the Django admin interface. What would be the clean and proper way to accomplish this? I had a look at the documentation but it's just about implementing admin act...

Displaying 3D models using C++

I am currently designing an application in C++. Part of this application would be displaying changing 3D objects. I have designed several bits of these 3D objects in Blender And also am aware of other programs with which to do this (Maya, etc.) However, I am unsure how to use C++ To display these objects, much less manipulate them in...