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 » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » DropGrid
DropGrid [message #10873] Wed, 01 August 2007 23:12 Go to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

DropGrid is a "DropList" based on GridCtrl with some new capabilities:
index.php?t=getfile&id=667&private=0
  • it can have more than one column
  • it is resizeable
  • it can display "row values" as a display value
  • it supports dynamic searching. just start typing when dropgrid has focus. All rows that contain a pattern will be highlighted. F3 moves the cursor to the next matched row.

Of course DropGrid returns one key value, which can be set in SetKeyColumn(int col).
Please open main.cpp in DropGrid package to see how to use it.
I'll make a full documentation a little bit later.
DropGrid can be used for example to show complex database query result without grid/array placed on the dialog layout.
  • Attachment: DropGrid.png
    (Size: 25.31KB, Downloaded 901 times)
Re: DropGrid [message #10874 is a reply to message #10873] Wed, 01 August 2007 23:15 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

Searching:
index.php?t=getfile&id=668&private=0
  • Attachment: DropGrid2.png
    (Size: 27.52KB, Downloaded 867 times)
Re: DropGrid [message #11327 is a reply to message #10874] Wed, 05 September 2007 19:06 Go to previous messageGo to next message
piratalp is currently offline  piratalp
Messages: 26
Registered: September 2007
Location: Argentina
Promising Member
Where is it? Do I have to download development version?
Re: DropGrid [message #11328 is a reply to message #11327] Wed, 05 September 2007 19:28 Go to previous messageGo to next message
piratalp is currently offline  piratalp
Messages: 26
Registered: September 2007
Location: Argentina
Promising Member
piratalp wrote on Wed, 05 September 2007 14:06

Where is it? Do I have to download development version?


Sorry I didn't saw before, it is under "uppsrc", I'll take a look, seems very cool, it only lacks a property to tell it to show ONLY found results, so there is no need for F3...
Re: DropGrid [message #11329 is a reply to message #10874] Wed, 05 September 2007 19:30 Go to previous messageGo to next message
piratalp is currently offline  piratalp
Messages: 26
Registered: September 2007
Location: Argentina
Promising Member
Well, I can't try it because get these errors when compiling:

------------------------------------------------------------ ----
BLITZ: DropGrid.cpp main.cpp
In file included from C:/upp/out/DropGrid/MINGW.Blitz.Gui.Main\$blitz.cpp:3:
C:\upp\uppsrc\DropGrid\DropGrid.cpp: In member function `virtual void Upp::DropGrid::Paint(Upp::Draw&)':
C:\upp\uppsrc\DropGrid\DropGrid.cpp:224: error: no matching function for call to `Upp::GridDisplay::Paint(Upp:
:Draw&, int, int, int, int, Upp::Value, int, Upp::Color&, Upp::Color&, Upp::Font, bool, int, int)'
C:/upp/uppsrc/GridCtrl/GridDisplay.h:86: note: candidates are: virtual void Upp::GridDisplay::Paint(Upp::Draw&
, int, int, int, int, const Upp::Value&, Upp::dword, Upp::Color&, Upp::Color&, Upp::Font&, bool, int, int)

C:\upp\uppsrc\DropGrid\DropGrid.cpp:227: error: no matching function for call to `Upp::GridDisplay::Paint(Upp:
:Draw&, int, int, int, int, Upp::Value, int, Upp::Color&, Upp::Color&, Upp::Font, bool, int, int)'
C:/upp/uppsrc/GridCtrl/GridDisplay.h:86: note: candidates are: virtual void Upp::GridDisplay::Paint(Upp::Draw&
, int, int, int, int, const Upp::Value&, Upp::dword, Upp::Color&, Upp::Color&, Upp::Font&, bool, int, int)

C:\upp\uppsrc\DropGrid\DropGrid.cpp: In member function `Upp::Value Upp::DropGrid::MakeLongValue(int, bool) co
nst':
C:\upp\uppsrc\DropGrid\DropGrid.cpp:667: error: ambiguous overload for 'operator+=' in 'v += Upp::GridCtrl::Ge
tConvertedColumn(int, Upp::Value&) const((((const Upp::Vector<int>*)((const Upp::DropGrid*)this)) + 156u)-
>Upp::Vector<T>::operator[] [with T = int](i), ((Upp::Value&)(&val)))'
C:/upp/uppsrc/Core/String.h:278: note: candidates are: const Upp::String& Upp::String::operator+=(char)
C:/upp/uppsrc/Core/String.h:279: note: const Upp::String& Upp::String::operator+=(const char*)
<near match>
C:/upp/uppsrc/Core/String.h:280: note: const Upp::String& Upp::String::operator+=(const Upp::S
tring&)
C:\upp\uppsrc\DropGrid\DropGrid.cpp: In member function `virtual Upp::Value Upp::DropGrid::Format(const Upp::V
alue&) const':
C:\upp\uppsrc\DropGrid\DropGrid.cpp:687: error: no matching function for call to `Upp::DropGrid::PopUpGrid::Ge
tConvertedColumn(const int&, Upp::Value) const'
C:/upp/uppsrc/GridCtrl/GridCtrl.h:1282: note: candidates are: Upp::Value Upp::GridCtrl::GetConvertedColumn(int
, Upp::Value&) const
DropGrid: 2 file(s) built in (0:05.92), 2964 msecs / file, duration = 5944 msecs

There were errors. (0:06.27)
------------------------------------------------------------ ----
Re: DropGrid [message #11333 is a reply to message #11329] Wed, 05 September 2007 22:00 Go to previous message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

DropGrid uses GridCtrl so just add it to your main package (next time I'll update upp file to force ide to do it automaticaly). As for hiding not matched rows it's very easy to do. I'll add it.

[Updated on: Wed, 05 September 2007 22:03]

Report message to a moderator

Previous Topic: FileSel types change
Next Topic: mingw - -gstabs
Goto Forum:
  


Current Time: Thu Mar 28 18:02:17 CET 2024

Total time taken to generate the page: 0.01440 seconds