Search found 7 matches

by Rich Dersheimer
Tue Oct 29, 2019 9:34 pm
Forum: Coding Questions
Topic: Advice on selecting an area of the window.
Replies: 3
Views: 1602

Re: Advice on selecting an area of the window.

That sounds very cool, I'd love to see it!

Using your advice as a starting place, I came up with this...


wFlags = #PB_Window_MaximizeGadget | #PB_Window_MinimizeGadget |
#PB_Window_SizeGadget | #PB_Window_ScreenCentered

OpenWindow(0, 0, 0, 1024, 780, "Dragging Selection", wFlags)
CanvasGadget ...
by Rich Dersheimer
Tue Oct 29, 2019 8:45 pm
Forum: Coding Questions
Topic: Advice on selecting an area of the window.
Replies: 3
Views: 1602

Advice on selecting an area of the window.

Hi all. I'm currently working on a "seating chart" program, and I need to be able to select a bunch of seats at a time. What I have so far is:

The seats are drawn on the window, at predetermined locations.

A left click or right click event on the window returns the x and y values for the mouse.

I ...
by Rich Dersheimer
Tue Oct 22, 2019 4:29 pm
Forum: Coding Questions
Topic: Question about auto-complete
Replies: 8
Views: 1669

Re: Question about auto-complete

Thanks guys for the quick response! I will use the TAB key for sure.
by Rich Dersheimer
Tue Oct 22, 2019 4:11 pm
Forum: Coding Questions
Topic: Question about auto-complete
Replies: 8
Views: 1669

Question about auto-complete

I'm new to PureBasic and liking it a lot.

Question: when I'm typing in some code, and the auto-complete suggests one or more commands, how do I get the command I want to actually be used? If I down arrow to the command I want, and hit the ENTER key, I'm expecting the command to complete, but ...
by Rich Dersheimer
Wed Oct 16, 2019 9:16 pm
Forum: Coding Questions
Topic: bug with printer example
Replies: 5
Views: 2309

Re: bug with printer example

Little John wrote: then the compiler does NOT crash here.
The difference is just that the output now does not contain the image "PureBasic.bmp", as expected
(using PB 5.71 LTS x64 on Windows 10 Pro).
Same version of PB, but I'm on an older Windows 7 potato, which might account for the problem?
by Rich Dersheimer
Tue Oct 15, 2019 4:30 pm
Forum: Coding Questions
Topic: bug with printer example
Replies: 5
Views: 2309

bug with printer example

I'm a new user, and I'm using PureBasic to do some printing. This example code works fine:

;
; ------------------------------------------------------------
;
; PureBasic - Printer example file
;
; (c) Fantaisie Software
;
; ------------------------------------------------------------
;

If ...