Search found 12 matches

by paleozord
Sat Oct 21, 2006 8:47 pm
Forum: Coding Questions
Topic: Why doesn't SetGadgetState work properly with ImageGadget?
Replies: 11
Views: 2468

Okay, I re-installed PB4 completely and now it does in fact seem to work fine. I'm not sure why this was happening, but I think the compiler was still referencing some of my older 3.9x files in the old directory, as evidenced by the fact that the initially posted code produced an old-time error on ...
by paleozord
Sat Oct 21, 2006 6:36 pm
Forum: Coding Questions
Topic: Why doesn't SetGadgetState work properly with ImageGadget?
Replies: 11
Views: 2468

hm.. try the beta gadget lib aswell, because its a gadget after all. if that doesnt work i really dont know why it doesnt work for you properly.

have you installed pb4 into a new empty folder or over an existing older pb version?


Tried the newest gadget lib but no luck there either. I installed ...
by paleozord
Sat Oct 21, 2006 6:16 pm
Forum: Coding Questions
Topic: Why doesn't SetGadgetState work properly with ImageGadget?
Replies: 11
Views: 2468

download the latest beta image lib from http://www.purebasic.com/beta/ install it and restart the compiler.


I downloaded the newest image lib, copied-and-pasted it over my old version in PureLibraries, restarted the compiler but no difference. Large black square still isn't cleared with second ...
by paleozord
Sat Oct 21, 2006 6:01 pm
Forum: Coding Questions
Topic: Why doesn't SetGadgetState work properly with ImageGadget?
Replies: 11
Views: 2468

@paleozord
are you using SmartWindowRefresh()? it has some problems with images/icons http://www.purebasic.fr/english/viewtopic.php?t=24195 i hope this will be fixed soon.

Hi.. no I haven't deliberately enabled SmartWindowRefresh, just running PB the default way with no such special command. But ...
by paleozord
Sat Oct 21, 2006 5:48 pm
Forum: Coding Questions
Topic: Why doesn't SetGadgetState work properly with ImageGadget?
Replies: 11
Views: 2468

Hi, thanks for your reply and help with the example. However, when I run that code in PB (after fixing the minor error in the OpenWindow statement that prevented it from running) I can confirm that clicking the button the second time does NOT remove/clear the "large black square" image from the ...
by paleozord
Sat Oct 21, 2006 6:28 am
Forum: Coding Questions
Topic: Why doesn't SetGadgetState work properly with ImageGadget?
Replies: 11
Views: 2468

Why doesn't SetGadgetState work properly with ImageGadget?

In the manual it states:

- SetGadgetState(): Change the current Image of the gadget. A valid ImageID can be easily obtained with the UseImage() or ImageID() commands. If the ImageID is 0, then the image is removed from the gadget.


But if I have an image currently displayed in a ImageGadget ...
by paleozord
Fri Mar 17, 2006 10:43 pm
Forum: Tricks 'n' Tips
Topic: Detecting right-clicks on ButtonGadgets
Replies: 20
Views: 15155

Why was the AvbancedGadgetEvents feature removed? Now you have to use a Windows-specific API call to detect a right click, which will not work under Linux.

Before you could just enable Advanced and use #PB_EventType_RightClick which would work for both Windows and Linux. Seems like a step backwards ...
by paleozord
Thu Mar 16, 2006 6:17 am
Forum: Coding Questions
Topic: PureBasic: Sequential or Object-Oriented?
Replies: 10
Views: 2153

I really appreciate all the replies, they have been quite helpful. I actually find it an intriguing idea to have a full GUI application that's in fact programmed in a top-down sequentially executed style. I used QBasic for years before taking up VB, so I'm familiar with and enjoy the line-by-line ...
by paleozord
Wed Mar 15, 2006 11:57 pm
Forum: Coding Questions
Topic: PureBasic: Sequential or Object-Oriented?
Replies: 10
Views: 2153

Thank you for your reply. I'm glad to see that I wasn't so way off in my interpretation of things, and your example is helpful. Basically you're using Select Case where I said nested IF..ENDIF blocks, but more or less the same thing. I will try to familiarize myself with it some more..

How about ...
by paleozord
Wed Mar 15, 2006 10:41 pm
Forum: Coding Questions
Topic: PureBasic: Sequential or Object-Oriented?
Replies: 10
Views: 2153

PureBasic: Sequential or Object-Oriented?

I'm completely new to PureBasic, and I'm just trying to figure out exactly how it works. It seems to me from my brief beginner's foray into it, that unlike Visual Basic where the visual interface drives the program and bits of code are only executed when some sort of object-oriented event occurs ...
by paleozord
Wed Mar 15, 2006 10:14 pm
Forum: Coding Questions
Topic: #PB_Window_Maximize (dont want hide taskbar) !?
Replies: 16
Views: 2626

Ah okay ya, I'm using the demo, that's why. I want to be able to maximize the window WITHOUT using any API calls, so that it wil work the same under all OS's, not just Windows.

#PB_Window_Maximize will function this way, whereas the other options will not, is that right?
by paleozord
Wed Mar 15, 2006 8:40 pm
Forum: Coding Questions
Topic: #PB_Window_Maximize (dont want hide taskbar) !?
Replies: 16
Views: 2626

When I try to run that code posted above:

Code: Select all

OpenWindow(0, 0, 0, 400, 300, #PB_Window_MaximizeGadget | #PB_Window_Maximize, "")
I get the error "Constant not found: #PB_Window_Maximize"

PB doesn't even recognize that that flag exists. What am I doing wrong?