Announcement

Collapse
No announcement yet.

object border? why?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Imagine Programming
    replied
    This thread made me giggle.

    Leave a comment:


  • gremlin
    replied
    Originally posted by reteset View Post
    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


    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
    Usage :


    Code:
    local tProps = Input.GetProperties("Input1");
    RemoveBorder(tProps.WindowHandle,tProps.Width,tProps.Height);
    
    local tProps = Progress.GetProperties("Progress1");
    RemoveBorder(tProps.WindowHandle,tProps.Width,tProps.Height);
    Note : if you resize an object that you applied this function then you must call this function again to set region to new size
    Very useful function there feller A+ but then this is you we are talking about, I sure you must dream code lol

    Leave a comment:


  • AnimeCrazyFan
    replied
    Originally posted by reteset View Post
    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


    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
    Usage :


    Code:
    local tProps = Input.GetProperties("Input1");
    RemoveBorder(tProps.WindowHandle,tProps.Width,tProps.Height);
    
    local tProps = Progress.GetProperties("Progress1");
    RemoveBorder(tProps.WindowHandle,tProps.Width,tProps.Height);
    Note : if you resize an object that you applied this function then you must call this function again to set region to new size
    thank you! will it run in all Windows?

    Leave a comment:


  • reteset
    replied
    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


    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
    Usage :


    Code:
    local tProps = Input.GetProperties("Input1");
    RemoveBorder(tProps.WindowHandle,tProps.Width,tProps.Height);
    
    local tProps = Progress.GetProperties("Progress1");
    RemoveBorder(tProps.WindowHandle,tProps.Width,tProps.Height);
    Note : if you resize an object that you applied this function then you must call this function again to set region to new size

    Leave a comment:


  • reteset
    replied
    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:


  • AnimeCrazyFan
    replied
    Originally posted by Ulrich View Post
    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
    Thank you very much

    Leave a comment:


  • Ulrich
    replied
    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:


  • AnimeCrazyFan
    replied
    Originally posted by Cybergraph View Post
    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.
    Could you tell me where are the "options of the property box of objects" that I did not look into?
    If you found laziness in a topic, please don't reply to that topic.

    Leave a comment:


  • Bruce
    replied
    Originally posted by Drag View Post
    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.
    LMAO! Too funny

    Leave a comment:


  • AnimeCrazyFan
    replied
    Originally posted by Cybergraph View Post
    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.
    I can't find any property that allows using "sunken" style without border.

    Leave a comment:


  • AnimeCrazyFan
    replied
    Originally posted by Cybergraph View Post
    Borders are a nuisance in the same way lazy people are.
    Originally posted by Ulrich View Post
    While 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
    Thank you, but I don't know how to do, could you attach a sample project?

    Leave a comment:


  • Drag
    replied
    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:


  • Cybergraph
    replied
    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:


  • Drag
    replied
    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:


  • RizlaUK
    replied
    Borders are a nuisance in the same way lazy people are.
    i respectfully disagree, Borders are easily fixed, lazy people are not

    Leave a comment:

Working...
X