Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
toolbars
#1
why is it if i set style flags for the toolbar the toolbar doesn't follow the owner window if i resize it?
#2
Post code please.
#3
Code:
Copy      Help
;/mov0 318 431 /siz 144 25 /set 1|4|32 /transp "" b
#4
no i mean the code your using the call the toolbar mac ""
#5
!a"- Notepad" "Notepad"
#6
it's just triggered been trying it with all kinds of windows same result
#7
you have to call the toolbar with mac and pass the hwnd of the window you want to own it, to it.
#8
no sir that does exactly the same thing
#9
Function ( Function44 )
Code:
Copy      Help
int hwnd=win("Quick Macros")
mac("toolbar" hwnd)
#10
i understand exactly what u are saying but that doesn't do anything different than using a trigger
#11
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.
#12
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
#13
I see what your talking about now this would fall under PP right ?? ya I know just WHAT YOU'RE TALKING ABOUT. Confusedhock: your going to have to figure that one out on your own man.
#14
if i just move the window yes it follows it but if i resize the window it doesn't follow it
#15
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.
#16
now here is the funny thing.if i out no info and no flags it will move with it when i resize it
#17
it's something having 2 do with the style flags
#18
http://www.quickmacros.com/help/QM_Help/...TIONS.html
#19
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.
#20
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
#21
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.
#22
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
#23
Replace

ret 0.1*_i

to

ret _i-10

Here 10 is toolbar distance from window right edge. Change it to what you need.
#24
ok having some trouble with this 1

how can i integrate that with this code
/mov 3 161 /set 1|4|0x300


Forum Jump:


Users browsing this thread: 1 Guest(s)