Alert button style
Dear all
When using
Alert.show("Hey !", 'Alert', mx.controls.Alert.OK)
The style is not the Style of the CS Application (in this case Illustrator)
So I use
var alertCSS:CSSStyleDeclaration = StyleManager.getStyleManager(null).getStyleDeclaration("mx.controls.Alert");
alertCSS.setStyle("modalTransparencyColor", UIColor2Uint(skin.appBarBackgroundColor))
alertCSS.setStyle("backgroundColor", UIColor2Uint(skin.appBarBackgroundColor));
with
private function UIColor2Uint(rgb:UIColor):uint {
var red:uint = rgb.color.red;
var green:uint = rgb.color.green;
var blue:uint = rgb.color.blue;
var uintVal:uint = red << 16 | green << 8 | blue;
return uintVal;
to set the background color of alert windows.
But how can I do this with the button? Currently it is blue and I have no clue how to influence this.
I tried this with no success:
http://stackoverflow.com/questions/2568269/customize-the-alert-box-with-two-buttons
thanks and best regards
Dear all
When using
Alert.show("Hey !", 'Alert', mx.controls.Alert.OK)
The style is not the Style of the CS Application (in this case Illustrator)
So I use
var alertCSS:CSSStyleDeclaration = StyleManager.getStyleManager(null).getStyleDeclaration("mx.controls.Alert");
alertCSS.setStyle("modalTransparencyColor", UIColor2Uint(skin.appBarBackgroundColor))
alertCSS.setStyle("backgroundColor", UIColor2Uint(skin.appBarBackgroundColor));
with
private function UIColor2Uint(rgb:UIColor):uint {
var red:uint = rgb.color.red;
var green:uint = rgb.color.green;
var blue:uint = rgb.color.blue;
var uintVal:uint = red << 16 | green << 8 | blue;
return uintVal;
to set the background color of alert windows.
But how can I do this with the button? Currently it is blue and I have no clue how to influence this.
I tried this with no success:
http://stackoverflow.com/questions/2568269/customize-the-alert-box-with-two-buttons
thanks and best regards
Similar Messages
-
Can I use stylesheets to create multiple button styles?
I am trying to create a custom look-and-feel within UIX to get it as close as possible to
our existing application's look-and-feel.
As part of this, I customized the UIX button by overriding the following named style:
ButtonServerText
and also by providing my own icons for:
buttonStart
buttonEnd
buttonTopBackground
buttonBottomBackground
The good news is that I was able to get the button component to look exactly like our existing
application buttons.
The bad news is that we have different types of buttons in our application
for different purposes. (i.e. the image used for the button can be completely different based on the context e.g.
yellow button for important actions and light-blue buttons for secondary actions)
It seems like there is no way in which I can use this stylesheet mechanism to create different types of buttons
and use them within my application. (sometimes different types of buttons can appear on the same page)
Please let me know if there is a way.
This is in fact a general question regarding overriding a stylesheet for customizing look-and-feel.
Lets say I customize the "contentContainer" component using the stylesheet. This change would then be global.
But I do want to have different types of contentContainers in the application. I would be forced to create my own custom
UIX elements similar to contentContainer and write my own renderers.
(I know contentContainer does have the light, medium and dark styles. I used this just as an example.)
Please let me know what my options are.
Thanks,
Jayesh KapoorHi Jayesh -
The good news is that I was able to get the button
component to look exactly like our existing
application buttons.Cool - I'm glad to hear you were able to get this working!
The bad news is that we have different types of
buttons in our applicationRight. This is a fundamental limitation of our look and feel customization functionality - we only support global customizations, not instance-specific customizations. I agree that there are many cases where instance-level customization would be useful, but this just instance supported yet.
The only solution that I can think of for your button dilemma would be to use static images. It's pretty easy to wire up an image to behave like a button - just embed the image in a link and use <fireAction> as the link's primaryClientAction.
Obviously, the downside of this approach is that you need to create the button images manually - which also isn't ideal if you are planning to translate your applications. One possible solution here might be to use UIX to pre-generate your button images. The idea would be to create custom LAFs for each style of button, then create a UIX page for each button style, including <button> instances for each translated value. Then, you could configure UIX to run in the desired look and feel, hit the corresponding page, and UIX will generate the required buttons into your image cache. Again, not ideal, but this might be easier than creating the buttons by hand.
This is in fact a general question regarding
overriding a stylesheet for customizing
look-and-feel.
Lets say I customize the "contentContainer" component
using the stylesheet. This change would then be
global.
But I do want to have different types of
contentContainers in the application. I would be
forced to create my own custom
UIX elements similar to contentContainer and write my
own renderers.Right - this is a generic problem. But for some components, like content containers, an easier solution might be to leverage UIX's templating mechanism. Remember, you can embed arbitrary HTML contents in a UIX page/template by setting the namespace to "http://www.w3.org/TR/REC-html40". You can then reference these templates from your other UIX contents as if they were in fact UIX components. I'd recommend that you explore UIX's template support to see if this will meet your needs.
Andy -
I would like to have an email account that is password-protected that I can access on my Mac, Iphone and Ipad, separate from the Mail application, with an alert button that indicates unread messages
Try a search... I'm sure if you put forth a little effort you can find a solution that will work for you.
-
I would like to have an email account that is password-protected that I can access on my Mac, Iphone and Ipad, separate from M, with an alert button that indicates unread messages
Try a search... I'm sure if you put forth a little effort you can find a solution that will work for you.
-
Change the button style in wdj
Dear all:
I want to change the button style in wdj application
When I change the “url to button design bar”to gif file,preview is fine
But emphasized buttons is old in wdj application
My EP versions is 7.4
Thanks in advance!!!
Regards
BluesHi Venki,
Thanks a lot for the reply.
If the OTR is static I can go and change text in the Transaction SOTR_EDIT. But in this scenario the button text changes dynamically according to the tab navigation on the Candidate profile page.
Say If I am in Education Tab, the first button will be the Work Expereince (previous tab name ) and Second button text will be Qualifcation (next tab name). Similary the button text changes when I am in Qualification tab.
I tried looking in the HRRCF_PROFILE for the OTR related to these buttons I could not find any.
Any suggestions to solve this will be higly appreciated.
Regards,
Sharad P. -
Trapping - "Do you want to save changes" alert button pressed
When exiting a data block with unsaved changes, the user is prompted with "Do you want to save the changes you have made ?" The possible button click responses are "Yes", "No", "Cancel"
Is there a way to programmatically catch the click on the "Cancel" button ?
Oracle Forms 10gThanks for the suggestion W1zard. Here is the solution that I have come up based on the recommendation.
Essentially I create my own custom alert that mimics the system generated alert. In this manner I am able to control the behavior based on the alert button pressed by the user. This method also suppresses the system generated alert, so the user isn't prompted twice.
At the form level I have created the KEY-EXIT and the KEY-ENTQRY triggers. Additionally I created an ALERT titled SAVE_CHANGES with buttons Yes, No, Cancel.
h4. KEY-EXIT Trigger
DECLARE
alert_id ALERT;
alert_button NUMBER;
BEGIN
IF :SYSTEM.FORM_STATUS IN ('CHANGED') THEN
alert_id := FIND_ALERT('SAVE_CHANGES');
alert_button := SHOW_ALERT(alert_id);
-- ALERT_BUTTON1 is Yes, ALERT_BUTTON2 is No, ALERT_BUTTON3 is Cancel
IF alert_button = ALERT_BUTTON1 THEN
EXIT_FORM(DO_COMMIT);
ElSIF alert_button = ALERT_BUTTON2 THEN
EXIT_FORM(NO_COMMIT);
ELSE
RAISE FORM_TRIGGER_FAILURE;
END IF;
ELSE
EXIT_FORM;
END IF;
END;h4. KEY-ENTQRY Trigger
DECLARE
alert_id ALERT;
alert_button NUMBER;
BEGIN
IF :SYSTEM.FORM_STATUS IN ('CHANGED') THEN
alert_id := FIND_ALERT('SAVE_CHANGES');
alert_button := SHOW_ALERT(alert_id);
-- ALERT_BUTTON1 is Yes, ALERT_BUTTON2 is No, ALERT_BUTTON3 is Cancel
IF alert_button = ALERT_BUTTON1 THEN
COMMIT_FORM;
ENTER_QUERY;
ElSIF alert_button = ALERT_BUTTON2 THEN
CLEAR_FORM(TO_SAVEPOINT);
ENTER_QUERY;
ELSE
RAISE FORM_TRIGGER_FAILURE;
END IF;
ELSE
ENTER_QUERY;
END IF;
END; -
Button styles not updating actions
Hi there,
I've created a button style (in this case an exit button), which updates the appearance of all of the buttons defined by that style fine, however the action for that button does not.
Is there a way to make it do so, as I'd rather not having to update 70+ buttons every time I need to alter some minor? Or is that just the way it is in Captivate?
Thanks in advance for any help you can provide.Hi there
Button Styles are separate from actions. The style controls the visual aspects of the Button. Each Button will have its own action. Many folks would likely be very frustrated if the action were forced to be the same for all Buttons when you changed a style.
Perhaps you should submit a Wish Form to Adobe to ask for a feature that allows you to also specify actions if you want. Link is in my sig.
Cheers... Rick
Helpful and Handy Links
Begin learning Captivate 5 moments from now! $29.95
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcererStone Blog
Captivate eBooks -
Setting default alert button at runtime
Setting default alert button at runtime
Sometime I want Button1 to be default and sometimes I want Button2 to be default.
Please tell me how to change the default button at runtime.
Thanks
Claus Hansen [email protected]Beware of a slight bug in at least some versions. If the user dismisses the alert using the [X] close window control it fires a particular button which is not neccesarilly the default one. I always ensure that I make the default button the one which the control fires.
-
My Alerts Button in Itunes 11'
It's taken some time but I've finally accepted the new Itunes, however, I can't seem to find the My Alerts Button under artists. There is a link from the homepage to artists I've already alerted but I can't seem to add new artists. If they have taken this feature away, is there an app or website that will allow me to track new music from certain artists?
I had the same problem today. Previewed several songs on my Mac (Mountain Lion & signed in with Apple ID). Preview history of what I just played synced to my iPad 3rd generation and iPhone 4 (both IOS 6.0.1) ok but history did not show up in iTunes 11.0.1 ("You don't currently have any preview history"). Then previewed songs on my iPad. Once again, previews showed up on iPad and iPhone but not on Mac. I then cleared the Preview History on my iPad, which also cleared the phone.
I then previewed several songs on the iPad. WONDERS! Now the iPad previews are syncing to the Mac! I previewed several songs on the Mac and these previews now show up in my Mac Preview History, as well as the iPad and iPhone histories.
See if clearing all your History works for you! -
Hi,
There are some buttons in my page. (Item style = button)
Some button style are okay(Looks like a link with image), but others have a strange style(Windows button style).
So, I try to find the difference via page souce code.
<button id="AddNewLine" title="增加业务指标" onclick="_uixspu('DefaultFormName',1,'AddNewLine','AddNewLine',0,1,{'_FORM_SUBMIT_BUTTON':'_fwkActBtnName_AddNewLine_AddNewLine','evtSrcRowIdx':'','evtSrcRowId':''});return false;" type="button">增加业务指标</button>
<a href="# id="ToOrderRegion" onclick="_uixspu('DefaultFormName',1,'ToOrderRegion','ToOrderRegion',0,1,{'_FORM_SUBMIT_BUTTON':'_fwkActBtnName_ToOrderRegion_ToOrderRegion','evtSrcRowIdx':'','evtSrcRowId':'');return false;"><img src="/OA_HTML/cabo/images/cache/zhs/bToOrderRegion1EvLz.gif" alt="对指标排序" border="0" align="absmiddle" width="49" height="19"></a>
Why does the button will be analysis to different html tag?
帖子经 Eric Mo编辑过Eric,
Check the same with the different browser. If the problem persists then you can raise an SR with Oracle.
Regards,
Gyan -
Hi all,
OK I went to insert a Flash button from with in DreamWeaver CS3 and I get a Message window that says "There are no button styles on your system. Please reinstall DreamWeaver CS3.
I went to my DW CS3 folder a went to >configuration>Flash Objects and in this folder I see that there are indeed I see 3 folders named buttons, buttons preview & text. So I know that they are on the sys.
Why does DW CS3 tell me that there not there? Is there something else I need to do so that DW CS3 see these? Any ideas? Thanks for any help.
I'm on a Mac G5 running 10.5.6.I call this a blessing in disguise. Flash paper, Flash buttons, Flash text were all discontinued in CS4 because they are unfriendly and pose some real accessibility problems for people who can't use Flash. Ask yourself why you need this and then ask yourself if you couldn't do this much better with plain HTML & CSS or JavaScript behaviors.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb -
How to change the Button Style
I have some buttons(all are submitt buttons) in my page, when i run my page locally the styles are same but when i deploy it in server the button style changes to rectangular, i tried by giving attribute set value to /oracle/apps/fnd/attributesets/Buttons/Go, even then the same problem, can any one give me the solution for this
Babu,
Can you confirm Self Service Accessibility Features profile value is set to "Standard Accessibility".
--Mukul -
How can I copy a button style in flash catalyst
Is it possible to copy a button style? I want all my buttons to fade and move to the same place however they all look different. Please let me know.
thank you and God BlessSee which form of ActionScript you used to make the site.
Open the Actions panel and see whether you've chosen AS versions 1
& 2, or AS 3. If you've picked the earlier versions, you can
attach a link easily to each button by clicking on the button, and
adding a little code in the Actions panel. Turn on ScriptAssist to
make it easier. Click on "on" and choose "release" or "press" or
both. Then scroll down the commands on the left and add getURL. You
will then have a few lines that say something like, on(Release)
getURL("putyourpageurlhere"). See bottom for exact syntax. That's
all. The new .html or .php page will load when the button is
clicked.
If your buttons are not actually four-state buttons, but
graphic or movie clip symbols, you will have do it a little
differently. Instead of attaching the code to a button, you attach
it to a keyframe. You give your symbol an instance name in the
property panel, then in the Actions panel create a function that
says essentially: when you click on this instance (onRelease)
getURL.
If you're using AS3, the concept is similar but the code is
different. With a quick search you can find dozens of code examples
that you can cut and paste.
Here's that AS2 button code... -
With the Alert control is it possible to change the text of
the Alert buttons so instead of having OK, Cancel, Yes or No you
can define your own? e.g. Proceed To Checkout and Continue
Shopping?
Thanks
Katy"g-s-b" <[email protected]> wrote in message
news:g74r1l$39b$[email protected]..
> Yes.
> I think it is like: Alert.OK = "new ok text";
>
> ...but you should look it up in the help files.
>
This might help improve the efficiency of your Help searches:
http://flexdiary.blogspot.com/2008/07/getting-help-in-flex-builder.html -
How to turn off automatic button style in "normal state"
Hi everyone,
I have 2 different button styles (both from the palette menu) in my main menu. The problem is when I try to change the color of the first one in its "normal state" it effects all the other buttons. I just want it to effect one button at a time. How do I do this? Thanks much.
RichSorry, This is a DVD Spec thing. However you can set different color values or grayscales settings for each button (up to 4 I believe) and assigned those different colors or grey scales different values.
Maybe you are looking for
-
Apple TV + Airplay in Van Working
This is probably old news but I thought I would post my success with getting Apple TV and Airplay working in my 2014 Grand Caravan. When I searched for how to do this I didn't come up with much. There was a few youtube videos that talked about hookin
-
I recently just purchased a w530 with the 3.7 processor and 1080i screen with win 7 pro. I also purchased 4 8gb corsair vengence ram and one 512 GB 840 pro SSD. I am wondering if using raid 1 with the HDD the w530 comes with, if raid is efficent. In
-
Hi all, I have two tables, CREATE TABLE HOLIDAYS START_DATE DATE, END_DATE DATE Insert into HOLIDAYS (START_DATE, END_DATE) Values (TO_DATE('05/01/2001', 'DD/MM/YYYY'), TO_DATE('10/01/2001', 'DD/MM/YYYY')); Insert into HOLIDAYS (STAR
-
How to display Radio buttons with default selection on
Hi I want to display Radio buttons using jsf i have done it using <h:dataTable id="apartmentList" value="#{userBean.allApartmentList}" var="apartments"> <h:column> <h:selectOneRadio id="selectedApartm
-
Visual Swing Designer (for Eclipse)
Hi there We've developed a client software with JBuilder. Now we want to move the whole project to eclipse. Is there a good plugin for Eclipse to design Swing applications? I haven't found one so far. JBuilder has a Swing designer, and it is very usa