AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tab, ListView, +BackgroundTrans - Let's find a solution!

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
philou



Joined: 26 Jul 2006
Posts: 49
Location: Wuppertal

PostPosted: Wed Oct 31, 2007 4:18 pm    Post subject: Tab, ListView, +BackgroundTrans - Let's find a solution! Reply with quote

I've been trying to create a rather sophisticated GUI, where I need to use Tabs and ListViews
and would really like to be able to use +BackgroundTrans on my various controls.

The current situation just looks ugly, to be honest.

This is a call to the Windows API tinkerers, to the COM wizards and DllCall masters - help me and everyone concerned about cosmetics to get the look right.
Wink

We could:

  • Try to find a way to use transparent backgrounds for controls with the existing Tab control
  • Try to find a way to use a non AHK Tab control via DllCall, provided this would help with BackgroundTrans
Back to top
View user's profile Send private message
philou



Joined: 26 Jul 2006
Posts: 49
Location: Wuppertal

PostPosted: Tue Nov 06, 2007 2:10 pm    Post subject: Reply with quote

Whoohoo. First and only bump, since no one seems to care about GUI.
Back to top
View user's profile Send private message
Mkbailey755



Joined: 20 Aug 2007
Posts: 178

PostPosted: Tue Nov 06, 2007 3:54 pm    Post subject: Reply with quote

http://www.autohotkey.com/download/smartgui.zip
Back to top
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 2739
Location: Australia, Qld

PostPosted: Wed Nov 07, 2007 4:39 am    Post subject: Reply with quote

For something similar to +BackgroundTrans on controls that don't support it, you'd have to subclass the control and manually render what should be behind it. For some controls, you'd have to take complete control over rendering. In short, it can be very difficult.

Also, different versions of Windows have different "quirks." For instance, on Windows XP, the first column of a ListView control always renders a plain-coloured background, covering up (part of) whatever background you rendered.

The ListView's built-in support for backgrounds is also a little inconsistent. Tiled backgrounds, for instance: on some versions of WIndows, they scroll when you scroll the ListView; on other versions, they are static.

I started to write a function for custom ListView backgrounds a while back, but dropped it because of the aforementioned problem with XP. (I use Vista, but XP seems more common.)

This post may be of interest to you. (Set tiled background image from file or URL.)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group