Hi Guys,
Do you know if is possible to do a combobox with the lenght of area (2)(see image) bigger than area (1) ?

Do you know if is possible to do a combobox with the lenght of area (2)(see image) bigger than area (1) ?


Wider?
Yes !
#include "fivewin.ch"
function Main()
local oWnd, oCbx
local aItems := { "One", "Two", "Three" }
local nItem := 1
DEFINE WINDOW oWnd
@ 60, 20 COMBOBOX oCbx VAR nItem ITEMS aItems SIZE 100,400 PIXEL OF oWnd
oCbx:SendMsg( 0x160, 250, 0 )
@ 60,300 BUTTON "OK" SIZE 60,30 PIXEL OF oWnd
ACTIVATE WINDOW oWnd CENTERED
return nil
Mr Rao,
Thank you ![]()

Do you mean height?
While creating, you can use clause HEIGHTGET nHeight.
Do you want to change at runtime? May I know why?
SendMessage( oCbx:hWnd, 0x0153, -1, nNewHeight )I found, sendmessage(..) must be on the ON INIT clausula from the dialog.
byte-one wrote:I found, sendmessage(..) must be on the ON INIT clausula from the dialog.
Works fine!
Thank you MR Rao!
Shuming Wang
