Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: nater
  • Order by date
  1. nater

    Justification of text in MessageDlg

    OK, great. Thanks.
  2. nater

    Justification of text in MessageDlg

    Ha.. well, that's stupid.. =) "in many cases"? So sometimes these options will work?
  3. nater

    Justification of text in MessageDlg

    OK, does the justify option not work in the BWidget MessageDlg? Whether I do MessageDlg .msgdlg -parent . -message "Why doesn't\nthis thing work?" -type ok -justify center -icon info or even MessageDlg .msgdlg -parent . -message "Why doesn't this thing work?&quot...
  4. nater

    TCL Bug

    Hmm ok, I didn't see that warning.. I will still report the bug. Maybe you can answer something for me.. What's a better way to perform a command when the textvariable of an entry is modified? Actually, I guess I could do a key bind. I'm sure I rejected that for some reason though...
  5. nater

    TCL Bug

    But.. this works fine: set entryspace "Initial" entry .e -textvar entryspace -validate key -validatecommand "set wack 1" set head "Line header:" set inline "Line header: entry" set yap [regexp "$head ?(.*)$" $inline match temp] set entryspace...
  6. nater

    TCL Bug

    OK.. that makes a bit more sense now.. I still think I'd classify it as a bug though.. the difference was my entry also had a validatecommand. Soooo set entryspace "Initial" entry .e -textvar entryspace -validate key -validatecommand "set wack 1" set head "Line...
  7. nater

    TCL Bug

    Hmm.. that's interesting.. when I have a minute I'll make a small test program and see if I can re-create my bug.. I'm on 2000 with 8.3.4, so that's not why.. there must be another factor here.. I'll post again.
  8. nater

    TCL Bug

    Found a minor bug - I think - in TCL.. Specifically, regexp can't seem to store a match into an entry text variable. IE set entryspace "Initial" entry .e -textvar entryspace set head "Line header:" set inline "Line header: entry" set yap [regexp "$head...
  9. nater

    Allow user to run C program w/ TCL, without installing TCL/TK

    Uhh.. well, that doesn't exactly answer my question... But I can tell you how to do the incorporation part. At least one way to do it. If you want to run in from you C executable (rather than loading C packages into TCL/TK, which is somewhat easier, and documented all over the place, you've...
  10. nater

    Allow user to run C program w/ TCL, without installing TCL/TK

    Hi all.. I'd like to find some way to allow a user to run a C program I've written with a TK GUI (I used Tk_Main to incorporate tk into my C code) without having to install TCL/TK. I thought this would be a simple matter of throwing some .dlls in the directory, but once I put in Tcl83.dll and...
  11. nater

    How to create app that doesn't show screen output

    OK. If you set /subsystem:windows in the linker options, it doesn't give you a console window. The downside is that for sooome reason, your entry point then has to be WinMain instead of Main. It has a different set of arguments, and more importantly - for me - I already need my main function...
  12. nater

    How to create app that doesn't show screen output

    I have basically the same problem. I'm doing all my I/O through TCL/TK, but the console window still pops up because everything's integrated into a C++ win32 console program.. I find it hard to believe that there's no way to hide the window without switching to a lesser compiler. Seems like...
  13. nater

    Hide a Window in a Win32 Console Application?

    Care to explain? This is a simple console application we're talking about. I have the same question. I don't want to bring in a bunch of windows stuff. None, ideally. I'd just like an application with no console window.
  14. nater

    Tcl_LinkVar

    Ack.. my bad. That last one.. worked, but I didn't really understand why. It should have been more like this. The "sizeof(char)" part is unnecessary, as you know it's 1 byte, but it makes it a bit easier to follow.. (At least, if you're me.) Basically what the linkvar function...
  15. nater

    runtime char* arrays

    Just a note on the following: /* RPB - No need for a cast before cArray here * This allocates memory for size number of pointers * to char */ cArray = malloc(size * sizeof(char *)); First, a lot of compilers won't *let* you cast the l-value. Second, I was doing...
  16. nater

    Creating wish-like app with Tk_Main

    OK, so I answered my own question by downloading the source code and actually looking at Tk_Main (something I suggest for almost anyone if you're stuck. The source code is really amazingly easy to follow..) Anyway, the default Tk_Main function (Actually Tk_MainEx - Tk_Main is just a macro...
  17. nater

    Tcl_LinkVar

    Thanks.. I actually realized that stupidity before I saw your post.. but it uncovered a larger problem. When I remove the attempt to assign a value to the string there, the program compiles fine, but then LinkVar tries to read an invalid memory location. Apparently in order to get around this...
  18. nater

    Tcl_LinkVar

    Also, I'm attempting to link a C++ string to a TCL variable, and can't seem to do it. With the following code, I get strange behavior, such as the string being set to the *name* of the TCL variable. I assume I'm being an idiot and confusing the pointers or something, but I can't get it to...
  19. nater

    Creating wish-like app with Tk_Main

    Hi. I'm trying to run a TK script from a c++ program using Tk_Main. It all works, but by default, Tk_Main creates an interactive shell. Instead, I just want to run a script (file), then exit. (So all I would get is the wish-like window, not the console. I've tried setting...
  20. nater

    Binding events to tk window close

    Man.. you're the most helpful guy ever. =) Thanks!

Part and Inventory Search

Back
Top