Search found 5968 matches

by IdeasVacuum
Mon Sep 27, 2021 11:48 am
Forum: Coding Questions
Topic: Dynamically define highlight colour
Replies: 13
Views: 991

Re: Dynamically define highlight colour

Phew! Overwhelming response Guys! Thank you for this. "we can adjust the text color" - ideally I do not want to do that. In the program, the User selects the Text Colour and the Background colour. From that, I expected to be able to apply the ideal highlight programmatically, but it's not ...
by IdeasVacuum
Mon Sep 27, 2021 11:31 am
Forum: Coding Questions
Topic: Dynamically define highlight colour
Replies: 13
Views: 991

Re: Dynamically define highlight colour

Hi Rashad, good to know you are still here 8)

Using random is not ideal because of the lack of control - some of the random colours just "wash out" the text.
by IdeasVacuum
Sun Sep 26, 2021 4:26 pm
Forum: Coding Questions
Topic: Dynamically define highlight colour
Replies: 13
Views: 991

Re: Dynamically define highlight colour

Hi Guys, I think ChrisR has absolutely nailed it with the fade colour idea :mrgreen:

Thanks for your help both.
by IdeasVacuum
Sun Sep 26, 2021 11:57 am
Forum: Coding Questions
Topic: Dynamically define highlight colour
Replies: 13
Views: 991

Re: Dynamically define highlight colour

Nice work BarryG but it's not what I'm looking for 8) . Actually my mention of a ListView Gadget is one of many gadgets that can have highlighting on mouse hover/mouse over. So, when the mouse is over, the list row or StringGadget background colour is changed to the highlight colour and back to it's...
by IdeasVacuum
Sun Sep 26, 2021 10:10 am
Forum: Coding Questions
Topic: Dynamically define highlight colour
Replies: 13
Views: 991

Dynamically define highlight colour

By default, my program has a near black background and white text. Gadgets (e.g. ListIcon row) are highlighted on hover by changing the background colour to a blue-gray. That's all fine and dandy, but if I give the User the tools to set background and text colour, it would be good if the highlight c...
by IdeasVacuum
Wed Jun 09, 2021 7:51 pm
Forum: Announcement
Topic: Forums update
Replies: 124
Views: 32487

Re: Forums update

Hi Fred

If not deleted, can it be found? There are several pages of code snippets, one of the most useful parts of the original forum.
by IdeasVacuum
Wed Jun 09, 2021 12:50 pm
Forum: Announcement
Topic: Forums update
Replies: 124
Views: 32487

Re: Forums update

If I remember correctly it was a sticky topic in the Game programming section of the forum. You do remember correctly 8) It was started by DK Peter who also contributed a lot of very useful code. It was born out of this discussion: https://www.purebasic.fr/english/viewtopic.php?f=16&t=45682 Thi...
by IdeasVacuum
Tue Jun 08, 2021 6:08 pm
Forum: Announcement
Topic: Forums update
Replies: 124
Views: 32487

Re: Forums update

What happened to the Games Math section? We had tons of useful information there........
by IdeasVacuum
Tue Jun 08, 2021 6:01 pm
Forum: Coding Questions
Topic: FreeGadget issue
Replies: 8
Views: 851

Re: RemoveGadget issue

Hi eck49

.... It would be easier and faster to use a ListIcon wouldn't it?

1) Have you tried deleting the Container?
2) Try using a Canvas as a Container.
by IdeasVacuum
Wed May 19, 2021 11:08 am
Forum: Coding Questions
Topic: calculate center of arc
Replies: 5
Views: 786

Re: calculate center of arc

.... We had a lot of trigonometry examples in the Games Math section - but that seems to have disappeared when the new forum was introduced?
by IdeasVacuum
Mon May 17, 2021 6:18 pm
Forum: Coding Questions
Topic: [solved] image with alpha channel has white background
Replies: 4
Views: 643

Re: image with alpha channel has white background

Well, even though you have an Alpha Channel, that does not mean the Channel is set to be transparent. In a paint program, you typically have to select a colour that will be transparent (or translucent), so may be the Alpha Channel is being saved as opaque?
by IdeasVacuum
Fri May 14, 2021 8:59 am
Forum: Coding Questions
Topic: Roy Lichtenstein filter...
Replies: 6
Views: 1219

Re: Roy Lichtenstein filter...

Hello Icesoft

It's a clever app, but the results could be better I think. A lot of work to convert from Python to PB too, especial since the process consists of half toning, edge detection and quantizing - and it's dependant on the Python PIL image format.
by IdeasVacuum
Fri May 14, 2021 8:52 am
Forum: Coding Questions
Topic: Roy Lichtenstein filter...
Replies: 6
Views: 1219

Re: Roy Lichtenstein filter...

Hello Michael Search the forum for a 2D OpenGL (or possibly OGRE) solution to finding edges automatically. https://www.purebasic.fr/english/viewtopic.php?p=313643 If an image has a plain background it is a much easier task, make a grid of lines (vectors, not drawn, just programmatic) from image bord...
by IdeasVacuum
Tue May 11, 2021 9:26 pm
Forum: Windows
Topic: How to draw a line dynamically?
Replies: 7
Views: 3619

Re: How to draw a line dynamically?

Just thought I would mention that if the background is not a plain colour or is an image, you can replace: VectorSourceColor($ffffffff) FillVectorOutput() by re-drawing the background with: StartDrawing(CanvasOutput(#Canvas)) DrawImage(ImageID(#Image),0,0) StopDrawing()
by IdeasVacuum
Sun May 09, 2021 12:49 pm
Forum: Windows
Topic: How to draw a line dynamically?
Replies: 7
Views: 3619

Re: How to draw a line dynamically?

Hi Tenaja

That's correct, and many thanks for your description.