Main Menu
Menu

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.

Show posts Menu

Topics - Myster

#1
Help requests / Text offset in Tabs
30 September 2015, 21:14:23
Hello again)

In the last version of TGUI v0.7-alpha2 in my app strange problem appeared:
text on the tabs displaying above the tabs (see the screenshot: texts "View" and "Export" now between buttons and checkbox)

In prev. TGUI versions all was good.
Where my mistake? may be I overlooked something from new docs about tabs? :-\

My code:
Code (cpp) Select
winEditConfigTabs = theme->load("tab");
winEditConfigTabs->setTextSize(text_size);
winEditConfigTabs->setPosition(8, 60);
winEditConfigTabs->add(txt_tab_view);
winEditConfigTabs->add(txt_tab_export,false);
winEditConfigTabs->connect("TabSelected", [&](){ ConfigWinUpdate(); } );
winEditConfig->add(winEditConfigTabs);
#2
Hello. Sorry if I overlooked a similar theme. And sorry for my english.
I was very annoyed with control in the TextBox (0.7-dev). Is it possible to make the control of it more universal (compulsory) as in many other soft? To be exact:

Minimal universal hotkeys when editing text in the TextBox:

  • Pressed Shift - keeps the end of the selection, if the caret moves to the left, or keeps the beginning of the selection, if the caret moves to the right
  • Pressed Control - makes it possible to move the caret to the first symbol of next word (or space or any given delimiter)
  • Double-click - selects the nearest word to the caret (from space to space or any given delimiter)
  • Home - puts the caret to the first position of the current line
  • End - puts the caret to the last position of the current line
  • Ctrl+Home - puts the caret to the text beginning
  • Ctrl+End - puts the caret to the text ending
  • PageUp - puts the cursor to the first position of the visible text
  • PageDown - puts the cursor to the last position of the visible text

I think this is the most basic. More I do not remember :)

And is it possible in the future (or already have)?

  • "furl" the last character in the line to 0-1px-size if it is space character?  (to ensure that a space did not appear in the first position of the next line)
  • And is it bug may be? When caret stays in the last position of the current line, and when I press Right Cursor key, the caret moves to the first position of the same CURRENT line, but NOT of the NEXT line (as it needs).

Or I did something wrong? Or did not do %)

PS: TGUI - it is the single most easy (unambiguously for me, about like a newbie) and flexible library, thank you for it. I am lost without it. It really gives a scope for ideas and without unnecessary frills.