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 


Combo Box Drop Down Height?

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


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sat Nov 23, 2002 9:43 am    Post subject: Combo Box Drop Down Height? Reply with quote

I've searched the api help file and check around, but can't seem to find any reference to adjusting the drop down height of a combo box. I could swear there was an api for that. Saw the one for setting the drop down width, but I thought for sure there was also one for the height. Anybody have that?


Thanks,
-Garrett
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat Nov 23, 2002 12:56 pm    Post subject: Reply with quote

Hi Garrett,

I don't know if there is an API for it, but you can also make something like this code to simulate a Combo...

Code:

  DIALOG CREATE,New Dialog,-1,0,265,231
  DIALOG SHOW
 
rem           name |top|left|width|height
%%combobox = combo1|10 |10  |180  |100
gosub Combobox

:Evloop
wait event
%%event = @event()
goto %%event

:Combo1dropdownbutton
gosub Comboboxdropdown
goto evloop

:Combo1click
%%event = @substr(%%event,1,@pred(@pos(CLICK,%%event)))DROPDOWNBUTTON
gosub Comboboxdropdown

rem Do something usefull here...

goto evloop

:Close
exit

:Combobox
parse "%%name;%%top;%%left;%%width;%%height",%%combobox
  DIALOG ADD,EDIT,%%name"EDIT",%%top,%%left,@diff(%%width,26),19
  DIALOG ADD,LIST,%%name,@fadd(%%top,20),%%left,%%width,%%height,CLICK
  DIALOG ADD,BUTTON,%%name"DROPDOWN",%%top,@fadd(%%left,156),24,18,\/
  DIALOG hide,%%name
exit

:Comboboxdropdown
if @equal(%%down,1)
  dialog hide,@substr(%%event,1,@pred(@pos(DROPDOWNBUTTON,%%event)))
  %%down = 0
  else
  if @not(@match(@substr(%%event,1,@pred(@pos(DROPDOWNBUTTON,%%event))),@dlgtext(@substr(%%event,1,@pred(@pos(DROPDOWNBUTTON,%%event)))EDIT)))
    list add,@substr(%%event,1,@pred(@pos(DROPDOWNBUTTON,%%event))),@dlgtext(@substr(%%event,1,@pred(@pos(DROPDOWNBUTTON,%%event)))EDIT)
   end
  dialog show,@substr(%%event,1,@pred(@pos(DROPDOWNBUTTON,%%event)))
  %%down = 1
  end
exit

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Nov 23, 2002 8:44 pm    Post subject: Reply with quote

Garrett, I can't even find a message to do that in
the Windows SDK help... Sad

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sat Nov 23, 2002 11:50 pm    Post subject: Reply with quote

Mac wrote:
Garrett, I can't even find a message to do that in
the Windows SDK help... Sad


I must have been thinking of something else then.

Thanks for checking into it for me Mac. Skit, thanks, I'll check out
your suggestion.


-Garrett
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Sun Nov 24, 2002 1:36 am    Post subject: Reply with quote

Check out "MoveWindow" and this page: http://www.mvps.org/vbnet/code/comboapi/comboheight.htm
_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sun Nov 24, 2002 10:25 am    Post subject: Reply with quote

"MoveWindow" is an API function, not a message
that can be used with @sendmsg().

I assumed Garrett was looking for a message,
because he was lookin' in the VDS API help file
(or was he?). Confused

LOL, maybe I shoulda asked... Embarassed

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
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