Discussion of article "Graphical Interfaces V: The Combobox Control (Chapter 3)" - page 2

 
Evgeniy Scherbina:

Copied everything into mql4 folder, TestLibrary Expert Advisor is grey and does not open. It says "cannot open file" in Expert Advisors.

Does it work in test mode? Is there any sense to investigate why it does not start, as it is very important that it works in the test mode.

In visualisation mode it displays graphics, but there is no interactivity.
 
Artyom Trishkin:
In visualisation mode it displays graphics, but there is no interactivity.
For me, this is the main thing. I made a drop-down list that responds to clicks in test mode. But in the test mode there is no highlighting when hovering the mouse over an item. In real trade everything is fine. It turns out that only ON_MOUSE_MOVE event does not work in test mode.
 
Anatoli Kazharski:

The library version for MT4 is no longer supported by me.

what is the latest version of the Library that works in MT4 ?

----------

how to change the number of points, the number of displayed points and their values AFTER creation? e.g. there were 3 (displaying 3), now there are 4 (displaying 4).

   if(id==CHARTEVENT_CUSTOM+...){ 

         m_combobox_sm.ItemsTotal(4);

         m_combobox_sm.VisibleItemsTotal(4);

         string items_text[4]={"FALSE","item 1.0","item 2.0","item 3.0"};

         for(int i=0; i<4; i++){m_combobox_sm.ValueToList(i,items_text[i]);}

   }

 
Pavel Kolchin:

what is the latest version of the Library that works in MT4 ?

The latest version for MT4 is in this article: GUIs X: Updates for Easy And Fast Library (build 3).

how to change the number of points, the number of displayed points and their values AFTER creation? e.g. 3 (display 3), 4 (display 4).

This feature is available in the latest version of the library and only for MT5: GUIs X: Advanced List and Table Management. Code Optimisation (build 7)

 
Anatoli Kazharski:

What do you think, if we consider version 10.3 - is it possible to delete in the event handler and create combobox with new parameters in the same place?

 
Pavel Kolchin:

do you think, if we consider version 10.3 - is it possible to delete a combobox with new parameters in the event handler and create it in the same place?

No. Not even in the latest MT5 version. It is only in the plans for now.
 
Pavel Kolchin:

what is the latest version of the Library working in MT4 ?

----------

...
All of them (versions) work in MT4 with minor adjustments.
 

Good afternoon.

//--- Total number of items in the list
#define  ITEMS_TOTAL1 8

Can you tell me if this is used somewhere else besides this function?

I mean, if I put it at the end.

#undef ITEMS_TOTAL1

it won't affect anything?

 

When creating a dropdown list like this:

bool CProgram::CreateComboBox(CComboBox &combobox,const int x_gap,const int y_gap)

If you put a declared variable in the first argument, like this:

      if(!CreateComboBox(m_currency_box_1,25,25))
         return(false);

Everything seems to be fine.

But as soon as the first argument is an array element, the whole interface stops responding to the interaction or hangs when the dropdown list is clicked.

      if(!CreateComboBox(m_currency_box[0],25,25))
         return(false);
 
Alexander Fedosov:

When you create a drop-down list like this:

If you put a declared variable in the first argument, for example like this:

Everything seems to be fine.

But as soon as the first argument is an array element, the whole interface stops responding to the interaction or hangs when clicking on the dropdown list.

Hmmm... It doesn't crash, but fonts are in some trouble if it's an array. I'll have to poke around in freedom )