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 


[resolved] Tip on combo element or wider dropdown?

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
jwfv
Valued Contributor
Valued Contributor


Joined: 19 Mar 2002
Posts: 422
Location: Beaufort, SC

PostPosted: Wed Jun 30, 2004 5:01 pm    Post subject: [resolved] Tip on combo element or wider dropdown? Reply with quote

I have a combo element on a dialog that I would like to be able to show more characters on.

That is,

I don't want to rearrange the dialog as it has a lot of stuff on it.

I want the dropdown part of the combo to show longer items than I originally designed it for. (Like about 50 characters instead of about 30.)

Is there a way to either:

1.) Make the dropdown part wider? In an earlier thread, I tried to figure a way to add a horizontal scroll bar.

2.) Add a "tooltip" that shows the full selected row like in the tablecontrol DSU.

Any help is appreciated.

_________________
Joe Floyd
Back to top
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1564

PostPosted: Thu Jul 01, 2004 5:20 am    Post subject: Reply with quote

Hello Joe,
You can use the windows API to set the dropped width of a combobox to be wider than the control itself:

Code:

%%width = 400
%A = @sendmsg(@win(~COMBO1),352,%%width,0)


The %%width variable is the width in pixels that the dropped down portion of the combo box should be. Here I set it to 400 pixels wide.

You will also need to change COMBO1 to the name of the combobox control. Make sure to INCLUDE the ~ character as it tells vds to use the internal controls windows handle.
Back to top
View user's profile Send private message
jwfv
Valued Contributor
Valued Contributor


Joined: 19 Mar 2002
Posts: 422
Location: Beaufort, SC

PostPosted: Thu Jul 01, 2004 2:10 pm    Post subject: Reply with quote

Perfect!

Thanks a lot - that really helps me. This is a great board - great little language, too.

_________________
Joe Floyd
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    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