Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Balloon on custom widgets
This is a multi-part message in MIME format.

------=_NextPart_000_0001_01C48C40.2AFF3360
Content-Type: text/plain;
charset="iso-8859-2"
Content-Transfer-Encoding: 7bit

Hi all,
Can anybody help me, what I should to do to involve balloon effect on
created by me composite megawidgets which are embedded in canvas widget
by createWindow metod?

Any pointers will be greatly appreciated.

Bogdan


------=_NextPart_000_0001_01C48C40.2AFF3360
Content-Type: text/html;
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:=
schemas-microsoft-com:office:word" xmlns=3D"http://www.w3.org/TR/REC-html=
40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Diso-885=
9-2">


<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml@01C48C40.2A5278A0">
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:HyphenationZone>21</w:HyphenationZone>
<w:EnvelopeVis/>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
span.StylWiadomociEmail17
{mso-style-type:personal-compose;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:windowtext;}
span.SpellE
{mso-style-name:"";
mso-spl-e:yes;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;
mso-header-margin:35.4pt;
mso-footer-margin:35.4pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */=20
table.MsoNormalTable
{mso-style-name:Standardowy;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=3DPL link=3Dblue vlink=3Dpurple style=3D'tab-interval:35.4pt'>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US style=
=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'>Hi all,<o:p></o:p></spa=
n></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US style=
=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'>Can anybody help me, wh=
at I
should to do to involve balloon effect on created by me composite <span
class=3DSpellE>megawidgets</span> which are embedded in canvas widget by =
<span
class=3DSpellE>createWindow</span> <span class=3DSpellE>metod</span>?<o:p=
></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US style=
=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'><o:p> </o:p></span=
></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US style=
=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'>Any pointers will be gr=
eatly appreciated.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US style=
=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'><o:p> </o:p></span=
></font></p>

<p class=3DMsoNormal><span class=3DSpellE><font size=3D2 face=3DArial><sp=
an lang=3DEN-US
style=3D'font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-US'>Bogd=
an</span></font></span><font
size=3D2 face=3DArial><span lang=3DEN-US style=3D'font-size:10.0pt;font-f=
amily:Arial;
mso-ansi-language:EN-US'><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US style=
=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'><o:p> </o:p></span=
></font></p>

</div>

</body>

</html>
------=_NextPart_000_0001_01C48C40.2AFF3360--
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server.  If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to majordomo@lists.stanford.edu

Report this thread to moderator Post Follow-up to this message
Old Post
Bogdan Łukasiewicz
08-27-04 08:58 PM


RE: Balloon on custom widgets

> -----Original Message-----
> From: owner-ptk@lists.Stanford.EDU [mailto:owner-ptk@lists.Stanford.EDU]
> On Behalf Of Bogdan Lukasiewicz
> Sent: August 27, 2004 6:14 AM
> To: ptk@lists.Stanford.EDU
> Subject: Balloon on custom widgets
>
> Hi all,
> Can anybody help me, what I should to do to involve balloon effect on
> created by me composite megawidgets which are embedded in canvas widget by
> createWindow metod?
>
> Any pointers will be greatly appreciated.

Just attach the balloon to the widget itself instead of treating it like a
canvas item. The script below shows both.

## Example ##
use Tk;
use Tk::Balloon;
use strict;

my $mw=tkinit;
my $c=$mw->Canvas->pack;
my $l = $c->Label(-relief=>'sunken',-text=>'embedded window');
$c->create('window',50,50,-window=>$l);
$c->create('text', 50,100,-text=>"A Text Canvas Item",-tags=>'TESTTAG');
$b = $mw->Balloon(-background=>'yellow');

$b->attach($l,-initwait=>0,-balloonmsg=>'Attached to Widget');


$b->attach($c, -initwait=>0,
-balloonposition => 'mouse',
-msg=>{ 'TESTTAG'=>'A Canvas Item'}
);
MainLoop;

__END__

Jack
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server.  If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to majordomo@lists.stanford.edu

Report this thread to moderator Post Follow-up to this message
Old Post
Jack D.
08-27-04 08:58 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PerlTk archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:53 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.