Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » minimalist example with GridCtrl
Re: minimalist example with GridCtrl [message #6469 is a reply to message #6468] Mon, 13 November 2006 19:26 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

forlano wrote on Mon, 13 November 2006 12:56


What I am missing?
Luigi


You didn't read my answer carefully Wink GridCtrl is very similar to ArrayCtrl. You must bind a column with an edit control.

Your code should like this:

...
    gc.Inserting();
    gc.Appending();
    gc.Moving();
    gc.Removing();
    gc.Navigating();
    gc.Searching();
    gc.Editing();

    EditString name, fed, rtg, title;

    gc.AddColumn("name",19).Edit(name);
    gc.AddColumn("fed",4).Edit(fed);
    gc.AddColumn("rtg",4).Edit(rtg);
    gc.AddColumn("title",4).Edit(title);
    for (i=0; i<4; i++) gc.Add("0","0","0","0");

Of course all edits should be declared in your dialog class scope (not like in the coode above in constructor).
Hope that will help you Smile

[Updated on: Mon, 13 November 2006 19:27]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Close() callback not conditioned in a dialog
Next Topic: Horizontal and Vertical inverted in UPP?
Goto Forum:
  


Current Time: Fri Jun 27 22:01:04 CEST 2025

Total time taken to generate the page: 0.05355 seconds