Solved MTable. I can't achieve drop down list behaviour

Info and discussion on MICSTO's M!Table and M!Image.
emartinenco
Argentina
Posts: 14
Joined: 16 Apr 2019, 20:32
Location: Ushuaia, Argentina

MTable. I can't achieve drop down list behaviour

Post by emartinenco » 26 Jan 2023, 20:06

Hi.
In MITAble.app (wich shows MiTable behaviour) there is a Drop Down List column that show the folow results
26-01-2023 16-28-09.png
The drop down list is expanded and the long entry becomes visible.
I Can't achieve the same in my app.

I can't found which configuration is needed.

The table is subclased and the drop down list column is definded as it's defined in MITable.app

I tried with a diferent flags but without success.
The last one

Code: Select all

Call SalTblDefineDropDownListColumn( col3, COL_DropDownList_VScroll | COL_DropDownList_Auto , 100 )
Call MTblSetColumnFlags( col3,  COL_DropDownList_VScroll | COL_DropDownList_Sorted | COL_DropDownList_Editable, TRUE ) 
Call MTblSetDropDownListContext( col3, TBL_Error )
Call SalListAdd( col3, 'aaaaaa' )
Call SalListAdd( col3, 'bbbbbbbbbb' )
Call SalListAdd( col3, 'bbbbbbbb uuuuuuuuuuuuuu kkkkkkkkkk' )
Call SalListAdd( col3, 'cc' )
Call SalListAdd( col3, 'xxx' )
Call SalListAdd( col3, 'zzzzzzz' )
My result:
26-01-2023 16-50-30.png
The column list box is truncated!!!!
Any hints?

Thanks in advance.
Enrique
You do not have the required permissions to view the files attached to this post.

User avatar
Steve Leighton
Site Admin
Site Admin
New Zealand
Posts: 419
Joined: 05 Mar 2017, 20:57
Location: Stroud, England <--> Tauranga, New Zealand

Re: MTable. I can't achieve drop down list behaviour

Post by Steve Leighton » 29 Jan 2023, 06:52

.
Its a Table flag:

Code: Select all

Call MTblSetFlags( hWndForm,  MTBL_FLAG_ADAPT_LIST_WIDTH  ,TRUE )
Greetings from New Zealand
Steve Leighton

Bankside Systems Ltd.
UK ♦ Australia ♦ New Zealand

www.banksidesystems.co.uk

Image

Return to “M!Table & M!Image”

Who is online

Users browsing this forum: No registered users and 0 guests