09-14-2007, 01:54 AM
why is it if i set style flags for the toolbar the toolbar doesn't follow the owner window if i resize it?
toolbars
|
09-14-2007, 01:54 AM
why is it if i set style flags for the toolbar the toolbar doesn't follow the owner window if i resize it?
09-14-2007, 02:06 AM
Post code please.
09-14-2007, 02:32 AM
no i mean the code your using the call the toolbar mac ""
09-14-2007, 02:34 AM
!a"- Notepad" "Notepad"
09-14-2007, 02:35 AM
it's just triggered been trying it with all kinds of windows same result
09-14-2007, 02:37 AM
you have to call the toolbar with mac and pass the hwnd of the window you want to own it, to it.
09-14-2007, 02:48 AM
no sir that does exactly the same thing
09-14-2007, 02:51 AM
09-14-2007, 02:54 AM
i understand exactly what u are saying but that doesn't do anything different than using a trigger
09-14-2007, 02:55 AM
you have to call the toolbar from another macro/function you cannot use a trigger on the toolbar it self, if your wanting to hook it to another window.
09-14-2007, 02:59 AM
i have been doing it without calling it from a macro fine and it's following the window just fine only when i set flags on it does it not move with the window and even callin it from a macro it doesn't move if i make the window small
09-14-2007, 03:01 AM
I see what your talking about now this would fall under PP right ?? ya I know just WHAT YOU'RE TALKING ABOUT. hock: your going to have to figure that one out on your own man.
09-14-2007, 03:02 AM
if i just move the window yes it follows it but if i resize the window it doesn't follow it
09-14-2007, 03:06 AM
You will have to write your own hook function something that moves your toolbar depending on the size of your window. You will have to do math and % of owner window.
09-14-2007, 03:11 AM
now here is the funny thing.if i out no info and no flags it will move with it when i resize it
09-14-2007, 03:13 AM
it's something having 2 do with the style flags
09-14-2007, 03:31 AM
09-14-2007, 07:41 AM
Because when using these flags the toolbar follows the top-left corner of the window. To make it follow another corner, add one of flags 0x100-0x400. Coordinates (mov) also will be relative to that corner, towards to center.
09-15-2007, 04:26 AM
ok got ya ty can u explain a little better how this code works i am trying 2 keep the toolbar from moving
/mov {GetWinXY val(_command) 0 0 _i; ret 0.1*_i} 0
09-15-2007, 07:17 AM
Gets width of owner window and multiplies by 0.1. The result is used with mov, and the toolbar always starts at 0.1 of owner window width.
09-19-2007, 02:09 PM
Now how can u keep the toolbar in the same position on a window that when u resize it everything on the window resizes.the toolbar itself does move when i resize but it doesn't quite stay in the same position
09-19-2007, 02:19 PM
Replace
ret 0.1*_i to ret _i-10 Here 10 is toolbar distance from window right edge. Change it to what you need.
09-19-2007, 02:44 PM
ok having some trouble with this 1
how can i integrate that with this code /mov 3 161 /set 1|4|0x300 |
« Next Oldest | Next Newest »
|