Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - 0x00

Pages: [1]
General Discussion / Re: Time for new bug.
« on: 08 November 2016, 05:44:18 »
You are amazing thx for your work)

General Discussion / Re: Time for new bug.
« on: 07 November 2016, 20:20:15 »
1) I'm using 0.8 version and bug still be.
2) My mistake need more coffe and I think wee need something like RadioButtonGroup when we have 5 RadioButtons and check one of them then other are unchecks automaticaly.
P.s. thx for GetCaretPos() )

General Discussion / Time for new bug.
« on: 07 November 2016, 14:43:22 »
Hi again Texus :D
1. If MenuBar parented to Panel (or something else) we need to hold LMB to select something.

Code: [Select]
        tg::Gui gui(window);
        tg::Theme theme("Black.txt");

auto panel = tg::Panel::create();

auto menu = tg::MenuBar::create();
menu->addMenuItem("Item One");
menu->addMenuItem("Item Two");
panel->add(menu); //gui.add(menu) for correct selection

2. RadioButton - can't unckeck after checking.

Code: [Select]

        auto radio = tg::RadioButton::create();
radio->connect("Checked", []() {printf("RadioButton Checked!\n"); });
radio->connect("Unchecked", []() {printf("RadioButton Unchecked!\n"); }); //Wrong! can't handle uncheck event (?)
radio->connect("Clicked", []() {printf("RadioButton Clicked!\n"); }); //Triggered every click. (its fine)

P.S. I'm still programming and if I'll get any other bugs with other elements I'll update that post.

General Discussion / Re: Time for bugs. 6x combo
« on: 19 October 2016, 22:27:15 »
maybe a flag could be added
Sounds good, like enumerator MenuBar::Direction {AUTO = 0, TOP, BOTTOM, LEFT, RIGHT};

Where can it be used?
ofc in game (Homebrew) \ non-game (Blender) editors or something similar

Feature requests / Re: ListBox EditBox TextBox
« on: 19 October 2016, 22:18:45 »
There are no lines in edit box and for setCaretPos and getCaretPos I have the same question as for TextBox.

Ok I understood your logic and it is true. So about (TextBox), editors (macros \ auto insert \ etc.) when I need to auto cut (replace by pattern or something else) some text I'll move text to parser (do something) and return formated text but text caret position is on the first line (char) and I'll need to scroll text to latest edited line.

General Discussion / Re: Time for bugs. 6x combo
« on: 19 October 2016, 12:56:09 »
Thanks for such a detailed bug report btw.

No prob. Thanks for fast reply)

Feature requests / ListBox EditBox TextBox
« on: 19 October 2016, 12:52:13 »
Need custom listbox item like a
tgui::ListBox::Ptr list = std::make_shared<tgui::ListBox>();

void ListBox::addItem<Widget>(std::shared_ptr<Widget> widget); //Or wiget arguments

std::shared_ptr<Widget> ListBox::getItem<Widget>(const size_t id); //Or const char *name

void ListBox::insertItem<Widget>(std::shared_ptr<Widget> widget, const size_t id); //Insert item betwen few other items

That provides editable items like a playlist item simplifies adding new buttons\text\images something else.

Music player
[TrackName]<Play><Stop><Options> //current played track
[TrackName] - <Play><Stop><Options> //hided buttons
[TrackName] - <Play><Stop><Options>
[TrackName] - <Play><Stop><Options>

Server list like a

void EditBox::setCaretPos(const size_t char_pos);
size_t EditBox::getCaretPos() const;

void EditBox::setCaretLine(const size_t line_id); //move caret to line
size_t EditBox::getCaretLine() const;

size_t EditBox::getLinesCount() const; //return total lines (with \n)

Same as EditBox

Usable for editors.
Thx for reading)

General Discussion / Time for bugs. 6x combo
« on: 19 October 2016, 11:50:24 »
Hi Texus and community, we have a problem (houston.. pshhh pshhh).

Win7 x64
Link type: Static\Dynamic
Target platform: x32\x64
SFML 2.4.0 x32 (Static\Dynamic)
TGUI 0.7.1 x32 (Static\Dynamic)

Tests on video:
Win7 x64
Link type: Dynamic
Target platform: x32
SFML 2.4.0 x32 (Static\Dynamic)
TGUI 0.7.1 x32 (Static\Dynamic)

Link on video bug-report.
//sorry for ugly video quality

Link on code.

Error List:
0. Need to press and hold LMB on MenuBar to see subitems menu.
1. If MenuBar parent to HorizontalLayout or VerticalLayout we can't select its subitems.
2. EditBox caret isn't change self size when its parent to Vertical or Horizontal Layout its size binds to EditBox height. (not relative to text)
3. If MenuBar is last element in VerticalLayout (in the bottom on window) the subitems spawns under window area.
4. When MenuBar parenting latest to VerticalLayout its subitem menu spawns under window (ViewPort).
5. If we use EditBox::setText("asdasd\n\nasdasd\n\nasdasd") and try to select something we got hmm... uncorrect behaviour.

And finally I have a question: is it bugs or features or my broken hands?:D //Self-criticism

Pages: [1]