mIRC Home    About    Download    Register    News    Help

Print Thread
#62776 03/12/03 10:36 PM
Joined: Nov 2003
Posts: 33
Ameglian cow
OP Offline
Ameglian cow
Joined: Nov 2003
Posts: 33
I would like to make this a double post, suggestion/bug report
ok, the suggestion first :
Images in Dialogs. jpg, bmp, gif, ico, etc.

now for the bug report :
When i add an icon to a dialog (as in inside the dialog) you have to take the dialog and make it touch the edge of the screen before the icon will appear mad


--------------------
I may be insane, but I enjoy it!
#62777 03/12/03 10:46 PM
Joined: Nov 2003
Posts: 228
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Nov 2003
Posts: 228
JPG, PNG, BMP and ICO images can already be added to the dialog with the use of 'icon'

Code:
dialog testDialog {
  title "testDialog"
  option dbu, notheme
  size -1 -1 100 100
  icon 1, 5 5 32 32, $mircexe, noborder
}


Also, the icon appears without a problem, how can the bug you mentioned be reproduced?

#62778 03/12/03 11:53 PM
Joined: Nov 2003
Posts: 33
Ameglian cow
OP Offline
Ameglian cow
Joined: Nov 2003
Posts: 33
ok, yours works fine! crazy

icon 9,0 0 100 60, C:\Program Files\MSN Messenger\msnmsgr.exe, 1, noborder
i just used the msnmsgr.exe file, cause you dont need any icon rips for it :tongue: the index is ABSOLUTELY nessesary

i think it may be the notheme tag you added to option...

nope, just tested that, and it wasn't the problem!
Code:
dialog msn.login {
  title "MSN Messenger Login"
  icon C:\Program Files\MSN Messenger\msnmsgr.exe, 14
  size -1 -1 100 60
  option dbu, notheme

  text "MSN Messenger", 1, 0 0 100 10, center
  text "Login Name :", 2, 0 10 100 6
  text "Password :", 3, 0 26 100 6
  edit "", 4, 0 16 100 10
  edit "", 5, 0 32 100 10, pass
  button "Login", 6, 25 50 25 10, ok flat
  button "Cancel", 7, 50 50 25 10, cancel flat
  check "Remember Me", 8, 0 42 100 7, left flat

  icon 9,0 0 100 60, C:\Program Files\MSN Messenger\msnmsgr.exe, 1, noborder

} 
the above code gives me this problem! crazy
but, the icon for the window is unaffected by the problem! crazy
i am SOO confused!

it happens with any icon thing i try to do, but not with yours... hmm... something fishy here...

Last edited by AdmWiggin; 04/12/03 12:38 AM.

--------------------
I may be insane, but I enjoy it!
#62779 04/12/03 02:58 AM
Joined: Nov 2003
Posts: 228
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Nov 2003
Posts: 228
It could be the long filename, or the spaces to be more specific. Try using a %variable or $identifier to return the location of the .exe file you're using, or simply enclose the entire filename and location in quotation marks (")

icon "C:\Program Files\MSN Messenger\msnmsgr.exe", 14

#62780 04/12/03 01:30 PM
Joined: Nov 2003
Posts: 33
Ameglian cow
OP Offline
Ameglian cow
Joined: Nov 2003
Posts: 33
ok, i know that is not the problem, because the same syntax works in other dialogs i make... (like the exact same line practically, same source etc.) it does this same thing with any ico i try in this dialog crazy


--------------------
I may be insane, but I enjoy it!
#62781 05/12/03 11:47 PM
Joined: Nov 2003
Posts: 33
Ameglian cow
OP Offline
Ameglian cow
Joined: Nov 2003
Posts: 33
ok, i put this source into Dialog Studio, and tried it out, and it did the same thing in preview crazy


--------------------
I may be insane, but I enjoy it!
#62782 06/12/03 08:15 PM
Joined: Nov 2003
Posts: 33
Ameglian cow
OP Offline
Ameglian cow
Joined: Nov 2003
Posts: 33
haha, i feel really n00bish now...

the text was covering up the icon smirk taking the dialog off the screen just caused the icon to come in front of the text! lol
I feel like a HUGE n00b! not noticing a little error like that...


--------------------
I may be insane, but I enjoy it!
#62783 06/12/03 11:12 PM
Joined: Dec 2002
Posts: 3,127
P
Hoopy frood
Offline
Hoopy frood
P
Joined: Dec 2002
Posts: 3,127
*chuckle* we all do stuff like that. thanks for explaining what happened was so we werent left wondering if there was a problem we werent aware of


ParaBrat @#mIRCAide DALnet
#62784 07/12/03 03:26 AM
Joined: Nov 2003
Posts: 33
Ameglian cow
OP Offline
Ameglian cow
Joined: Nov 2003
Posts: 33
ya, np! i hope i never make THAT mistake again! ok, this leads me to a new funtion that would ROCK in mirc...


allowing the user to specify the displaying order of objects on dialogs...
exe: i choose wheather or not I want the text on top of the icon, or vice versa (so just choosing the order laugh)

and maybe even add support for *.gif files in icons wink


--------------------
I may be insane, but I enjoy it!

Link Copied to Clipboard