Custom Canvas Shape visible in design view of flex builder
I have a library which has custom controls. I have a BubbleCanvas class with the following constructor.
super();
var style:CSSStyleDeclaration;
this.setStyle("backgroundImage", canvasBackground);
this.setStyle("backgroundSize", "100%");
var btnSave:LinkButton = new LinkButton();
style = new CSSStyleDeclaration();
style.setStyle("horizontalCenter", 0);
style.setStyle("bottom", 20);
btnSave.label = "save";
btnSave.styleDeclaration = style;
btnSave.addEventListener(MouseEvent.CLICK, btnSave_Click);
this.addChild(btnSave);
var btnClose:LinkButton = new LinkButton();
style = new CSSStyleDeclaration();
style.setStyle("horizontalCenter", 0);
style.setStyle("top", 5);
btnClose.label = "close";
btnClose.styleDeclaration = style;
btnClose.addEventListener(MouseEvent.CLICK, btnClose_Click);
this.addChild(btnClose);
this.addEventListener(FlexEvent.CREATION_COMPLETE, BubbleForm_CreationComplete);
this.width = 600;
this.height = 300;
canvasBackground is a png image with transparency so that the form is shaped like a
conversation bubble.
Now at run time everything works great, what I would like is to have the control
look like a conversation bubble in the design view of flex.
Oh I only want actionscript code, since the flex sdk controls are all
actionscript. This is partly acedemic for me.
Thanks,
Greg
> The content is there, but not the 'look' we have created.
PS how are you referencing the CSS styles? Don’t forget in design view it DW and Contribute will not run any dynamic variables i.e. #stylePath#/this.css you have to use absolute paths. This is sometimes a common issue in deisgn view.
Similar Messages
-
I have a component like the following and it completely crashes the design view in flex builder
I have a component like the following and it completely crashes the design view in flex builder.I can see anything in the layout. Everything compliles fine and looks normal in the outline view. Any ideas whats wrong. If I remove the AdvancedDataGridColumnGroup's all looks fine
<?xml version="1.0" encoding="utf-8"?>
<mx:Panel x="353" y="34" width="1159" height="505.7" maxWidth="663" allowDrag="true" allowResize="true" allowClose="true" allowMaximize="true" allowMinimize="true" resizeEffect="Resize" moveEffect="Move" close="parent.removeChild(this)" maxHeight="680" layout="absolute" title="Back office list" xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:AdvancedDataGrid id="deals" displayItemsExpanded="true" dataProvider="{tradesResult}" width="100%" height="373" sortExpertMode="true" variableRowHeight="true" headerStyleName="smallHeader" editable="false" fontWeight="normal">
<mx:columns>
<mx:AdvancedDataGridColumn width="75">
</mx:AdvancedDataGridColumn>
<mx:AdvancedDataGridColumnGroup headerText="Client side">
<mx:AdvancedDataGridColumn dataField="Reference" headerText="Mon Ref" width="60" editable="true" wordWrap="true" showDataTips="true" textAlign="center"/>
<mx:AdvancedDataGridColumn dataField="clientside" headerText="MC Pr" textAlign="center" wordWrap="true" width="70">
</mx:AdvancedDataGridColumn>
</mx:AdvancedDataGridColumnGroup>
<mx:AdvancedDataGridColumnGroup headerText="Bank side">
<mx:AdvancedDataGridColumn dataField="bankDealRef" headerText="Bank Ref" width="70" editable="true" wordWrap="true" dataTipFunction="dataTipFuncNotes" showDataTips="true" textAlign="center"/>
<mx:AdvancedDataGridColumn dataField="Premium2" headerText="Bank Pr" width="55" editable="true" wordWrap="true" showDataTips="true" textAlign="center"/>
</mx:AdvancedDataGridColumnGroup>
</mx:columns>
</mx:AdvancedDataGrid>
</mx:Panel>Nikos,
When using grouped columns you should change the <mx:columns> to <mx:groupedColumns>, I ran this example in a sandbox app and it works fine.
EXAMPLE:
<mx:AdvancedDataGrid id="deals" displayItemsExpanded="true" dataProvider="{flatData}" width="100%" height="373"
sortExpertMode="true" variableRowHeight="true" headerStyleName="smallHeader" editable="false" fontWeight="normal">
<mx:groupedColumns>
<mx:AdvancedDataGridColumn width="75">
</mx:AdvancedDataGridColumn>
<mx:AdvancedDataGridColumnGroup headerText="Client side">
<mx:AdvancedDataGridColumn dataField="customer" headerText="Mon Ref" width="60" editable="true" wordWrap="true" showDataTips="true" textAlign="center"/>
<mx:AdvancedDataGridColumn dataField="product" headerText="MC Pr" textAlign="center" wordWrap="true" width="70">
</mx:AdvancedDataGridColumn>
</mx:AdvancedDataGridColumnGroup>
<mx:AdvancedDataGridColumnGroup headerText="Bank side">
<mx:AdvancedDataGridColumn dataField="revenue" headerText="Bank Ref" width="70" editable="true" wordWrap="true"
showDataTips="true" textAlign="center"/>
<mx:AdvancedDataGridColumn dataField="cost" headerText="Bank Pr" width="55" editable="true" wordWrap="true" showDataTips="true" textAlign="center"/>
</mx:AdvancedDataGridColumnGroup>
</mx:groupedColumns>
</mx:AdvancedDataGrid>
HTH,
Kenny Yates -
DW8 text not visible in design view
I have imported a site from DWMX(6?) to DW8.
In DWMX everything is visible in design view.
In DW8 the text is NOT visible in design view unless I switch off rendering using CSS (Display Styles Off), but displays fine in a browser.
If I switch off rendering using CSS I can see and edit the text but it is not remotely WYSIWYG
The pages are created from templates and were originally created using DW4 or DW3.
The site URL is http://www.decisionmodels.com/
There has to be a simple solution to this but I just cant find it.
Charlesfont verdana { font-family: Verdana, Geneva, sans-serif; }
I changed the font from default because one of the old fixes I found for Dreamweaver suggested that... I could change it back.
You are aware that this is not a legitimate CSS selector, right?
Forgive my ignorance, but what does this mean? Does it refer to my font selection? Or something else?
It means that your selector "font verdana" is not a legal selector. It says to find all "verdana" tags that are descendents of a font tag. Clearly there is no valid HTML tag called "verdana". If it was your intention to create a rule that would allow you to format text as verdana, or geneva or sans-serif, then that would have to be done with a CLASS selector, e.g.,
.font_verdana { font-family: verdana, geneva, sans-serif; }
Note the leading 'dot' and the underscore - spaces are not allowed in selector names. -
Items visible in PDF Preview not visible in Design View
Hello-
I used the auto create function to turn an existing PDF info a fill-in able PDF. Auto create "auto detects" form fields, including in some areas of the form that are not fields at all (blank areas, etc.). I go into Design View and remove any extra fields. However, I've discovered there are some fill-inable fields visible in PDF Preview and in the actual PDF itself (once saved) that are not visible at all in Design View- thus I can't click on them and delete them- they just aren't visible in that view. I've read the forums and it seems the opposite problem is more common, in which something shows in Design View but does not show in PDF Preview or in the final PDF.
Any guidance on what's going on? Next steps? I'm not a coder, so the simpler the better. Thanks to anyone with suggestions.All the fields on your form are listed in the Hierarchy which is generally on the left-hand side of your screen. In there you should be able to go through each field and delete the ones you don't need.
-
Custom ActionScript Component icon in Design View
Hi,
I have created a custom ActionScript component in Flex. I have added the Icon metadata tag before the class definition:
[IconFile("expandable-panel.png")]
public class ExpandablePanel extends TitleWindow
However, though the path to the image is correct, the icon for the custom component does not show up in Design View.
Any idea ?
Thanks.
Best regards,
Karl Sigiscar.Not very helpful. My question is more where should the icon be placed or what kind of extra configuration is required so that Flex Builder / Flash Builder can find it in Design view.
Yeah, yeah, I'm in the wrong forum. Doh. -
Hi,
Is there a way to access the mx version of components in Design View (Flash Builder Burrito), for those components that have both a Spark and a Halo/MX version, e.g. DataGrid?
Thanks... I know I can go to Source View and type in part of it, and switch to design view, however I'm doing a bunch of tutorials where the mx components are used, where one is simply dropping data services onto the components, apparently not supported yet on the newer Spark components?
-
Stacked canvas not visible in Content view???
I am following Oracle Forms Interactive Workbook and have downloaded a solution which involves implementing a scrolling stacked canvas. When looking at the solution I can see the scrolling stacked canvas items in the layout editor when the content canvas is selected. But when i look at MY form in the layout editor and do the same the only way i can see the stacked canvas items is by choosing STACKED in the object viewer.
So how do i view the content canvas with the stacked canvas items/frame together.
Presently when i run the form I see both no problem but the placement of the stacked canvas items is askew so i need to see both together in editior mode.
Thanks in anticipation
FergusHi Frank,
Many thanks for that and I should have known but would have chased my tail for ages. Just one thing how do you subsequently deselect the stacked view. When I go to "View" --> "Stacked Views" and select the view to show it shows, great, but how on earth do i deselect it? I have tried everything.
Regards
Fergus -
Subform Set visible in Design View and not PDF preview
I have created a form and used several subform sets, all of the sets and subforms within it are set to visible, but when I look at the PDF preview and when I upload the form into my internal system some of the sections are missing. I am not sure what is wrong, can someone please help!?
A subformset is used when you have numerous different subforms that can be laid down but the imbound data stream will determine which subform to lay down. For exmple if you have a form that has a a different verbiage based on state then you can have all of the subforms defined that could possibly go there then when the data is merged the state is derived and only the one for that state is used.
Hope that helps
Paul -
Link Colour Not Visible In Designer View
I have searched for an answer to no avail. This is my first
attempt at creating a website.
I have changed my link colours to reflect the overall design
of my site however my links are still coming up in default blue. I
used Modify --> Page Properties -->LInks (CSS).
Thank you,
Cheryl
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.akroindex {
-->
</style>
<style type="text/css">
<!--
p.Style2 {
margin-right:0cm;
margin-left:0cm;
font-size:14.0pt;
font-family:Verdana;
color:#333333;
body,td,th {
font-family: Verdana, Geneva, sans-serif;
font-size: 14pt;
color: 333333;
body {
background-color: #cccccc;
a:link {
color: 333333;
text-decoration: none;
a:visited {
color: 6666cc;
text-decoration: none;
a:hover {
color: #000;
text-decoration: none;
a:active {
color: 666699;
text-decoration: none;
-->
</style>
</head>
<body bgcolor="#CCCCCC">
<p><img src="Images/first try s and n.jpg"
width="200" height="150" alt="Simon and Nikki" /> <img
src="Images/Front-Page-Banner.jpg" width="700" height="156"
alt="Keeshond Rescue of Ontario" /></p>
<p> </p>
<p>Keeshond Rescue of Ontario (KRO) is an all-volunteer
organisation dedicated to caring for homeless Keeshonden and
matching them with the perfect forever home.</p>
<p> </p>
<p><a href="beforeyouadopt.html">Before You
Adopt</a></p>
<p><a href="Available Dogs/index.html">Available
Dogs</a></p>
<p><a
href="Forms/index.html">Forms</a></p>
<p><a href="codeofethics.html">Code of
Ethics</a></p>
<p><a href="howyoucanhelp.html">How You Can
Help</a></p>
<p><a href="contactus.html">Contact
Us</a></p>
<p> </p>
</body>
</html>All hex color values MUST be so noted by prefixing them with
an octothorpe
("#"). Yours are missing that prefix....
> a:link {
> color: 333333;
> text-decoration: none;
> }
> a:visited {
> color: 6666cc;
> text-decoration: none;
> }
> a:hover {
> color: #000;
> text-decoration: none;
> }
> a:active {
> color: 666699;
> text-decoration: none;
> }
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Snikkers" <[email protected]> wrote in
message
news:[email protected]...
>I have searched for an answer to no avail. This is my
first attempt at
> creating a website.
>
> I have changed my link colours to reflect the overall
design of my site
> however my links are still coming up in default blue. I
used Modify -->
> Page
> Properties -->LInks (CSS).
>
> Thank you,
> Cheryl
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
> "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="
http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
> <title>Untitled Document</title>
> <style type="text/css">
> <!--
> .akroindex {
> }
> -->
> </style>
> <style type="text/css">
> <!--
> p.Style2 {
> margin-right:0cm;
> margin-left:0cm;
> font-size:14.0pt;
> font-family:Verdana;
> color:#333333;
> }
> body,td,th {
> font-family: Verdana, Geneva, sans-serif;
> font-size: 14pt;
> color: 333333;
> }
> body {
> background-color: #cccccc;
>
> }
> a:link {
> color: 333333;
> text-decoration: none;
> }
> a:visited {
> color: 6666cc;
> text-decoration: none;
> }
> a:hover {
> color: #000;
> text-decoration: none;
> }
> a:active {
> color: 666699;
> text-decoration: none;
> }
> -->
> </style>
> </head>
>
> <body bgcolor="#CCCCCC">
> <p><img src="Images/first try s and n.jpg"
width="200" height="150"
> alt="Simon
> and Nikki" /> <img
src="Images/Front-Page-Banner.jpg" width="700"
> height="156"
> alt="Keeshond Rescue of Ontario" /></p>
> <p> </p>
> <p>Keeshond Rescue of Ontario (KRO) is an
all-volunteer organisation
> dedicated to caring for homeless Keeshonden and matching
them with the
> perfect
> forever home.</p>
> <p> </p>
> <p><a href="beforeyouadopt.html">Before You
Adopt</a></p>
> <p><a href="Available
Dogs/index.html">Available Dogs</a></p>
> <p><a
href="Forms/index.html">Forms</a></p>
> <p><a href="codeofethics.html">Code of
Ethics</a></p>
> <p><a href="howyoucanhelp.html">How You Can
Help</a></p>
> <p><a href="contactus.html">Contact
Us</a></p>
> <p> </p>
> </body>
> </html>
>
>
> -
Linux Design mode in Flex Builder?
Is it available?
thanksHey,
Have you tried the solution posted in this thread? http://forums.adobe.com/message/2736010 -
OpenType fonts in Design View.
Hi
just wondering if I should be able to see OpenType font's in
the text selection dialog box in the CSS design view in Flex
Builder 3?I am having THE SAME PROBLEM. It's making design nearly impossible. Has anyone a solution to this? I want to see Myriad Pro and not Times New Roman or Georgia in my design mode in Flex 3. After compiling, I can see the embedded font read from my css, but i still only see a default font while in design mode in flex.
-
Design view for jsp custom tags.
when we drag-and-drop custom tag control in the source of jsp page, when we switch to the design view of jsp we should be able to view controls as desired.
Observation: 1) Eclipse 3.2 doesn't have design view for jsp pages.
2) which software uses the design view. we need to extend eclipse core framework and we do not find any technical approach document to proceed further on this.
3) RAD 6.0 we can see a JSP in design view.
I'm searching for any technical approach document to create plugin that can intercept the custom tags and provide a design view.
Will any one suggest the plugin for that.Jeff,
I have checked with engineering and found that JSP Design View support on
Linux is a planned feature for the next release. I don't think we will have
this feature as part of a Service Pack for 8.1
Regards,
Raj Alagumalai
WebLogic Workshop Support
"Jeff Cassanvoa" <[email protected]> wrote in message
news:3f4df04e$[email protected]..
>
Raj,
Thanks for the information!! Any timeframe when it might be supportedon Linux
Thanks,
Jeff
"Raj Alagumalai" <[email protected]> wrote:
Jess,
Unfortunately, the JSP design view is currently not supported on Linux.
Workshop does allow to do remote development where the IDE is running
on a
Windows machine and connects to a server running on Linux/Solaris.
Regards,
Raj Alagumalai
WebLogic Workshop Support
"Jeff Cassanova" <[email protected]> wrote in message
news:[email protected]..
Does anybody else who is running the Linux version of Workshop 8.1have
troubling
getting the Design View of JSP files to come up. All I see is thesource,
with
no tabs at the bottom to switch to/from the Design View. When I bootover
to
Windows and run 8.1 Workshop, I see both tabs and I am able to useboth
views.
Is it something I have set in Preferences somewhere that disablesthe
Design
View ???
Thanks,
Jeff -
Invisible text in design view, how do I make it visible?
I cant figure out why the text in Dreamweaver is invisible,
though I can highlight it still, and see it fine in code view. I
cant make it visible in design view. I dont see css attached to the
text itself, only to the block, and other site elements, but
something in css is causing the text to be hidden and I dont know
how to make it visible. Anybody know what I should be editing or
looking to edit?
Thanks ahead of time.It sounds like a containing element may have display:none,
and that is
altered by JavaScript in the browser. DW Design View does not
run
JavaScript, so you won't see elements like that in Design
View.
If this is the case, and you are running CS3 (I think?) or
later, go to
Preferences > Invisible Elements and make sure
display:none elements are
turned on. This will show an icon in Design View that you
can
right-click and use Element View > Full (shortcut is to
double-click) on
to temporarily see that element. Use Element View > Hidden
(or F5) to
revert to the default view.
You can also override display:none in a Design-time Style
Sheet if you
want to always see that/those elements.
HTH,
Randy
> no, the text color is different and is definded in css
file...and the browser
> displays the text as defined, its the dreamweaver that
makes it totally
> invisible. I tried changing all "hidden" elements in css
file to "visible" but
> that didnt do it. -
Images and styles not showing in Design view on CS3
Hi all,
I am playing around with a CSS website template that I downloaded and
opened in DW-CS3. I am just using this to learn and play around with. It
came with the style sheet, jpg images etc.
I just noticed that when in Design view for the index page, that the images
and styles, menus are not displaying, only the html text is visible in Design view.
When I preview the site with a browser like IE or FF, it displays fine along with
any changes I have made.
Does anyone have any ideas?
Regards,
danoIn DW, View > Style Rendering > Display Styles on?
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
VB code not showing in Design View
I am working with a form that has VB code for validation and need to style it with CSS. The problem is the form is not visible in Design View. The code is there, the page renders and works fine in a browser but has anyone seen this issue before? I have a similar form that uses C# and it shows up fine in Design view.
the page is here: http://www.housing.ucsb.edu/digiknow/digiknow_form.aspxDisplay problems are most often caused by malformed code or an imbalance in opening and closing <div> tags. Try validating your code and fix reported errors.
Code Validation Tools
CSS - http://jigsaw.w3.org/css-validator/
HTML - http://validator.w3.org/
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
Maybe you are looking for
-
HI, I am creating a new report template. On save I get this error: Error occurred while saving the document template; save again. Although I save again, it does not save the layout. At this stage I don't check the symbols as I have not yet created a
-
when I try to print, I get this error message "Communications Failure: The computer is no longer able to communicate with your printer. " followed by intruictions to turn off the printer and check connections etc. I am using an HP Officejet 6500 709e
-
In the fullscreen mode of Pages 5.0, how do i change the background color?
in the old Page, when going to fullscereen mode it`s a black color of window.
-
Livetype media 2 -how to start application
Just purchased Final Cut Express which included Livetype media 2. Started to learn with the tutorial disc and could see how Livetype works, but does not show how to start the program. FC works fine. I assumed LiveType should have its own startup appl
-
URL from PushNotificationChannelManager cannot be found
I'm building a Windows Phone 8.1 app that communicates with a Windows Service with SignalR. The URL I recieve from: PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync() Looks like: "http://notificationserver.microsoft.com