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 » bad align of an optionbutton in gridctrl
bad align of an optionbutton in gridctrl [message #16309] Sat, 07 June 2008 12:17 Go to next message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
Hello,

in a column of a gridctrl I've an option button set by

	arr.AddColumn("Status", t_("Sel."), 4).Ctrls(Avail3);   


where

void Avail3(One<Ctrl>& ctrl)
{
	ctrl.Create<Option>();	
}


Everythings work but when I scroll the vertical bar the option button shift to the left (see picture).

Is it normal? Perhaps I am using the ctrl in the wrong way.
(2008.1beta2 + mingw)

Thanks,
Luigi

index.php?t=getfile&id=1230&private=0
  • Attachment: pic2.jpg
    (Size: 45.00KB, Downloaded 446 times)

[Updated on: Sat, 07 June 2008 12:20]

Report message to a moderator

Re: bad align of an optionbutton in gridctrl [message #16310 is a reply to message #16309] Sat, 07 June 2008 13:38 Go to previous message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

add CtrlAlignHorzCenter() after Ctrls(). You can also use shortcut for creating option column:
grid.AddColumn(CHECK, "Yes/No").Option();
Previous Topic: ArrayCtrl: How can I refresh just one cell that changed?
Next Topic: How to create a GridCtrl with fixed cell size
Goto Forum:
  


Current Time: Mon Apr 29 09:53:22 CEST 2024

Total time taken to generate the page: 0.02549 seconds