Sign in to follow this  
Followers 0
pageone

Help Results of a function appearing in all TABs

4 posts in this topic

#1 ·  Posted (edited)

I have tried for over a week to get this to work but i am not progressing at all

I am taking screen captures annd displaying the result as a thumbnail on a TAB, The problem i have is the Screencapture apppears on all TABs in the Window not just the one i want it to apppear on.

The screen capture is activated by a Button located under the correct TAB and controls a function

Func PrintScr()
    DllCall("captdll.dll", "int", "CaptureScreen", "str",@ProgramFilesDir & "\Colorsleuth\screens\"& $Time, "int", -1)
    GUICtrlCreatePic(@ProgramFilesDir & "\Colorsleuth Pro\screens\"& $Time, 18,50,175,110)
EndFunc

This however puts the screencapture on all TABS :P

Any help would be great

Edited by pageone

Share this post


Link to post
Share on other sites



I have tried for over a week to get this to work but i am not progressing at all

I am taking screen captures annd displaying the result as a thumbnail on a TAB, The problem i have is the Screencapture apppears on all TABs in the Window not just the one i want it to apppear on.

The screen capture is activated by a Button located under the correct TAB and controls a function

Func PrintScr()
    DllCall("captdll.dll", "int", "CaptureScreen", "str",@ProgramFilesDir & "\Colorsleuth\screens\"& $Time, "int", -1)
    GUICtrlCreatePic(@ProgramFilesDir & "\Colorsleuth Pro\screens\"& $Time, 18,50,175,110)
EndFunc

This however puts the screencapture on all TABS :P

Any help would be great

Try creating using an empty GUICtrlCreatePic when you create the gui and replace the GUICtrlCreatePic with GUICtrlSetImage in the PrintScr function.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Instead of GUICtrlCreatePic() use GUICtrlSetImage()

Note: Of course create your pics at startup for all tabs by GUICtrlCreatePic()

EDIT: gafrost beat me to it :P

Edited by Zedna

Share this post


Link to post
Share on other sites

Thankyou , Thankyou, Thankyou it worked exactly as i wanted it ... Did i forget to say thanks, well thanks..

made my day

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0