Recent Posts

Pages: 1 2 3 [4] 5 6 ... 10
31
General Discussion / Re: Kitchen Sink
« Last post by billarhos on 14 June 2019, 08:12:50 »
While making SpinButton i found that texturearrowuppressed, texturearrowdownpressed are missing. Is there a reason?

32
Help requests / Increasing scroll sensitivity
« Last post by Maksat on 14 June 2019, 06:25:21 »
Hi! I could not find any way to increase scroll sensitivity of ScrollablePanel. It's very inconvenient to scroll to the end of the content of ScrollablePanel with low contentOffset, when it has wide content height
34
General Discussion / Re: Kitchen Sink
« Last post by texus on 13 June 2019, 18:56:38 »
Now that you mention it, it does sound like that. Maybe I should rename it to setTimeBeforeDisplay or setTimeBeforeShowing?
35
General Discussion / Re: Kitchen Sink
« Last post by billarhos on 13 June 2019, 18:48:23 »
Ha, i thought that "setTimeToDisplay" has to do with how long the tooltip would shown. Sorry.! I stay still for 1000 mscs and it appeared.

I think i am down with the code. i 'll move forward to finish gui.png!
36
General Discussion / Re: Kitchen Sink
« Last post by texus on 13 June 2019, 18:22:21 »
If you added it to the widget with setTooltip then it should show up on the bottom right of your mouse cursor (4 pixels to the right and 8 pixels down in this case) if put the mouse on top of the widget and don't move it for more than a second. You shouldn't have to call pLabelToolTip->setPosition at all, unless you want to add an extra offset to the tooltip which other widgets don't have.

Is there nothing in front of the clickable widget?
37
General Discussion / Re: Kitchen Sink
« Last post by billarhos on 13 June 2019, 18:15:49 »
Quote
Are you calling something like "gui.add(pLabelToolTip)" somewhere by any chance?
YES, i remove it. Now never shows.
Commenting "pLabelToolTip->setPosition()" also didn't help.

Should i give tooltip widget position?
38
General Discussion / Re: Kitchen Sink
« Last post by texus on 13 June 2019, 17:59:28 »
Are you calling something like "gui.add(pLabelToolTip)" somewhere by any chance?
pLabelToolTip->setPosition shouldn't be called like that. The position will be relative to the mouse.
39
General Discussion / Re: Kitchen Sink
« Last post by billarhos on 13 June 2019, 12:00:07 »
Code: [Select]
pClickableWidget = tgui::ClickableWidget::create();
pClickableWidget->setPosition(50, 620);
        pClickableWidget->setSize(250, 100);

  tgui::ToolTip::setTimeToDisplay(sf::milliseconds(1000));
tgui::ToolTip::setDistanceToMouse({ 4, 8 });

pLabelToolTip = tgui::Label::create("ClickableWidget is here!");
pLabelToolTip->setPosition(pClickableWidget->getPosition());
pClickableWidget->setToolTip(pLabelToolTip);


the above code show the tooltip all the time. Missing something?
40
General Discussion / Re: Kitchen Sink
« Last post by billarhos on 12 June 2019, 20:11:45 »
Quote
I've added a TextureBackground property to the label renderer.
Great!

Quote
On the "Labels" tab it also says "Canvas", is that something you are still going to add there or am I missing something?
The bottom line is painted via "tgui::Canvas"; On top i give a clue to user of what i demonstrate in each tab!
I agree with all other stuff you said but when i ll finish the code i ll make the png texture theme, so all will make sense.

I believe tomorrow i will finish the code.
Pages: 1 2 3 [4] 5 6 ... 10