AutoHotkey Community

It is currently May 26th, 2012, 1:58 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: January 9th, 2009, 10:14 pm 
Offline

Joined: January 9th, 2009, 9:30 pm
Posts: 6
Is it possible to edit a picture control. I would like to add a caption or draw lines on a picture control. I'd like to do it without saving it back to the harddrive. All the GDI+ examples I've found draw directly to the Gui Window or load the images from disk and save them back.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 9th, 2009, 10:31 pm 
Offline

Joined: May 28th, 2008, 2:11 am
Posts: 739
Location: Minnesota, USA
You could try just positioning a text control on top of the picture with the BackgroundTrans option in effect.
Code:
Gui, Add, Text, +BackgroundTrans, Text Here

_________________
Unless otherwise stated, all code is untested

(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 9th, 2009, 10:36 pm 
Offline

Joined: January 9th, 2009, 9:30 pm
Posts: 6
I thought of that, but the control needs to be moved and redrawn often, which is a performance concern. I'd like to directly modify the picture once and not have to worry about moving multiple controls.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 9th, 2009, 11:19 pm 
Offline

Joined: July 26th, 2006, 8:50 pm
Posts: 68
Location: Wuppertal
http://www.autohotkey.net/~tic/Gdip.Tut ... rd.gui.ahk

Text, a rounded Rectangle in a picture control, without saving back to disk - all there :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 9th, 2009, 11:51 pm 
Offline

Joined: January 9th, 2009, 9:30 pm
Posts: 6
philou wrote:
http://www.autohotkey.net/~tic/Gdip.Tutorial.9-Create.a.progress.bar.on.standard.gui.ahk

Text, a rounded Rectangle in a picture control, without saving back to disk - all there :)


How the hell did I miss that?! I read through all the tuts and somehow missed it. Thanks for taking the time to point it out to me.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Exabot [Bot], patgenn123, Pietro, poserpro and 8 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group