-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I suggest to add few more convenience functions, #7
base: master
Are you sure you want to change the base?
Conversation
…ndow; increase version
Hi, the idea is good, but I'd like to see a more orthogonal set of functions instead of just a single RestoreWindow call. A Get/Set WindowPlacement xs API, and RestoreWindow/MinimizeWindow/MaximizeWindow written in perl or xs, if needed. |
ok, glad to see you approve the idea. |
Yes, like those two. I see though numerous problem with referencing a bare scalar as a WindowPlacement structure. I'd propose to send individual elements (either as a hash or list) to a Set function, and return the similar structure from Get function. If a structure will be a list, then it will be just a list of integers representing flags,showCmd,ptMinPosition.x,ptMinPosition.y etc - easier for the sake of louse syntax. A much better syntax would be a structure cooked up like this:
nicer but more work needed |
those were "raw" low-level functions (Get/Set WindowPlacement ), which then would be used by higher-level functions (RestoreWindow/MinimizeWindow/MaximizeWindow) ok, I suggest to rename Get/Set WindowPlacement to _Get/_Set WindowPlacement and provide Get/Set WindowPlacement on top of that, as you've suggested, |
...now should be better :) |
Yes, almost there! I have some issues more:
|
1, 2,I haven't introduced "WPF_SETMINPOSITION" yet, so not worried about that yet; 3, same with test - would happily add that too |
I think it would be enough to die "panic" unless 4 == length pack L => 0 somewhere either in the sub code or in tests |
agree, |
…which happen to be useful for my scripts,
these are - IsIconic, IsZoomed, OpenIcon, also 'RestoreWindow', which makes window 'restored'
thank you :)