Announcement
Collapse
No announcement yet.
object border? why?
Collapse
X
-
Very useful function there feller A+ but then this is you we are talking about, I sure you must dream code lolOriginally posted by reteset View Postin addition; you can remove that border without using a mask image
here is a function to remove border , it creates a 1 pixel smaller region and applies to target window
Usage :Code:function RemoveBorder(hWnd,nWidth,nHeight) local va_args = string.format("%d,%d,%d,%d",1,1,nWidth-1,nHeight-1); local hRgn = DLL.CallFunction("Gdi32.dll", "CreateRectRgn", va_args, 0, 1); local va_args = string.format("%d,%d,%d",hWnd,hRgn,1); DLL.CallFunction("User32.dll", "SetWindowRgn", va_args, 0, 1); DLL.CallFunction("Gdi32.dll", "DeleteObject",hRgn, 0, 1); end
Note : if you resize an object that you applied this function then you must call this function again to set region to new sizeCode:local tProps = Input.GetProperties("Input1"); RemoveBorder(tProps.WindowHandle,tProps.Width,tProps.Height); local tProps = Progress.GetProperties("Progress1"); RemoveBorder(tProps.WindowHandle,tProps.Width,tProps.Height);
Leave a comment:
-
thank you! will it run in all Windows?Originally posted by reteset View Postin addition; you can remove that border without using a mask image
here is a function to remove border , it creates a 1 pixel smaller region and applies to target window
Usage :Code:function RemoveBorder(hWnd,nWidth,nHeight) local va_args = string.format("%d,%d,%d,%d",1,1,nWidth-1,nHeight-1); local hRgn = DLL.CallFunction("Gdi32.dll", "CreateRectRgn", va_args, 0, 1); local va_args = string.format("%d,%d,%d",hWnd,hRgn,1); DLL.CallFunction("User32.dll", "SetWindowRgn", va_args, 0, 1); DLL.CallFunction("Gdi32.dll", "DeleteObject",hRgn, 0, 1); end
Note : if you resize an object that you applied this function then you must call this function again to set region to new sizeCode:local tProps = Input.GetProperties("Input1"); RemoveBorder(tProps.WindowHandle,tProps.Width,tProps.Height); local tProps = Progress.GetProperties("Progress1"); RemoveBorder(tProps.WindowHandle,tProps.Width,tProps.Height);
Leave a comment:
-
in addition; you can remove that border without using a mask image
here is a function to remove border , it creates a 1 pixel smaller region and applies to target window
Usage :Code:function RemoveBorder(hWnd,nWidth,nHeight) local va_args = string.format("%d,%d,%d,%d",1,1,nWidth-1,nHeight-1); local hRgn = DLL.CallFunction("Gdi32.dll", "CreateRectRgn", va_args, 0, 1); local va_args = string.format("%d,%d,%d",hWnd,hRgn,1); DLL.CallFunction("User32.dll", "SetWindowRgn", va_args, 0, 1); DLL.CallFunction("Gdi32.dll", "DeleteObject",hRgn, 0, 1); end
Note : if you resize an object that you applied this function then you must call this function again to set region to new sizeCode:local tProps = Input.GetProperties("Input1"); RemoveBorder(tProps.WindowHandle,tProps.Width,tProps.Height); local tProps = Progress.GetProperties("Progress1"); RemoveBorder(tProps.WindowHandle,tProps.Width,tProps.Height);
Leave a comment:
-
questioner is talking about the border around sunken edges that can not be customized by property box
do not be lazy. and look at the attached screenshot , it is pretty easy to see difference
for a regular AMS user , the only available option is masking specified object , as Ulrich suggested
Leave a comment:
-
Thank you very muchOriginally posted by Ulrich View PostAs the capture I posted apparently wasn't clear enough, let me spell it out: The first object in each series shows the default look, and the second object is masked. "Masked" means that a mask was applied on the window containing the object, suppressing parts of it using a black and white bitmap. Samples of the Window.SetMask() action can be found in countless posts here in the forum.
Ulrich
Leave a comment:
-
As the capture I posted apparently wasn't clear enough, let me spell it out: The first object in each series shows the default look, and the second object is masked. "Masked" means that a mask was applied on the window containing the object, suppressing parts of it using a black and white bitmap. Samples of the Window.SetMask() action can be found in countless posts here in the forum.
Ulrich
Leave a comment:
-
Could you tell me where are the "options of the property box of objects" that I did not look into?Originally posted by Cybergraph View PostMaybe you didn't understood that the comments about laziness were not referred to you but to the other user who does not look into the options of the property box of objects?
IMO, no kindness for so stupid questions where neither is necessary to read the user manual or understand anything, only give a look in a combo box.
If you found laziness in a topic, please don't reply to that topic.
Leave a comment:
-
LMAO! Too funnyOriginally posted by Drag View PostNo dear Cyber, I understood well the comments.
My reply was only to specify that there are many type of users,
completely lazy, pretty lazy, normally lazy...
Obviously I agree with you and your opinion.
Finally believe me, in the past in this Forum there was less severity.
Leave a comment:
-
I can't find any property that allows using "sunken" style without border.Originally posted by Cybergraph View PostMaybe you didn't understood that the comments about laziness were not referred to you but to the other user who does not look into the options of the property box of objects?
IMO, no kindness for so stupid questions where neither is necessary to read the user manual or understand anything, only give a look in a combo box.
Leave a comment:
-
Originally posted by Cybergraph View PostBorders are a nuisance in the same way lazy people are.Thank you, but I don't know how to do, could you attach a sample project?Originally posted by Ulrich View PostWhile I agree that these sunken borders can be a nuisance, it is easy enough to get rid of them when you need:
[ATTACH=CONFIG]11924[/ATTACH]
Ulrich
Leave a comment:
-
No dear Cyber, I understood well the comments.
My reply was only to specify that there are many type of users,
completely lazy, pretty lazy, normally lazy...
Obviously I agree with you and your opinion.
Finally believe me, in the past in this Forum there was less severity.
Leave a comment:
-
Maybe you didn't understood that the comments about laziness were not referred to you but to the other user who does not look into the options of the property box of objects?
IMO, no kindness for so stupid questions where neither is necessary to read the user manual or understand anything, only give a look in a combo box.
Leave a comment:
-
Lazy people are not all the same.
For example I am healing from my laziness
but I think lately on this Forum you are too severe.
I say this because I've noted more kindness by reading old posts since 2006 to 2010.
Anyway I think your hardness can help people like me to do better.
Leave a comment:
-
i respectfully disagree, Borders are easily fixed, lazy people are notBorders are a nuisance in the same way lazy people are.
Leave a comment:
Leave a comment: