forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


BitBtn question

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Tue May 31, 2011 10:54 pm    Post subject: BitBtn question Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Wed Jun 01, 2011 5:25 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Wed Jun 01, 2011 12:05 pm    Post subject: Reply with quote

Thank you. I'll give these a try.
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Wed Jun 01, 2011 11:06 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
cnodnarb
Professional Member
Professional Member


Joined: 11 Sep 2002
Posts: 766
Location: Eastman, GA

PostPosted: Thu Jun 02, 2011 12:32 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Thu Jun 02, 2011 1:42 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group