| View previous topic :: View next topic |
| Author |
Message |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sat Nov 23, 2002 9:43 am Post subject: Combo Box Drop Down Height? |
|
|
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 |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Nov 23, 2002 12:56 pm Post subject: |
|
|
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 |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat Nov 23, 2002 8:44 pm Post subject: |
|
|
Garrett, I can't even find a message to do that in
the Windows SDK help...
Cheers, Mac  _________________ 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 |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sat Nov 23, 2002 11:50 pm Post subject: |
|
|
| Mac wrote: | Garrett, I can't even find a message to do that in
the Windows SDK help...  |
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 |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sun Nov 24, 2002 10:25 am Post subject: |
|
|
"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?).
LOL, maybe I shoulda asked...
Cheers, Mac  _________________ 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 |
|
 |
|
|
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
|
|