mIRC Home    About    Download    Register    News    Help

Print Thread
#166871 16/12/06 12:14 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I have allot of dialogs in my script, and i use 1024x768 resolution, but if somone that want to use my script dosent have the same resolution, then the dialogs get f*ed up+, any way to solve this problem? or is the only way that they have the same resolution as me? the dialogs are created with "option dbu".


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #166874 16/12/06 12:44 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Well, you don't have to make them the be 1024x768... they can be 600x480 or something instead and then they will fit on anyone's monitor.

If you absolutely need to use large dialogs, then consider making everything change based on screen size. This will take a lot of work to get every dialog control to move based on the resolution, but it is possible. The best thing to do, however, is to just make smaller dialogs. Use tabs if you need more information in a single dialog box. If you really need to, then use a DLL like DCX or MDX to use smaller font sizes.


Invision Support
#Invision on irc.irchighway.net
Riamus2 #166880 16/12/06 01:17 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
The problem is dialogs i use as lagbar and stuff like that, they end up in wrong place if someone dosent use 1024x768.. smirk


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #166881 16/12/06 01:20 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Like I think I mentioned to you before, when I get home, I can post what I did with my DCC Speed window that allows it to stay in the same place without the need of a docking DLL. It works really well.


Invision Support
#Invision on irc.irchighway.net
Riamus2 #166883 16/12/06 01:28 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
You havent posted that to me wink how ever i was reading about it in a post here smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #166894 16/12/06 04:57 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Ok, here is what I did.

Put this in a timer (I check every second). This makes sure that even if the dialog becomes active somehow, it will take you back to mIRC within a second, so shouldn't be a problem in most cases.
Code:
  if ($dialog(dialogname).active == $true) { showmirc -s }


For moving it based on window sizes/positions...
Code:
  dialog -s dialogname $calc($window(-2).w - 227 + $window(-2).x) $calc($window(-2).y + 23) 110 20



You'll need to adjust the x,y,w,h in there as needed. For me, I wanted it 227 in from the right side of the mIRC window and 23 down from the top and the width and height are 110 and 20.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard