mIRC Home    About    Download    Register    News    Help

Print Thread
#128957 31/08/05 05:53 PM
Joined: Jun 2005
Posts: 44
B
BNX Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Jun 2005
Posts: 44
Well, does drawpic work in dialogs? I badly need to get a picture in a dialog with a transparent background.

Here's a sample:

alias window1 {
dialog -ma window1 window1
}

dialog window1 {
title "Window 1"
size -1 -1 100 100
option dbu

button "Show",1, 5 5 40 10
}

on 1:dialog:window1:sclick:1: {
drawpic -t @window1 ($rgb(255,0,255)) -5 -5 "pic.bmp"
}


* drawpic: invalid window (line 14, script1.mrc)

I know a dialog doesn't qualify as a window, but is there another way? Is there even a dll somewhere that can help with this? smirk

Last edited by BNX; 31/08/05 05:55 PM.
#128958 31/08/05 06:17 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Well, there is a DLL called x-GUI which allows you to add buttons/edit/list controls on a window and in a window you can defintely use /drawpic anyway.. smile

-Andy

#128959 31/08/05 06:20 PM
Joined: Jun 2005
Posts: 44
B
BNX Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Jun 2005
Posts: 44
I'm not using a window... im using a dialog smirk

I need a transparent background on an image, it doesn't have to be with drawpic.

Last edited by BNX; 31/08/05 06:22 PM.
#128960 01/09/05 05:59 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
you want to look at the ICON in dialogs
you may have to color the background in mspaint manually to get the grey, also note that mspaint will use the upper left corner color as a transparent background.
sample
Code:
alias icon dialog -m icon icon
dialog icon {
  title "Icon Test"
  size -1 -1 100 50
  option dbu
  icon c:\windows\notepad.exe, index
  icon 100, 0 0 48 48,"c:\windows\blue lace 16.bmp", noborder
  icon 101, 50 0 48 48,"c:\windows\blue lace 16.bmp", noborder
}
on *:dialog:icon:sclick:101: { run mspaint "c:\windows\blue lace 16.bmp" }


Link Copied to Clipboard