I have been tasked with developing an ActiveX component that will detect whether or not there is a particular device physically attached to the machine. Is there a way to do this (system registry, etc). Thanks for any input.
The proper syntax for setting the cursor and attributes would be (example):
. configure -cursor {hand1 white black}
You can make the cursor invisible by setting the foreground and background colors to the color of the underlying window:
. configure -cursor "hand1 [. cget -bg] [.cget...
Try using the 'info script' command. This will give yoyu the name of the script that is currently being processed.
Mike Suttles
Xerox OPBU Technology Development Group
Here's the basic script for server side stuff:
#Set up a server socket on port 14000, with a callback to the socketAccept procedure:
set s [socket -server socketAccept 14000]
#This proc gets the socket connection from any client connection. It will be called with the open handle identifier...
I have answered this question before, but will do it again here, without doing a FAQ. If you are connecting to any server via the IO mechanism and expect the server to reply to the 'puts whatever' line you just invoked, you MUST use the flush command to flush the output buffer to the channel. If...
Wish usually defers updating screen contents until it sees idle time. You can force a screen update by inserting 'update idletasks' after the '.statusWin delete 0.0 end', and after each call to the update procedures.
Mike Suttles
Xerox OPBU
Try reading up on the regexp command. You can build a query that will parse the string automagically. I would do it for you, but then you would miss out on all the fun!
If you close the sending end, all output will be flushed. But if you are leaving the socket open, then you need to do a flush command after the IO to make sure all output is sent immediately.
Environment: Solaris7 on an UltraSparc with Wish 8.3.3
Example snippet:
option add *Listbox*cursor hand2
toplevel .top
wm transient .top .
listbox .top.l
pack .top.l -side top -fill both -expand y
<do some stuff>
destroy .top
Any cursor will do in the option statement. This causes a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.