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++ Widgets - General questions or Mixed problems » Autocomplete droplist needed...
Re: Autocomplete droplist needed... [message #16862 is a reply to message #16854] Thu, 17 July 2008 19:15 Go to previous message
cas_ is currently offline  cas_
Messages: 20
Registered: July 2008
Location: Poland
Promising Member
Sure I can!
In fact it took me quite a while to reproduce this behavior on a minimal example ("drop.AddTo( *this )" seems to be the key and it took me some time to figure that out). This is more or less what DropGrid does when it initializes itself:

#include <CtrlLib/CtrlLib.h>

using namespace Upp;

struct App : public TopWindow
{
	MultiButtonFrame drop;

	App()
	{
		SetRect( Size( 200, 25 ) );
		drop.AddTo( *this );
		drop.AddButton().Main();
		drop.SetStyle( MultiButtonFrame::StyleFrame() );
		drop.AddButton().Left().SetLabel( "Button" );
	}
};

GUI_APP_MAIN
{
	App().Run();
}


This results in a following window:

index.php?t=getfile&id=1264&private=0

By the way, I'm not saying that the line of code in ChGtk.cpp which I pointed in my last post, should be commented out; most likely it should stay as it is, I just don't know how Chameleon really works internally. I was just sharing the results of my efforts to resolve the bug and my post was only an example of this "work in progress" situation Smile
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Can't Get DropGrid Working
Next Topic: FileList problems with extensions and pop-ups
Goto Forum:
  


Current Time: Sun May 12 16:08:47 CEST 2024

Total time taken to generate the page: 0.02708 seconds