Yeah, patch https://metacpan.org/source/SREZIC/Tk-804.033/pTk/mTk/win/tkWinDialog.c to make it resizable

--- pTk\mTk\win\tkWinDialog.c 2016-08-10 20:17:09.500000000 -0700 +++ pTk\mTk\win\tkWinDialog.c 2016-08-10 20:17:07.453125000 -0700 @@ -29,6 +29,9 @@ #include <shlobj.h> /* includes SHBrowseForFolder */ /* These needed for compilation with VC++ 5.2 */ +#ifndef BIF_NEWDIALOGSTYLE +#define BIF_NEWDIALOGSTYLE 0x00000040 +#endif #ifndef BIF_EDITBOX #define BIF_EDITBOX 0x10 #endif @@ -1777,7 +1780,7 @@ * Set flags to add edit box (needs 4.71 Shell DLLs), status text + line, * validate edit box and */ - bInfo.ulFlags = BIF_EDITBOX | BIF_STATUSTEXT | BIF_RETURNFSANCE +STORS + bInfo.ulFlags = BIF_NEWDIALOGSTYLE | BIF_EDITBOX | BIF_STATUSTE +XT | BIF_RETURNFSANCESTORS | BIF_VALIDATE; /*

Thats the simplest way. Could also set width height with SetWindowPos function (Windows) but that requirs more pTk chops.

Also since I forgot how to fix this nonsense

gcc -s -L../zlib -o pngtest pngtest.o libpng.a -lz -lm gcc -s -o example example.o libz.a gcc -s -o minigzip minigzip.o libz.a gcc -s -o example_d example.o libzdll.a example.o:example.c:(.text+0x33): undefined reference to `compress' example.o:example.c:(.text+0x60): undefined reference to `uncompress'

Since Tk::PNG doesn't need those examples get rid of that junk

#~ Tk-804.033\PNG\zlib\Makefile #~ Tk-804.033\PNG\zlib\win32\Makefile.gcc #~ all: $(STATICLIB) $(SHAREDLIB) $(IMPLIB) example minigzip example_d + minigzip_d all: $(STATICLIB) $(SHAREDLIB) $(IMPLIB)

That should do it, although when I test this I run into memory access violation, and then I give up :)


In reply to Re^7: Setting size of Tk chooseDirectory by Anonymous Monk
in thread Setting size of Tk chooseDirectory by merrymonk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.