Does <URL: http://mini.net/tcl/AlwaysOnTop > help?
--
Cameron Laird <Cam...@Lairds.com>
Business: http://www.Phaseit.net
Personal: http://starbase.neosoft.com/~claird/home.html
Cameron Laird schrieb:
Good luck,
Rob
Simon Faust <simon...@post.rwth-aachen.de> wrote in message
news:3C7CECFF...@post.rwth-aachen.de...
Rob Hegt schrieb:
load ffidl05.dll
ffidl::callout dll_SetWindowPos {int int int int int int int} int [ffidl::symbol user32.dll SetWindowPos]
ffidl::callout dll_FindWindowTitle {int pointer-utf8} int [ffidl::symbol user32.dll FindWindowA]
wm title . "MYWINDOW"
update idletasks
set hwnd [dll_FindWindowTitle "MYWINDOW"]
SetWindowPos $hwnd TOPMOST 0 0 100 100
Find attached a simple (but not perfect) screen saver in Tcl
using ffidl, which may give you more ideas.
Regards,
Rolf.
Simon Faust wrote:
>
> I have still downloaded it but dont know how to use it.
> ciao Simon
>
> Rob Hegt schrieb:
>
> > That's because API calls are not directly available from Tcl. Maybe the one of
> > the dll or ffidl packages can be of help, or you use the topmost20 solution that
> > is lister further on in the wiki page.
> >
---------------------------------------------------------------
Rolf Schroedter
German Aerospace Center
Institute of Space Sensor Technology and Planetary Exploration
D-12489 Berlin, Rutherfordstrasse 2
Tel/Fax: (+49) (30) 67055-416/384
Email: Rolf.Sc...@dlr.de
What do you mean?
Load the package into the wish:
% package require topmost 2.0
2.0
To ask for the "Always on the top"-state of the root window:
% topmost .
0
To set the "Always on the top"-state of the root window:
% topmost . 1
0
To reset the "Always on the top"-state of the root window:
% topmost . 0
1
That's all!
Have fun!
Martin Lemburg
so, how does one use this?
e
This is corrected and the "new" archives are uploaded to the ftp server.
Please download again from:
ftp://ftp.dcade.de/pub/ml/tcl/packages/topmost20.all.zip
(with sources, project files, package, ... - 141kB)
ftp://ftp.dcade.de/pub/ml/tcl/packages/topmost20.zip
(package only - 6.5kB)
Thanks and best regards,
Martin Lemburg
This is the problem where to place packages!
Normally you have after installing tcl/tk following directory
structure:
c:\programme\tcl # variable, to be changed in the
| # installation
|
+-- bin # tcl/tk binaries (incl. DLLs)
|
+-- demos # only existent with a ActiveTcl
|
+-- doc # help files
|
+-- include # tcl/tk include files for own projects
|
+-- lib # package or library directory
|
+-- tclXY # tcl only library and version (XY)
| # depended packages
|
+-- tkXY # tk only library and version (XY)
| # depended packages
|
+-- abc # version independent package abc
|
+-- topmost # topmost package
|
| # etc.
Simply extract the archive with the contained directory name and place
the now created directory into the above mentioned lib directory
(subdirectory of the tcl installation directory)!
Ok?
Don't hesitate to ask!
Regards
Martin Lemburg