Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28468 ディスカッション

[Solved] Help to add ComboBox item

cean
新規コントリビューター II
1,559件の閲覧回数

Hi,

 

I am following this to try to write a SDI code: Designing a Dialog Box Overview (intel.com)

 

I have put a Combo Box on my Form, how do I add item in it? Is there a simple code sample?

 

Cheers,

 

Cean

0 件の賞賛
1 解決策
andrew_4619
名誉コントリビューター II
1,401件の閲覧回数
The drop down size is not on the property sheet. In the dialog editor you define the size of a control in the GUI. If you click the combo box drop down button in the GUI to expand it you can drag the grips to change the size.

元の投稿で解決策を見る

14 返答(返信)
cean
新規コントリビューター II
1,549件の閲覧回数

Sorry, found it. Don't know how to delete my post.

Using List Boxes and Combo Boxes (intel.com)

cean
新規コントリビューター II
1,489件の閲覧回数

Got an empty list same as this:

combo box - Intel Community

Steve_Lionel
名誉コントリビューター III
1,481件の閲覧回数

You're not giving us much to work with. How about ZIPping your project (after doing a Build > Clean) and attaching the ZIP to a reply here?

cean
新規コントリビューター II
1,447件の閲覧回数

Hi Steve,

 

I use the template to create a SDI program and add one menu item (tDialog) under the File menu. It opens a Dialog. The Dialog has two Combo boxes. I could add the items now, but when click the Arrow, it doesn't show the list correctly, only a narrow area. Hard to scroll up & down.

 

Cheers,

 

Cean

andrew_4619
名誉コントリビューター II
1,433件の閲覧回数

In the dialog editor you need to define the size of the area when the combo drops down. 

cean
新規コントリビューター II
1,416件の閲覧回数

Which properties?

 

Sometimes I got the right display without any change. But other times, it only show that narrow strip.

Steve_Lionel
名誉コントリビューター III
1,430件の閲覧回数

You need a lot more for a combo box. You can start reading here: Using List Boxes and Combo Boxes (intel.com)

cean
新規コントリビューター II
1,413件の閲覧回数

Is there a full code from this tutorial? 

 

 

andrew_4619
名誉コントリビューター II
1,402件の閲覧回数
The drop down size is not on the property sheet. In the dialog editor you define the size of a control in the GUI. If you click the combo box drop down button in the GUI to expand it you can drag the grips to change the size.
cean
新規コントリビューター II
1,372件の閲覧回数
Steve_Lionel
名誉コントリビューター III
1,387件の閲覧回数

Is a combo box really what you want? This combines a list box with a user-entry field.  @andrew_4619 has the right idea on changing the size of the visible box.

cean
新規コントリビューター II
1,370件の閲覧回数

It's better the software's default could display correctly at the first place. That is showing a scroll bar with 2 lines with one up arrow and one down arrow. Or a default area bigger than 2 lines. If total items less than default area, no scroll bar is needed.

 

Then, If the user need to change,  he could  go back to design.

 

 

andrew_4619
名誉コントリビューター II
1,364件の閲覧回数

The resource editor is a Microsoft Product and is not part of Intel Fortran.

cean
新規コントリビューター II
1,307件の閲覧回数
返信