| Rowan Bunning 2004-10-12, 3:57 am |
| WithStyle makes this very easy. With WS loaded, just execute the following:
'<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ev="http://www.w3.org/2001/xml-events">
<head>
<title>Invoke Smalltalk using an XML Event</title>
<style type="text/css">
span { color: blue; text-decoration: underline; cursor: hand }
</style>
<script id="executeSmalltalk" language="Smalltalk">
Dialog warn: ''Execute Smalltalk here''.
</script>
</head>
<body>
<span ev:type="click" ev:handler="#executeSmalltalk">Hyperlink</span>
</body>
</html>' wsBrowse
If you want to do a Web Form style UI, form widgets are coming in the
next version of WithStyle which integrates with Pollock.
To get hold of WithStyle, sign up with our Developer Program:
http://www.softwarewithstyle.com/join_wsdev.html
mm wrote:
> I want to put hyperlinks into a VisualWorks application ( i.e. not a web
> app ).
> I want the hyperlink to act like a button but look like a hyperlink.
> I also want the cursor to change to a hand while mousing over.
> Has anyone done this ?
> Thanks in advance.
>
>
|