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 » ArrayCtrl, HeaderCtrl & GridCtrl » Scroll bars and grid ?
Scroll bars and grid ? [message #19503] Tue, 09 December 2008 13:48 Go to next message
Kajko is currently offline  Kajko
Messages: 14
Registered: December 2008
Location: Ireland, Serbia
Promising Member
Simple dialog:

struct dlgOptionsGroupList : TopWindow
{
GridCtrl m_grid;

dlgOptionsGroupList()
{
Title( "Select Groups user belongs" );
SetRect( 0, 0, HorzLayoutZoom(330), VertLayoutZoom(285) );

Add( m_grid.SizePos() );

m_grid.AddHiddenColumn( "ID" );
m_grid.AddColumn("Inc").Option().Fixed(50);
m_grid.AddColumn("Group name").Fixed(200);
m_grid.AddColumn("Group description").Fixed(400);

m_grid.Add( 1, 1, "Group1", "Descript1" );
m_grid.Add( 2, 1, "Group2", "Descript2" );
m_grid.Add( 3, 1, "Group3", "Descript3" );
m_grid.Add( 4, 1, "Group4", "Descript4" );
m_grid.Add( 5, 1, "Group5", "Descript5" );
m_grid.Add( 6, 1, "Group6", "Descript6" );
m_grid.Add( 7, 1, "Group7", "Descript7" );

}
};


GUI_APP_MAIN
{
dlgOptionsGroupList dlg;
dlg.Run(true);
}

there is no ScrollBars, what am i doing wrong ?

Cheers,
Sasa


b78a07c7fb9b68436af9fd23f4e76cc5
Re: Scroll bars and grid ? [message #19504 is a reply to message #19503] Tue, 09 December 2008 14:10 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

m_grid.Absolute()

Btw. Instead Fixed you can use FixedAuto().
Re: Scroll bars and grid ? [message #19505 is a reply to message #19503] Tue, 09 December 2008 14:17 Go to previous message
Kajko is currently offline  Kajko
Messages: 14
Registered: December 2008
Location: Ireland, Serbia
Promising Member
Thanks, that worked.

Cheers,
Sasa


b78a07c7fb9b68436af9fd23f4e76cc5
Previous Topic: large ArrayCtrl
Next Topic: Problem with ColumnWidths in GridCtrl
Goto Forum:
  


Current Time: Tue May 07 11:33:53 CEST 2024

Total time taken to generate the page: 0.01354 seconds