Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#889 closed Bug (No Bug)

GUISetIcon() stops working after FileOpenDialog()

Reported by: doudou Owned by:
Milestone: Component: AutoIt
Version: 3.3.0.0 Severity: None
Keywords: gui icon standard dialogs Cc:

Description

If you create a form AFTER FileOpenDialog() was called and SUCCESSFULLY returned a file name chosen by the user, all subsequent calls to GUISetIcon() have no effects (your form will assume the default AutoIt icon).

Calling FileOpenDialog() alone isn't enough to reproduce the bug: closing it with "Cancel" or "X" would not break GUISetIcon().

There's a test AU3 script attached, extract it along with both icons and run. Press "Show Dialog" first - you will see "Icon2.ico" as icon in the new form, then press "Browse For File", select a file and Press "Open", then press "Show Dialog" again and here we go - standard AutoIt icon.

Attachments (1)

Tests.zip (2.4 KB ) - added by doudou 17 years ago.
Bug show case

Download all attachments as: .zip

Change History (4)

by doudou, 17 years ago

Attachment: Tests.zip added

Bug show case

comment:1 by Jos, 17 years ago

OpenFileDialog() changes the Workdir to the directory the file was chaoosen from.
Try setting it back to de @Scriptdir right after the OpenFileDialog().

comment:2 by J-Paul Mesnage, 17 years ago

Resolution: No Bug
Status: newclosed

doc say

@WorkingDir is changed on successful return.

so no bug

comment:3 by doudou, 17 years ago

Thanks for clarification. Connecting GUISetIcon's behavior to OpenFileDialog's change of working directory never came to my mind.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.