Re: Using EUGrid in IDE

new topic     » goto parent     » topic index » view thread      » older message » newer message

Jonas Temple wrote:

>Craig,
>
>To add a column to the grid just select a control and drop it into the
>(i.e. a static control).  This will add the necessary EGW_AddColumn to
>the grid.

Got it. That works fine, thanks.

Now, if I do that, I'm not able to format the columns in all of the 
various ways defined by EuGrid, am I? For example, if I attempt to use 
a multi-line edit control, IDE says: "Invalid control for EuGrid". Is 
there a way of creating such a control myself, somewhere in IDE's editor?

One of the key aspects of EuGrid is the separation of the underlying 
data and the data presented in the grid. That's why, when creating a 
grid column, one of the parameters is 'DataColumn'. In my project, for 
example, my data are arranged in 11 columns, but I only need to 
display 5 of them. In IDE, it seems that I must create a grid column 
for each dataset column. I've tried unchecking 'visible' on the 
un-needed columns, but they're still displayed.

As I type this, it occurs to me that I might just set the column width 
to zero for the un-needed columns. I'll try that shortly.

>As far as EuGrid event handling is concerned, all events are sent to the
>_onEvent routine for the grid control.  In the event you'll have to
>disect the parameters to determine what the event was.  Here's an 
>EuGrid event handling routine from one of my programs:
>  
>
Aha! I understand. And thanks for your example, which provides me with 
a good template.

>Make sure you also take a look at the documentation that comes with 
>EuGrid, it will explain this in more detail.
>
Heh, fair suggestion. But prior to posting, I had read every word. I'm 
fairly comfortable with how to use EuGrid's functions and messages. 
The two things I didn't understand were how to establish the functions 
and how to get access to the messages within the IDE environment. 
You've given me two 'Aha' explanations. Neither of which is mentioned 
in the EuGrid documentation.

Thanks,

-- 
Craig

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu