Search found 118 matches

by rrpl
Tue Sep 01, 2015 7:43 am
Forum: Feature Requests and Wishlists
Topic: Ability to specify labels on the print requester
Replies: 0
Views: 928

Ability to specify labels on the print requester

Would like something like PrintRequester(Title.s,ButtonCaption.s). Having "Print" for both the Requester Title and ButtonCaption indicates to the user that it will be used to print straight away , whereas, I would like to use the requester so the user can select a different printer from my own print ...
by rrpl
Mon May 11, 2015 5:09 am
Forum: Off Topic
Topic: What happens when PureBasic sales stop?
Replies: 4
Views: 2866

Re: What happens when PureBasic sales stop?

The world is changing fast but it still takes a long time to get there! I'm still using Windows XP on most of my computers with no complaints.
And those that are too old now to use it functionally (internet and stuff) are still running fine on versions of Linux. I don't like the current direction ...
by rrpl
Wed Jul 09, 2014 1:13 am
Forum: Coding Questions
Topic: pointers in relation to Addresses of variables
Replies: 8
Views: 1747

Re: pointers in relation to Addresses of variables

Thanks for the answers @idle, @luis and @boristheold.
I'm not very good at understanding pointers, so thanks for the info.
Seems like I should still with the "@" just to be on the safe side :)
by rrpl
Sun Jul 06, 2014 5:16 am
Forum: Coding Questions
Topic: pointers in relation to Addresses of variables
Replies: 8
Views: 1747

pointers in relation to Addresses of variables

From the PB help file under pointers in relation to Addresses of variables it says;

"To find the address of a variable in your code, you use the at symbol (@). A common reason for using this is when you want to pass a structured type variable to a procedure. You must pass a pointer to this variable ...
by rrpl
Sun Apr 21, 2013 12:24 am
Forum: Coding Questions
Topic: Gadget setup question
Replies: 2
Views: 634

Re: Gadget setup question

On mine it displays the window with text gadgets for 5 seconds then ends as expected [Purebasic version 5.11 on WindowsXP(SP3)].
by rrpl
Mon Apr 15, 2013 10:49 am
Forum: Coding Questions
Topic: ButtonImageGadget disappears
Replies: 20
Views: 2372

Re: ButtonImageGadget disappears

You could make the rest of the toolbar out of gadgets also, but only if it suits your purpose.


EnableExplicit

Enumeration
#myWindow
EndEnumeration

Enumeration
#myContainer
#myButton0
#myButton1
#myButton2
EndEnumeration

Define Quit.i, Event.i

OpenWindow(#myWindow, 0, 0, 600, 400, "", #PB ...
by rrpl
Sun Apr 14, 2013 11:54 pm
Forum: Coding Questions
Topic: ButtonImageGadget disappears
Replies: 20
Views: 2372

Re: ButtonImageGadget disappears


I know. But how can I place the button to the far right
and keep it there when resizing the window?


EnableExplicit
Global Window_0,Container_0,ButtonImage_0, ButtonImage_1

Procedure OpenWindow_0()
Window_0 = OpenWindow(#PB_Any, 0, 0, 600, 400, "", #PB_Window_SystemMenu|#PB_Window_SizeGadget ...
by rrpl
Sun Apr 14, 2013 11:58 am
Forum: Coding Questions
Topic: PopupMenu and StatuBar
Replies: 6
Views: 1069

Re: PopupMenu and StatuBar

Yeah it does, but can't tell you where you when wrong without the other code.
Quickly made some up just to test, see below (note: right mouse click on help);


EnableExplicit ; Optional - Recommended
Global Window_0,Event

Procedure Menu() ; create menu
If CreatePopupMenu(1) ; creation of the pop ...
by rrpl
Sun Apr 14, 2013 10:47 am
Forum: Coding Questions
Topic: PopupMenu and StatuBar
Replies: 6
Views: 1069

Re: PopupMenu and StatuBar

Yes you can trigger a popup menu from a status bar.
Have a look at the windows callback used in the purebasic code archive V4: - a file called "statusbar_events.pb" or the file "menuhelp_in_statusbar.pb". The basic principles in these examples will work once updated and adapted to your needs.
If you ...
by rrpl
Tue Oct 09, 2012 10:38 am
Forum: General Discussion
Topic: What could one do every day to get him motivated to code ?
Replies: 34
Views: 7502

Re: What could one do every day to get him motivated to code

First I might start by saying I don't program for a living, which is why I'm not often on this forum.
However, I think motivation is a common thread in most industries. In my industry we create motivation by setting a sense of urgency. We first do this by planning what needs to be done. We then ...
by rrpl
Wed Aug 08, 2012 11:40 am
Forum: Coding Questions
Topic: Which command is the window version of the MouseButton() ?
Replies: 7
Views: 1358

Re: Which command is the window version of the MouseButton()

The question is.... What do you want exactly ??
Yeah what he said!

An example of what I said;


Procedure.s MouseLoc() ; a procedure to get mouse location in window
Protected.s LocText
x = WindowMouseX(0)
y = WindowMouseY(0)
LocText = "Mouse Located at X="+Str(x)+" Y="+Str(y ...
by rrpl
Wed Aug 08, 2012 3:34 am
Forum: Coding Questions
Topic: Which command is the window version of the MouseButton() ?
Replies: 7
Views: 1358

Re: Which command is the window version of the MouseButton()

Do you mean for monitoring the mouse button in an window event loop?

Case #WM_LBUTTONDOWN :MessageRequester("Test Left Click","")
Case #WM_RBUTTONDOWN :MessageRequester("Test Right Click","")
Case #WM_MBUTTONDOWN :MessageRequester("Test Middle Click","")
by rrpl
Fri Apr 27, 2012 7:01 am
Forum: Coding Questions
Topic: How to develop a video audio player ?
Replies: 10
Views: 5764

Re: How to develop a video audio player ?


I'm developing a simple application to download some videos and / or audio files from the web.


I can confirm same result as you, the *.mp4 's don't load for some reason. Yet I have the correct codec loaded for DirectShow (on Windows). Other programs using Directshow load mp4's OK, but PB for ...
by rrpl
Sat Apr 14, 2012 10:15 pm
Forum: General Discussion
Topic: We move to c++ :(
Replies: 39
Views: 13047

Re: We move to c++ :(


I don't write games so I don't pay too much attention to posts about the gaming libraries but when I do read them it doesn't seem like anyone is ever happy with their implementation, so why bother? Maybe it's time to deprecate those libraries. Personally I think Fred's time would be better spent ...
by rrpl
Tue Jan 10, 2012 3:38 am
Forum: Coding Questions
Topic: ProgressBarGadget color, Max display, & color
Replies: 8
Views: 2027

Re: ProgressBarGadget color, Max display, & color

You can also use HideGadget() once full progress is reached, if you intend to re-use the progress bar again.