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 Mike Lewis 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: papageno
  • Order by date
  1. papageno

    Custom global attribute in XHTML document?

    Hi, I need a custom attribute to store arbitrary data, for example: <div id="page1" myattribute="page"> <h1 id="page1header" myattribute="header"> Is it possible to create a global (like id, lang, etc) attribute, or at least to "import" an attribute from a DTD via xmlns="DTD-URI" ?
  2. papageno

    child div height = parent div height ?

    I just want the floated div to expand vertically to the parent's size. It seems I need to explicitly set the parent's height for ".child height:100%" to work.
  3. papageno

    child div height = parent div height ?

    I can't seem to find a way to make a floated div the same height as its parent non-floated div, i.e.: .parent { border: 1p solid #ffffff; } .child { float: left; width: 10px; height: 100%; } If I specify a height for the .parent div (e.g. 100px), then the .child is no taller than that...
  4. papageno

    scrollTop &amp; document/documentElement

    Oh, OK I get it. Thanks to you both.
  5. papageno

    scrollTop &amp; document/documentElement

    In WXP IE6, I have a button call foo(): var frame = window.frames['fname']; frame.window.scroll(0,300); function foo () { if (frame.window.innerHeight) { pos = frame.window.pageYOffset alert('window '+pos) } else if (frame.document.documentElement &&...
  6. papageno

    How to get frame's height

    This works in IE6: var fr = top.frames[5] if (fr.window.innerHeight) { height = fr.window.innerHeight } else if (fr.document.body.clientHeight) { height = fr.document.body.clientHeight } However, this seems to be the height of the document, not the height of the frame.
  7. papageno

    How to get frame's height

    That would be the height of the top-most frame i.e. the browser's window, wouldn't it?
  8. papageno

    How to get frame's height

    In the following code, what should go in place of "¿?" to obtain the height of one (any) of the frames? <head> ... <script language="javascript"> var frameheight = ¿? </script> </head> <frameset rows="30,*,30"> <frameset cols="30,*,60,*,30"> <frame name="top1" /> <frame...
  9. papageno

    How to add a tag to characters not yet typed

    OK, thank you anyway. =)
  10. papageno

    How to add a tag to characters not yet typed

    It's for a quite simple text editor with buttons for bold/italics/etc. I mention the cursor (insert) position because it's the text entered after that position that must be tagged. (Or that's my guess? Dunno.) But how would I go about it if, for example, no text at all has been typed yet but the...
  11. papageno

    How to add a tag to characters not yet typed

    So, there's a button you push to apply format to characters in a text widget. No problem if the characters are already there, you select them and apply the tag to them. But if the cursor is at N.0 of a new (blank) line and you push the button to apply the tag to the text you are about to write...
  12. papageno

    How to add a tag to characters not yet typed

    Yes, but the problem is that the tag must be applied to the character before and the character after the cursor. And that's not possible at index 0.0.
  13. papageno

    How to add a tag to characters not yet typed

    e.g. when the cursor is at the beginning of an empty line and you want to apply a tag to what you are going to type next.
  14. papageno

    Blank space between widgets

    Solved: default -highlightthickness for canvases is not 0.
  15. papageno

    how to get new window size after resize?

    I have a window with two entry widgets and I would like to get the new window size (width x height) in the widgets every time the user resizes the window. Is that possible ?
  16. papageno

    Blank space between widgets

    It seems it has to do with the canvases. If I replace them with labels, the blank spaces are gone.
  17. papageno

    Blank space between widgets

    So I have three frames aligned vertically, and inside each there is one label, one canvas and another label aligned horizontally (all set to "-side left"). The only properties specified are "-bd 0", "-height 40", "-width 40" and "-image imagename", expand and fill are set to "1" and "both"...
  18. papageno

    retrieve the number of the last line of a text widget

    Great, thank you. So this works: .text -width n -height n -font {name n} pack .text set astring "my string" set lastline [lindex [split [.text index end] .] 0] if {[expr $lastline % 26] == 0} { .text insert end $astring } Now I would like the string to start with a tab, but .text...
  19. papageno

    retrieve the number of the last line of a text widget

    I need to use that number in an expression like: if {the number of the last line is a multiple of X} { do something }
  20. papageno

    Widget's height relative to other widget's height

    All right, since I wanted the image to occupy the whole of the labels, here's what I did: frame .aframe label .aframe.label1 etc... text .aframe.text etc... label .aframe.label2 etc... pack .aframe.label1 .aframe.text .aframe.label2 -side left pack .aframe -side top set textheight [winfo...

Part and Inventory Search

Back
Top