Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » DropGrid
DropGrid [message #10873] |
Wed, 01 August 2007 23:12  |
|
DropGrid is a "DropList" based on GridCtrl with some new capabilities:

- 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 1003 times)
|
|
|
|
|
|
Re: DropGrid [message #11329 is a reply to message #10874] |
Wed, 05 September 2007 19:30   |
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  |
|
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
|
|
|
Goto Forum:
Current Time: Mon Apr 28 21:47:06 CEST 2025
Total time taken to generate the page: 0.00448 seconds
|