AutoHotkey Community

It is currently May 27th, 2012, 2:33 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Gui, add, Picture....
PostPosted: September 21st, 2005, 7:27 pm 
Offline

Joined: February 14th, 2005, 10:54 am
Posts: 447
Location: Texas, Usa
Code1
Code:
Gui, Add, Picture, x576 y7 w20 h20, %A_ScriptDir%\Images\Find.bmp
Gui, Add, Picture, x596 y7 w20 h20, %A_ScriptDir%\Images\Replace.bmp
Gui, Add, Picture, x616 y7 w20 h20, %A_ScriptDir%\Images\FindNext.bmp
Gui, Add, Picture, x636 y7 w20 h20, %A_ScriptDir%\Images\FindPrev.bmp


Code2
Code:
Gui, Add, Picture, x576 y7 w20 h20, %A_ScriptDir%\Images\Find.bmp
Gui, Add, Picture, x596 y7 w20 h20, %A_ScriptDir%\Images\FindReplace.bmp
Gui, Add, Picture, x616 y7 w20 h20, %A_ScriptDir%\Images\FindNext.bmp
Gui, Add, Picture, x636 y7 w20 h20, %A_ScriptDir%\Images\FindPrev.bmp


What I am doing is adding images to a gui mocking a tool bar, these pics will gosub sooner or later to their repective labels. But while gettting there using Code1 (with the image named "Replace.bmp") the Replace, FindNext, and FindPrev images all came up as down arrows. They looked very simular to that of a DDL. And the funny thing is... is that no image even simular is in the Images folder these are all contained in. The problem was fixed when I chaged the file "Replace.bmp" to "FindReplace.bmp" and the code respectivly. Even though I have resolved my conflict, I think there is something greater at work causing this. Please have a look.

_________________
my lame sig :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 22nd, 2005, 12:59 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Quote:
[it was fixed] when I chaged the file "Replace.bmp" to "FindReplace.bmp"
There's nothing in the code that would explain that. I ran the following script and it seems okay:
Code:
Gui, Add, Picture, x576 y7 w20 h20, %A_ScriptDir%\Images\Find.bmp
Gui, Add, Picture, x596 y7 w20 h20, %A_ScriptDir%\Images\Replace.bmp
Gui, Add, Picture, x616 y7 w20 h20, %A_ScriptDir%\Images\FindNext.bmp
Gui, Add, Picture, x636 y7 w20 h20, %A_ScriptDir%\Images\FindPrev.bmp
Gui, Show
return

GuiClose:
ExitApp

Assuming the above works okay on your system, it would help to have some other short test script to reproduce the issue, though I realize your time is limited.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 22nd, 2005, 5:27 am 
Offline

Joined: February 14th, 2005, 10:54 am
Posts: 447
Location: Texas, Usa
Well, I wont take my time to produce a script the reproduces the result, because if it were a serious issue, it would have been noticed long before now. And besides on my first attempt at a workaround the problem was corrected. But I did want to mention it incase something became broke with a new release. If it is a wide spread problem others will report it (or suffer :twisted: ). Thank you for taking a look. Ps chris, this new release is great, WantTab, Critical.... your just about to out do your self! Thanks for your hard work and on-going efforts!

_________________
my lame sig :)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 4 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group