Discussion of article "Graphical Interfaces X: Text selection in the Multiline Text box (build 13)" - page 9

 
Konstantin:

...

can you think of any other mechanism?

...

I'm not quite sure what exactly is not working.

There is an event identifier (id) and there is an element identifier (lparam), which allows you to differentiate between events. Is this not enough?

 
Anatoli Kazharski:

I don't quite understand what exactly doesn't work.

There is an event identifier (id) and there is an element identifier (lparam), which allows you to differentiate between events. Is this not enough?

))))) yes, I was stupid, I've figured it out now )))
 

This is how I select an item in the combo box

m_cbox_ev.GetListViewPointer().SelectItem(0);

but how do I set this item in the visible part of the combo box?

 
Konstantin:

This is how I select an item in the combo box

m_cbox_ev.GetListViewPointer().SelectItem(0);

but how do I set this item in the visible part of the combo box?


It should automatically update itself. Try calling ChartRedraw() afterwards.
 
Anatoli Kazharski:

It should update automatically. Try calling ChartRedraw() afterwards.
I tried that, but it doesn't change
 
Konstantin:

doesn't change

Try this:

m_cbox_ev.SelectItem(0);
 
Anatoli Kazharski:

Try this:


Yeah, it worked, thanks.
 
I create two forms on the same chart and in the end everything is created crookedly, the title of one form takes the place of the title of the other form, while the forms themselves are positioned relative to each other correctly, the feeling that the library mechanism does not provide for the creation of two forms in one chart
 
Konstantin:
I create two forms on the same chart and in the end everything is created crookedly, the title of one form takes the place of the title of the other form, while the forms themselves are positioned relative to each other correctly, it seems that the library mechanism does not provide for the creation of two forms in one chart

So far, it's just like the example in this article: Graphical Interfaces IV: Multi-Window Mode and Priority System (Chapter 2).

//---

I'll look at other modes, perhaps in a future update.

 
Anatoli Kazharski:

So far, only as shown in the example in this article: Graphical Interfaces IV: Multi-Window Mode and Priority System (Chapter 2)

//---

I'll look at other modes, perhaps in a future update.

probably you don't need to create two main windows on the chart, a dialogue box like in your example is enough )))