Discussion of article "Graphical Interfaces X: Sorting, rebuilding the table and controls in the cells (build 11)" - page 6

 
Anatoli Kazharski:
I don't have time for this yet.
can you give me buy and sell button blanks? I'll order them for someone and upload them to your library.
 
Konstantin:
Can you give me buy and sell button blanks? I'll order them for someone and upload them to your library.

What do you want to get? At least show me a screen or something...

Do you know how to make screens?

 
Artyom Trishkin:

What do you want to get? At least show me a screenshot.

Do you know how to make screens?

Yes, I described it clearly - I need blanks of buy and sell buttons from this library to make combined pairs of buttons buy_sell and sell_buy, there is no sense to show screenshots ))

why I need blanks - I don't know how to work with alpha channel, and these buttons apparently have it in them

 
Konstantin:
can you give me the blanks for buy and sell buttons? I'll order them for someone and upload them to your library.
All images presented in the articles are available in archives for download (at the end of each article).
 
ImageFu button maker
ImageFu button maker
  • votes: 4479
  • contact@imagefu.com
  • www.imagefu.com
A web button generator with full control over the button style and content. Easy & free!
 
Konstantin:

I've described it clearly - I need blanks of buy and sell buttons from this library to make combined pairs of buy_sell and sell_buy buttons, there's no sense in screenshots ))

Why do you need blanks - I don't know how to work with alpha channel, and these buttons apparently have it

But it's not clear to me - what buttons (I have Buy and Sell buttons, for example, a mountain and a small cart) - Anatoly has all sorts of icons - what buttons should be combined there - it's not clear.

Well..., if you don't want to, you don't need to - I have things to do too.

 

Why does the InitializingTable:

//+------------------------------------------------------------------+
//| Initialising the table|
//+------------------------------------------------------------------+
void CMainPanel::InitializingTable(void)
  {
//--- Array of header names
   string text_headers[COLUMNS1_TOTAL]={"Symbol","Bid","Ask","!","Time"};
//--- Array of characters
   string text_str = "MFON SBER SBERP GAZP TATN LKOH ROSN NVTK SNGS SNGSP VTBR MOEX AFKS IRAO "
                     "AFLT FEES ALRS MAGN NLMK CHMF GMKN HYDR TATNP YNDX RTKM MGNT MTSS";
   string text_array[];
   int _size = CreateArray(text_str, text_array); 
//--- Array of pictures
   string image_array[3]=
     {
      "::Images\\EasyAndFastGUI\\Icons\\bmp16\\circle_gray.bmp",
      "::Images\\EasyAndFastGUI\\Icons\\bmp16\\arrow_up.bmp",
      "::Images\\EasyAndFastGUI\\Icons\\bmp16\\arrow_down.bmp"
     };
//---
   for(int c=0; c<COLUMNS1_TOTAL; c++)
     {
      //--- Set the header names
      m_canvas_table.SetHeaderText(c,text_headers[c]);
      //---
      for(int r=0; r<ROWS1_TOTAL; r++)
        {
         //--- Set the pictures
         m_canvas_table.SetImages(c,r,image_array);
         //--- Set character names
         if(c<1)
            m_canvas_table.SetValue(c,r,text_array[r]);
         //--- Default value for all cells
         else
            m_canvas_table.SetValue(c,r,"-");
        }
     }
  }

method inserts images into each cell of the table, if they are needed only in the first column?

 
Konstantin:

Why does the InitializingTable:

method inserts images into each cell of the table, if they are needed only in the first column?

So you wrote your own method and you are asking why it needs something you wrote yourself? )

Fix it according to your needs.

 
Anatoli Kazharski:

So you wrote your own method and are asking why something you wrote yourself is needed there? )

Fix it according to your needs.


The method is yours, I just changed the tickers to fit the tests, as I work in the stock section
 
Konstantin:

the method is yours, I just changed the tickers to fit the tests, as I work in the stock section
I must have inserted the wrong example in the article. In any case, correct it for your tasks as you need.