mIRC Homepage
Posted By: ShinZon dialog question - 04/08/04 01:53 AM
1. -o set dialog ontop of all windows
does this mean that even if i change my view to some channel window or any other, dialog will ALWAYS be visible and not in background ?

2. how to make dialog ALWAYS appera for example in right up corner ?

where to edit this koordinates ?
Posted By: alkahol1k Re: dialog question - 04/08/04 03:18 AM
for #2 left-click the icon in the upper left corner that is underneath the mirc icon goto ---> Position and then -----> Save All

note: be sure to have the window in the position you want it in before you do this and it should work
Posted By: ShinZon Re: dialog question - 04/08/04 03:21 AM
so if user changes resolution dialog wont be on same place ?
Posted By: Seifer Re: dialog question - 04/08/04 03:23 AM
1.) Yes, -o will set a desktop dialog so that it is always on top of all other open windows, this means any application not only mIRC windows.

2.) in the dialog table, the first two params for size determine where the dialog is opened.
size 0 0 100 100 ; will open a 100x100 dialog 0 pixels from the top-left corner of your desktop.
size 10 30 100 100 ; will open a dialog 10 pixels in from the left and 30 pixels from the top of your desktop.
Posted By: alkahol1k Re: dialog question - 04/08/04 03:24 AM
it should still be in the same place if you mean the windows resolution
Posted By: Seifer Re: dialog question - 04/08/04 03:25 AM
Dialogs aren't included when saving the position, that only works on windows (status, channel, @win, etc.).
Posted By: ShinZon Re: dialog question - 04/08/04 03:25 AM
and this WILL be always on same place under any resolution ?
Posted By: Seifer Re: dialog question - 04/08/04 03:30 AM
Yes, as long as the X and Y position are within the resolution. For example, you can't open a dialog 1000 pixels from the left on an 800x600 resolution seeing as how it's only 800 pixels wide.

Note: you can use $window(-1).w and $window(-1).h to return the users resolution. This may help in calculating the desired position.
Posted By: ShinZon Re: dialog question - 04/08/04 03:33 AM
can you pls explain more detailed this calculating and applying position with result ?
Posted By: Seifer Re: dialog question - 04/08/04 03:44 AM
Code:
dialog test {
  title "Test Dialog"
  size [color:blue]$calc($window(-1).w - 100)[/color] 0 [color:red]100[/color] 100
}


The blue test is calculating the X position by subtracting the width of the dialog from the width of the resolution ($window(-1).w). The dialog should appear in the top right corner.

Code:
dialog test2 {
  title "Test Dialog (2)"
  size $calc($window(-1).w - 100) [color:green]$calc($window(-1).h - 100)[/color] 100 [color:orange]100[/color]
}


This dialog will open in the bottom right corner. The green text is used in this case to subtract the height of the dialog from the height of the resolution ($window(-1).h).
Posted By: ShinZon Re: dialog question - 04/08/04 03:50 AM
thank you so much !
Posted By: Seifer Re: dialog question - 04/08/04 03:50 AM
You're welcome.
© mIRC Discussion Forums