For Programmers: Free Programming Magazines  


Home > Archive > Smalltalk > October 2004 > [VW 7.2.1] Hyperlinks in VW app.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author [VW 7.2.1] Hyperlinks in VW app.
mm

2004-10-11, 8:57 am

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.


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.
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com