First  |  Prev |  Next  |  Last
Pages: 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
Putting an image/bmp or image/png on the CLIPBOARD
I work on a native C++ app that uses Tcl/Tk as the gui. How can I put a image/png or image/bmp on the clipboard for Linux? I've done this successfully using a simple standalone C++ app that makes calls directly to Xlib and does not use Tck/Tk. I understand that I need to use Tk_CreateSelHandler() to do this w... 13 Apr 2010 11:40
A break in loop follwed by close pipe gives error "Operation Failed"
Hi, I'm facing this problem only on Macantosh OS, it works fine on Windows and Linux. Logic: Opens a pipe for reading output of a command, prints all lines and then closes pipe! On MAC, it gives following error for close $fp_job: "Operation failed" proc get_status {job_id} { if { ! [catch {set fp_job [... 14 Apr 2010 15:33
Can BLT plot _digital_ data?
Hello out there, I never realized it but plotting digital data is different from plotting a "continuous" curve (like a sinus): You don't connect the values at t(n) and t(n+1), because this would result in a sawtooth like plot. Instead you draw a horizontal line until the value changes, draw a vertical line up (or ... 13 Apr 2010 06:10
attribute lookup and replace
Hi, Within a process, a mapping table has incoming systemA to outgoing systemB attribute:values, I want to lookup the value given by systemA- attributeA on systemB, and place that value in the mapping table to systemB-attributeB. The lookup is of systemB-attributeA to systemB- attributeB. Note the process, map, ... 20 Apr 2010 15:51
Is it possible to trap errors which reach the global scope?
Hehe. Sorry if I used a wrong terminology, but I hope you understand the question. There are situations in which you can use "catch" through all of your code, but there is still a chance -- for example, if your code sources third-party scripts that might be buggy -- that an error goes "uncatched" and unwinding u... 15 Apr 2010 11:22
TclOO: Can I execute a method from an object in the context ofanother object?
I think I have found a solution, from the "friently" objects in the wiki: http://wiki.tcl.tk/21595#pagetocf3097447 I have written a proc that returns the current style object (ELEP::Style::getStyle), and used the "forward" method: oo::class create ELEP::FlowControl::Item { forward getStyle [ELEP::Style::ge... 12 Apr 2010 14:46
TclOO: Can I execute a method from an object in the context of anotherobject?
Hi all, I am wondering the following: I have a class A. This class A has a variable named "background". Then, I have a class B. This class has a method (init) that sets a value to the variable background: class create B { method init {} { my variable background set background red } } ... 12 Apr 2010 13:38
Bug in a widget
I have a widget that creates the number of entry boxes depending on the number of items from the clipboard. I kill the widget by using destory .widgetname however if the number of entry boxes needed for the new operation are less then the prior widget then the previous entry boxes are recreated. 1st widget e... 12 Apr 2010 09:10
How to send a virtual event from C++
Dear all, I have a tk extension written in C++. The main calculation is performed on a separate thread. How can I send a virtual event when the thread is terminated? Thank you Vasilis ... 14 Apr 2010 05:28
Data organization & access procs dilemma
I got myself in a big curiosity and only the Tcl masters could give me the answers. PROBLEM: The program needs to store in memory a variable-size collection of dicts, which can themselves have variable sizes, in spite of having always the same set of keys (the data in each key can be a string, or a nested dict, ... 11 Apr 2010 16:47
First  |  Prev |  Next  |  Last
Pages: 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50