| View previous topic :: View next topic |
| Author |
Message |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Tue May 31, 2011 10:54 pm Post subject: BitBtn question |
|
|
Is there a way to have the label text next to the bitmap on a bitbtn and not under it? _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Wed Jun 01, 2011 5:25 am Post subject: |
|
|
Not tested but, you could try one of these ideas to position the text;
| Code: | LOADLIB user32.dll
%%hwnd = @winexists(~<YourButtonName>)
if @equal(@substr(%%hwnd,1,1),"%")
%%hwnd = @strdel(%%hwnd,1,1)
end
# BS_RIGHT As Int: = $200
# BS_BOTTOM As Int: = $800
# BS_CENTER As Int: = $300
# BS_LEFT As Int: = $100
# Using BS_RIGHT in this example
%X = @lib(user32.dll,Button_SetStyle,INT:,%%hwnd,@binary(DWORD,$200),1)
FREELIB user32.dll |
-or-
| Code: | | %x = @sendmsg(~<YourButtonName>,$F4,$200,1) |
|
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Wed Jun 01, 2011 12:05 pm Post subject: |
|
|
Thank you. I'll give these a try. _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Wed Jun 01, 2011 11:06 pm Post subject: |
|
|
| The above does not work. I'm not even sure if the BITBTN element is even a button. BM messages have no effect at all. |
|
| Back to top |
|
 |
cnodnarb Professional Member


Joined: 11 Sep 2002 Posts: 766 Location: Eastman, GA
|
Posted: Thu Jun 02, 2011 12:32 am Post subject: |
|
|
| I think the Windows XP Manifest overrides some of the functions for transforming buttons, I used to be able to magically convert a button to a group, checkbox etc. but it doesn't work anymore last I checked. |
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Thu Jun 02, 2011 1:42 am Post subject: |
|
|
Actually, all the XP manifest does is initializes Common Controls 6. The API should still work.
I can still manipulate regular buttons. That's why I'm not so sure that the BITBTN is an actual button. It almost acts like a clickable bitmap with a background mask and some sort of mouseover trickery. |
|
| Back to top |
|
 |
|