Re: Questions/Problems

new topic     » goto parent     » topic index » view thread      » older message » newer message

Good morning!  (Well, in my dusty little corner of the planet, anyway ...)


>* How does one close a DOS box after it's "Finished" - behaviour of
>"system_exec()"

Have you tried free_console()?

>* The icon I assign in an exw, setIcon(), doesn't display in the switch
>application dialog, ie, using ALT-TAB.  What do I do to fix this?

Each window actually has two icons, a "large" icon, and a "small" icon.  At
present,
win32lib.ew only sets one of these, which is why you see the standard
IDI_APPLICATION icon in ALT
+ TAB.  To fix this, be sure to use setIcon() first.  Then:

object xVOID

    xVOID = sendMessage(yourWindow, 127, 0, 0)     -- 127 = WM_GETICON
    xVOID = sendMessage(yourWindow, WM_SETICON, 1, xVOID)

That will synchronize them.


>* Is it possible to embed an icon into an exe?

bindw has a flag -icon, which embeds the icon onto the bound executable.  More
information about
this is in the standard documentation file, bind.htm.

>* Dragging an ".EXW" file on top of a "EXW.EXE" shortcut on the desktop
>doesn't produce the bitmap for a button, yet,  running "EXW.EXE" from an
>MS-DOS prompt does.  Anything I should concern myself with?

When you go to the .exw file using the prompt, you probably *cd* there, which
makes your exw
file's directory the current directory.  However, when dropping the file onto
the exw shortcut,
more than likely the current directory is then c:\windows.  Thus, if setBitmap()
for the button
uses a relative filename, the file might not be found.

Using the command_line() function, and looking at the path on the running file's
name (the second
element of the sequence returned by command_line()), you can figure out the
running file's home
directory and then use chdir() to make it the current directory.

>* deleteItem() does return a value, contrary to the win32lib HTML help . . .
>I was pulling my hair out on this one!!! blink

That happens a lot in win32lib.ew.  Derek, why is this a function, and what is
the return value?

-- Travis --

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu