Search found 21 matches

by lee__48
Fri Aug 20, 2010 11:28 pm
Forum: Coding Questions
Topic: Screen Flips to Desktop
Replies: 0
Views: 425

Screen Flips to Desktop

I haven't used PureBasic for a while and I've been updating some old scripts to work with V4.5.

The code below is a stripped down version of the basics of a screen saver I was writing. In it's current form it should just show a black screen. My monitor's native resolution is 1920x1080; when I run ...
by lee__48
Thu Feb 01, 2007 11:32 pm
Forum: Coding Questions
Topic: Random Sorting Issues - Probably an easy fix!!
Replies: 12
Views: 2298

Thanks srod, Derek and Kaeru Gaman for your replies. I still couldn't justify using the "classic approach", although it was pretty fast!

I liked srod's idea, taking values from a string, but I've implemented Derek's code. I've not noticed the Swap command before, but it seems it offers a much ...
by lee__48
Thu Feb 01, 2007 12:07 am
Forum: Coding Questions
Topic: Random Sorting Issues - Probably an easy fix!!
Replies: 12
Views: 2298

Random Sorting Issues - Probably an easy fix!!

Hi All!

I'm trying to write some code, but I'm stuck for an efficient solution. I have up to 9 buttons, and I want to pass a number between 1 and 9 to a procedure to make x number of buttons light up, but I want this change to affect a random selection of those 9 buttons.
e.g.
For 2 buttons to ...
by lee__48
Sun May 21, 2006 11:54 am
Forum: Coding Questions
Topic: Waiting for Network Server Events
Replies: 5
Views: 1572

Who'd have thought a 2ms delay would make it all better!!

@Tranquil: I assume you mean WSAAsyncSelect_() as WSAsyncSelect didn't come up with anything in Google! Do you have a small example? MSDN references are very confusing.

Lee
by lee__48
Sun May 21, 2006 2:35 am
Forum: Coding Questions
Topic: Waiting for Network Server Events
Replies: 5
Views: 1572

Waiting for Network Server Events

Hi all. I'm writing a server type program. It all works okay, but the program makes the CPU usage go up to 100% and everything else runs slowly. I assume it has something to do with the NetworkServerEvent() on the loop, is there a way around this?

The code is below if it helps!
Lee



IncludeFile ...
by lee__48
Sat May 20, 2006 12:43 am
Forum: Coding Questions
Topic: Scroll bars and ListIcon's
Replies: 6
Views: 2237

Is there any way to get the UP and DOWN buttons taller? I think I'll have to have two big standard image buttons instead of a scroll bar.

Lee
by lee__48
Sat May 20, 2006 12:39 am
Forum: General Discussion
Topic: PureBasic logos
Replies: 22
Views: 5811

Lyon wrote:My favorite:

Image
I like this one too. Are these images freely distributable and in the public domain?

Lee
by lee__48
Fri May 19, 2006 12:42 am
Forum: General Discussion
Topic: PureBasic logos
Replies: 22
Views: 5811

Umm. Not sure that's gonna fit with my applications really. :roll: Thanks for your suggestion though :P
by lee__48
Thu May 18, 2006 10:26 pm
Forum: General Discussion
Topic: PureBasic logos
Replies: 22
Views: 5811

PureBasic logos

Are there any PureBasic logos available that I could add to my programs or website?

Lee
by lee__48
Thu May 18, 2006 10:14 pm
Forum: Coding Questions
Topic: Scroll bars and ListIcon's
Replies: 6
Views: 2237

Thanks again srod, you seem to be answering all my questions recently! The code works a treat - thanks :)

I spent ages searching the internet for sample code to adjust the size of a scroll bar. Couldn't find anything I could understand and adapt. I'll have to make a custom one or think of another ...
by lee__48
Thu May 18, 2006 8:55 pm
Forum: Tricks 'n' Tips
Topic: show or hide taskbar
Replies: 3
Views: 1792

Hi, nice code.
Does this only work for Win XP or will it also work on Win 98 etc?
Regards.

I tested the following on Windows 2000 and 98. Works fine!

SetWindowPos_(FindWindow_("Shell_traywnd", ""), 0, 0, 0, 0, 0, #SWP_HIDEWINDOW)
Delay(1200)
SetWindowPos_(FindWindow_("Shell_traywnd", ""), 0, 0 ...
by lee__48
Wed May 17, 2006 10:25 pm
Forum: Windows
Topic: ListIconGadget() column headers detection
Replies: 9
Views: 3142

I asked a similar question on the Coding Questions board earlier today.

http://www.purebasic.fr/english/viewtopic.php?t=21864

Lee
by lee__48
Wed May 17, 2006 1:39 pm
Forum: Coding Questions
Topic: Scroll bars and ListIcon's
Replies: 6
Views: 2237

Scroll bars and ListIcon's

Hi all,

Is it possible to make your window's scroll bars a larger (or smaller) without adjusting the display settings. I am trying to write a program with a touch screen interface so could do with larger buttons to push!

Also, is it possible to initiate an event by pressing the column headers on a ...
by lee__48
Sun May 14, 2006 10:50 pm
Forum: Coding Questions
Topic: LoadImage()
Replies: 8
Views: 2160

I didn't think of testing it as an executable. I just assumed the code was executed in the same way, whatever. Thanks.

Thanks again srod for a quick reply. Do you just need to filter the EventType for ImageButtons?

Regards,
Lee
by lee__48
Sun May 14, 2006 10:31 pm
Forum: Coding Questions
Topic: LoadImage()
Replies: 8
Views: 2160

See if this helps, it's a little thing I mocked up to get you going in the right direction. You just change my d:\wordconnect\ for your own folder with .jpgs in it:

@netmaestro, you're sample works fine, but if i manually change the filename so that the file doesn't exist the program still ...