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++ Core » [BUG] Ctrl::AlignRight
Re: [BUG] Ctrl::AlignRight [message #14606 is a reply to message #14604] Tue, 04 March 2008 15:10 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
Fix:

Change CtrlLib/CtrlLib.usc starting line 422 from:
	Frame SetFrame = InsetFrame();
	Font  SetFont = StdFont();
	bool  SetEditable = true @1 ? "Editable";
	bool  WantFocus = true;
	int   MaxChars;
	bool  AlignRight;
	Text  Tip;
to:
	bool  AlignRight @1;
	int   MaxChars @2;
	Font  SetFont = StdFont() @3;
	bool  SetEditable = true @4 ? "Editable";
	Frame SetFrame = InsetFrame() @5;
	Text  Tip @6;
	bool  WantFocus = true @7;

After that you will have to get the Layout manager to refresh the .lay file. Changing from text/layout should work, but setting then clearing WantFocus for each ctrl will definitely work.

The number after the @ char determines the order that the calls get added to the .lay file. If missing the order they are listed determines the order, but this sometimes seems to go wrong, and most of the Upp ctrls don't have the ordering explicitly stated.

James

[Updated on: Tue, 04 March 2008 15:17]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Date Scan Problem
Next Topic: ChatClient with Ultimate++
Goto Forum:
  


Current Time: Tue Apr 29 16:11:24 CEST 2025

Total time taken to generate the page: 0.00992 seconds