Custom Widgets

Chandrashekar, Alaiah <[email protected]> wrote
<snip!>
Do anyone know about developing custom widgets in Forte. I have a
situation were I need to develop a Ruler widget which is very similar
to the Line widget provided by Forte. I tried subclassing it from the
Line widget and it does not allow me to do that. IM(NS)HO, one of the (few!) real weaknesses of Forte is its barrenness,
in the genealogical sense -- most of its objects, including, apparantly,
all the graphic ones, can't have children. My particular graphic gripe
is the lack of a spin widget, but I sympathise.
In SOME cases you can get the "moral equivalent" of subclassed widgets
by other means. These include (but are not limited to!):
* Subclassing non-graphic objects to get a custom display (e.g. a
subclass of IntegerNullable that displays itself as Roman
numerals). I suspect this approach does not meet your needs.
* Writing non-graphic manager objects to manipulate a bunch of graphic
objects in standard ways to make them "look" kind of like a
custom graphic object. For example, one way to get a ruler might
be to put a panel on your window, and create a non-graphic
object that draws appropriately in that panel, and (using an
event handler which must be manually registered) responds to
events in it.
* Create a window that's just one big ruler, and nest that window in
whatever window you want to display a ruler. This is how I
simulated a spin widget.
When choosing among the last two alternatives, I go for the latter, more
out of habit than anything else. I believe that with a nested window you
get a simpler object; but on the other hand you can't usefully nest a
window in an array field (it simply doesn't function) or a mapped
CompoundField (it'll function just fine, but won't automatically update
the mapped object unless you do something to explicitly tell the nested
window what it's supposed to be updating).
You will find a sample app using nested windows in
${FORTE_ROOT}/INSTALL/EXAMPLES/DISPLAY/NESTWIN.PEX
Tom Wyant The opinions expressed in this document are
[email protected] those of the author, except for the
[email protected] following, which is William Shakespeare's:
"The first thing we do is, we'll kill
all the lawyers."
Henry VI, Part II, Act 4, Scene 2

HI
The buttons used in the Program displayed by your link are mostly images used in the buttons, especially for the toolbar. So may have to get out your drawing board and start creating yorur own images. Also the button used for the inner frame, is something that can be achieved by creating a new look and feel for your application. Check out the Code Examples in you sdk, the MetalWorks example in particular. Go through all the looks and feels provided for that application and try to come up with your own, so that you frame buttons will look fancier.
Also search the net for IFrame. I can't remember the site where it is located but it provides you with Java classes for custom JFrames which a have very powerful and interest appearances.
These should get you on your way. Do remember:
1. Images for toolbar buttons and normal JButton
2. Custom Look and Feel for JFrame buttons
All the best.
ICE

Similar Messages

  • Is it possible to force links inside a custom widget to open in Safari instead of within the widget?

    I'm just starting to get into working with iBooks Author, so apologies in advance if this is a FAQ.  I've search the forum and the web but haven't been able to find an answer.
    I'm trying to link out to an external resource from within a custom widget I've created.
    Instead of opening in Safari, the link is opening within the widget overlay.  There are no browser controls, the content doesn't scroll and there's no way to get back to the widget's original content without closing and reopening the book.  Closing and reopening the widget doesn't reset the widget state.
    I can work around this if I have to, but I'm hoping someone here has a solution.

    I'm looking for an answer to this too. I found that you can do this in a normal Dashboard widget with widget.openURL("...") but for whatever reason the openURL method isn't available in iBooks. Still looking for a solution...

  • Custom widget triggers - or call widget functions

    The title says it !
    Take for example three scenarios:
    1. We have a lightbox display with several slides. Each slide has interactive content like buttons. Some of the buttons will cause the lightbox to close but at the same time we need the close button. So, more than one close buttons.
    2. We need to navigate between slides in a certain order, so on the first slide, we dont need the previous button although it will have to appear as soon as we move on. Likewise, the next button should be removed on the last slide.
    3. After opening a slide in a lightbox we want a css animation to play. The css is created externaly, its put into assets and linked from an html object. But when and how would we call the animation to start? The css fires up as soon as stuff is loaded but we need it to play exactly after the slide is brought into view.
    • So the question is clear: Is it possible to do those from inside muse, or we need to create custom widgets from scratch? Like with jquery maybe.
    • Is there a way to alter the default muse scripts, or simply call widget functions from our buttons? Example: button calls lightbox.close() or lightbox.next(); etc...
    I'm sorry if it has been asked before, i just couldn't find something the way i've searched it. Maybe I'm asking the wrong way but I believe its clear. Anyway, there is not need for muse to do everything, if someone has a workaround would be also welcome!
    Thanks alot!

    Hi Fabrice,
    You should be able to use the cpCmndGotoSlide variable. I suspect that the problem is something with your path in Flash.
    Can you post an excerpt of the code you use for your buttons in the Flash widget?
    /Michael
    Click here to visit the www.captivate4.com blog

  • How to change Custom widget title

    Hello experts,
    I have a widget titled as Custom Widget.How can i change
    this title ?

    Hello,
    By default SAP Widget Foundation accepts connections only from localhost, but it can be changed by removing line
    <Set name="host">localhost</Set>
    from middleware.xml in C:\Documents and Settings\<username>\SapFoundation
    After this modification, host where widget tries to connect should be changed in widgets from 127.0.0.1 to your server host
    Foundation at the moment is designed as component to run on the same box as widgets as it is responsible for Y! widget autoupdate and can use SSO with Secude
    Eriks

  • Create a custom widget

    I would like to create a "component" -- basically a drop-down menu.  Except that my drop-down menu will not select an item when a user clicks on it.  The user must click on it for 2 seconds and then it will be selected.  How can I create this custom widget/component?

    Thanks for your reply.  I was looking at AS 3 classes and in particular the Spark class DropDownList.  I am thinking of creating a class that extends from DropDownList.  Then overriding some method that will allow me to implement exactly when something should be selected (not just a click of the mouse but when the mouse is held down for 2 seconds).  I am just having trouble finding which method this would be, maybe a public or private method or an event.  I'm such a noob at this I'm sure this is obvious and either someone already knows it or it will catch their eye very quickly.  This is the link to the DropDownList in case someone wants to take a glance at it: class http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/DropDo wnList.html   I appreciate all your help.

  • Importing custom Widgets problem

    hi everyone.  I'm new to the forum, so I hope I'm posting in this in the correct area.  Here's my issue:  I am making custom widgets for an interactive tutorial for my work using Flash CS4.  When I try to import or open the widget in Captivate 4 I receive the following error: "Not a valid Widget".  I'm not sure if there is a specific setting that I am unaware of that I need to do in Flash before I publish it into a .swf or something.  If anyone could help it would be greatly appreciated 
    PS: i made sure that all files were using AS3, and that both were set to use the Flash Player 9.

    nevermind.. i figured out that there were some compiling erros when I published my .swf  ....  lol.. all fixed and got my widget functioning in captivate

  • Custom widget with SmartFile

    How should be defined custom widget with SmartFile?
    My current js widget definition is: http://pastebin.com/V7MF636t, but it do not render widget in CQ  edit dialog (only RichText is rendered, so general definition is ok).
    CQ version is 5.5
    Regards,
    bulan

    hi bulan,
    afair the panel of the smartfile is initialized in its processRecord method. so if the method is never called the d&d panel is not going to be rendered. so the first thing to do, is to debug the processRecord method of your custom widegt (or compositeField in this case). sinse you are defining the SmartFile in a custom field, i dont believe its processRecord method is called. i suppose the composite field delegates the call only to the widgets defined in the items field.
    cheers, igor.

  • Custom widget on Dashborad

    Hi,
    I have a custom widget for dashboard that was created(WPF), I want to include a contextual menu on it, similar to widget of the SCOM 2012 and the panel Task,
     this behavior is possible to implement..

    For custom widget for dashboard to include context menu, you can check below links
    http://social.technet.microsoft.com/wiki/contents/articles/24595.operations-manager-dashboard-script-widgets.aspx
    http://gallery.technet.microsoft.com/Custom-Web-Page-for-SCOM-10bea7ce
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
    Mai Ali | My blog: Technical | Twitter:
    Mai Ali

  • A custom widget : Waterfall Display

    Hi,
    I developed a waterfall display (aka spectrogram) as a custom widget to explore the capabilities of JavaFX. It turned to be an interesting experience for me.
    I want to share it with the community. An explanation is on my blog : [http://javafxwidgets.blogspot.com/]
    Any comments and suggestions are welcome.
    Altug

    Nice!
    Cheers,
    Nuwanda

  • How can I make a custom widget--JSlider2D?

    Hello
    I need to control two values x and y on a GUI. I am using two perpendicular JSliders to do that, but it looks ugly and is hard to use. I dreamed of makeing a 2D Slider(!) which basically would be a square of a circle with a nub in the middle. User can replace the nub and programmer gets back getValueX(), getValueY(), etc. Could someone please tell me how (or whether) I could do that?
    Thanks a lot,
    Mehrdad

    Just create a component that does that. You can extend JComponent and make your own paintComponent() method to paint however you want your component to look like.
    You might also add a custom MouseMotionListener to your component and in its mouseDragged() method you can update the x and y values.
    If you plan to use a layout manager that takes the components' preferred size into consideration you should make your component return a suitable value in its getPreferresSize() method.
    - Marcus

  • Urgent: No data while calling remote function in custom widget.

    Hi,
    I created a function module with transaction se37 and in its attributes checked the 'Remote Enabled' radiobutton.
    Now in my widget I called this remote function in my RFC view.
    The data is not displayed in the widget and in debug mode error is displayed :
    "Type error: data.root has no properties (RFCRequest .js: Line 102 )"
    what is the reason for the error ?
    or am I going wrong with remote function module call.
    regards,
    Omkar H. Nakhate

    Hi,
    Thanks for the information provided.
    We are using Eclipse plug in to create the widget
    After  Debug yahoo widget,
    This is my Konfabulator log.
    Welcome to Yahoo! Widgets 4.5.1 (build 10A39) on 04/03/08 17:01:44.531
    Type '/help' for help.
    Loaded Widget 'rfc_call' from C:\Documents and Settings\Administrator\Desktop\new Data\rfc_call\Main.kon
    04/03/08 17:01:44.875: rfc_call version is 1
    Main.kon (Included file 'js/utils/PlatformUtil.js')
    Main.kon (Included file 'js/utils/DomUtil.js')
    Main.kon (Included file 'js/utils/CommonUtil.js')
    Main.kon (Included file 'js/utils/Common.js')
    Main.kon (Included file 'js/utils/Timer.js')
    Main.kon (Included file 'js/utils/DataLoader.js')
    Main.kon (Included file 'js/utils/RFCRequest.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/Skin.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinCell.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinConfiguration.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinCustomDraw.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinImage.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinInput.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinList.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinElementStyle.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinEvents.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinComponent.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinText.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinLabel.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinViewDefinition.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinViewDraw.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/XmlUtil.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/ConfigurationReader.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinUtil.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/ResourcesReader.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/ResourceBundle.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/Components.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/ComponentEvents.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/ComponentProperties.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/WidgetUtil.js')
    Main.kon (Included file 'js/skinlib/SkinLib_Include.js')
    js/utils/PlatformUtil.js (Included file 'components/c.About/js/c.About.js')
    js/utils/PlatformUtil.js (Included file 'components/c.About/js/c.About_Include.js')
    js/utils/PlatformUtil.js (Included file 'components/c.Feedback/js/c.Feedback.js')
    js/utils/PlatformUtil.js (Included file 'components/c.Feedback/js/Animation.js')
    js/utils/PlatformUtil.js (Included file 'components/c.Feedback/js/c.FeedbackController.js')
    js/utils/PlatformUtil.js (Included file 'components/c.Feedback/js/c.Feedback_Include.js')
    js/utils/PlatformUtil.js (Included file 'components/c.Footer/js/Footer.js')
    js/utils/PlatformUtil.js (Included file 'components/c.Footer/js/c.Footer_Include.js')
    js/utils/PlatformUtil.js (Included file 'components/c.Header/js/Header.js')
    js/utils/PlatformUtil.js (Included file 'components/c.Header/js/c.Header_Include.js')
    js/utils/PlatformUtil.js (Included file 'components/c.StartupManager/js/tasks/Task.js')
    js/utils/PlatformUtil.js (Included file 'components/c.StartupManager/js/tasks/TaskSet.js')
    js/utils/PlatformUtil.js (Included file 'components/c.StartupManager/js/tasks/JavaChecker.js')
    js/utils/PlatformUtil.js (Included file 'components/c.StartupManager/js/tasks/FoundationChecker.js')
    js/utils/PlatformUtil.js (Included file 'components/c.StartupManager/js/tasks/WidgetDeployer.js')
    js/utils/PlatformUtil.js (Included file 'components/c.StartupManager/js/TaskViewer.js')
    js/utils/PlatformUtil.js (Included file 'components/c.StartupManager/js/StartupServices.js')
    js/utils/PlatformUtil.js (Included file 'components/c.StartupManager/js/ActivityLogger.js')
    js/utils/PlatformUtil.js (Included file 'components/c.StartupManager/js/c.StartupManager_Include.js')
    js/utils/PlatformUtil.js (Included file 'components/c.Table/js/Table.js')
    js/utils/PlatformUtil.js (Included file 'components/c.Table/js/c.Table_Include.js')
    js/utils/PlatformUtil.js (Included file 'components/c.TellToFriend/js/c.TellToFriend.js')
    js/utils/PlatformUtil.js (Included file 'components/c.TellToFriend/js/c.TellToFriend_Include.js')
    js/utils/PlatformUtil.js (Included file 'components/Main/js/controller/Controller.js')
    js/utils/PlatformUtil.js (Included file 'components/Main/js/view/View.js')
    js/utils/PlatformUtil.js (Included file 'components/Main/js/model/Model.js')
    js/utils/PlatformUtil.js (Included file 'components/Main/js/Main_Include.js')
    Main.kon (Included file 'components/Main/js/Main.js')
    04/03/08 17:01:45.859: Starting deployment
    04/03/08 17:01:45.859: Deployment Finished
    17:1:46! [Components.create] cAbout : c.About
    17:1:46! [Components.create] cFeedback : c.Feedback
    17:1:46! [Components.create] cFeedbackHeader : c.Header
    17:1:46! [Components.create] cFeedbackFooter : c.Footer
    17:1:46! [Components.create] referenced1 : c.Table
    17:1:46! [Components.create] cMainHeader : c.Header
    17:1:46! [Components.create] cMainFooter : c.Footer
    17:1:46! [utils.DataLoader]> open( POST http://127.0.0.1:7531/SapMiddleTier/RESTJSON/ewcs/service/rfct?serviceProvider=&httpMethodOverride=POST true );
    17:1:46! [utils.DataLoader]> headerName: Content-Type ; headerSource: text/xml
    17:1:46! [utils.DataLoader]> data: <root><RfcRequest name='ZTABLE'><![CDATA[ <T_ROM></T_ROM> ]]></RfcRequest></root>
    17:1:52! [utils.DataLoader]> (http://127.0.0.1:7531/SapMiddleTier/RESTJSON/ewcs/service/rfct?serviceProvider=) request returned
    TypeError: data.root has no properties (RFCRequest.js: Line 102)

  • Broken link to Custom Widget tutorial

    Does anyone have the correct link to the 'Creating a Muse Customizable Widget' tutorial on http://muse.adobe.com/tutorials.html. Please...?

    Thank you for pointing it out. The correct link is http://muse.adobe.com/creating-a-.mucow.html
    Will be getting the same fixed on the Tutorials page as well.
    Thanks,
    Vikas

  • Why do custom widgets have to play full screen

    Whats the reason that apples own widgets can play directly on the book - the video, quiz, interactive image etc
    but if we create a widget in dashcode it can only work once made full screen?
    is there a setting in the widget publication that will allow it to act like the native widgets?

    Those instructions refer to running the application in fullscreen mode using the Lion operating system. Since you don't see either option, I suspect you don't have Lion installed.

  • Image inside a custom widget

    Hello fellow Muse creators
    Suppose I want to make a widget that allows users to specify whether (with a bool) users could collapse ( — ) or close a widget ( X )?
    This is only for prototyping purposes so I don't need the logic for expanding/collapsing this content, but what I really need is a widget that can be configured with title (already in place) but so far I can't figure out how to load a graphic, in this case two, that presents these options. Again offering the option to make the widget collapsable or minimizable.
    Thanks

    Thanks for pointing me in the right direction.
    The Close option in the OOUI resembles what I am looking to create.
    Is there a way to learn how that specific widget was coded? I can't seem to find in the Muse Applications folder any references to widgets.
    Thanks

  • Custom widget - rollover image to make a larger one appear and blur background

    I am working on a Muse site.  I am looking for a way to take an image (say an icon or small photo) and make it so when you roll the mouse over it, a larger photo appears and goes fullscreen - also the background would maybe slightly blur or some type of effect like that.
    Does anyone know of a way to easily do this or if there is an effect I can purchase?

    You can use composition for similar effect but yes this would not work with mouse hover action but user will have to click on content (image) , else you can use any zoom third party widget to enlarge an image with mouse hover.
    Thanks,
    Sanjit

Maybe you are looking for

  • What's happen in Photoshop CS4?? please help...

    Hi everybody, now i have problem with Photoshop CS4 but i don't know why. I've installed it in Windows Vista, when finished installing, open the picture and ... (please see the picture as below) I've already re-installed many times but still same pro

  • Photo application won't open anymore on my ipad

    I have about 8gb of pictures on my 64gb ipad and been syncing it on the iphoto on my mac. Ive been doing that for quite sometime and working perfectly but after i used faces on my mac and synced it again, Photo application on my ipad wont open anymor

  • IPhone 4 Win7 and the bluetooth driver among them

    Hello, I'm trying to connect my new iPhone 4 with my computer (IBM x300 with Win7) via Bluetooth. It seems like there is a driver problem. Although both devices can see each other they cannot connect and the message I get is about a driver. Where can

  • E-Sourcing Certification

    Hi Experts, Please provide details on getting certified on E-Sourcing . Regards, Kavya

  • NEED HELP ASAP on RAM for MBP Unibody 15"

    I need to max out the memory/ram in my MBP 2.53 4GB 250GB..... Can anyone tell me what type of RAM I need and what my options are please? I have taken on a project that requires to have multipe applications and windows running at the same time and my