Search found 33 matches

by led-bloon
Sep 17, 2013 5:30
Forum: Windows
Topic: Creating a control's container
Replies: 16
Views: 6628

Re: Creating a control's container

I take it, that is a "yes"
I didn't know RAD was limited to a simple Form and a single panel. I have fired the coder. I cannot stand waste of LOCs
lethargic led
by led-bloon
Sep 16, 2013 22:02
Forum: Windows
Topic: Creating a control's container
Replies: 16
Views: 6628

Re: Creating a control's container

Have you had a look at FreeQ IDEa and the FreeBASIC source code generated by RapidFRM
Form designer & editor? It creates source code that closely follows RapidQ format.
lazy led
by led-bloon
Aug 11, 2013 22:35
Forum: Windows
Topic: Can't Get messaging to work.
Replies: 8
Views: 2015

Re: Can't Get messaging to work.

Some changes to your code: Add: #DEFINE BTN_ID_1 100 ' Unique number as an ID for your button WndProc: 'How to get control to register ??? and call sub() case WM_COMMAND IF (lParam<>0) THEN IF LOWORD(wParam=BTN_ID_1) THEN ButtonPressed() ' Add any other components here.... END IF WinMain: BUTTON_1 =...
by led-bloon
Jul 20, 2013 11:15
Forum: Community Discussion
Topic: Raspberry PI and Beaglebone Black.
Replies: 105
Views: 53294

Re: FreeBASIC ARM6/7 for the Raspberry PI and Beaglebone Bla

Thanks TJF for reply, I ended up using synaptics gui package manager Added libraries (so far): libgl1-mesa-dev (16 pkgs in total) libglu1-mesa (probably not needed) libglu1-mesa-dev libgui-dev (7 pkgs in total) gl_test.bas now compiles & links but does not run. I also notice that other examples ...
by led-bloon
Jul 20, 2013 5:43
Forum: Community Discussion
Topic: Raspberry PI and Beaglebone Black.
Replies: 105
Views: 53294

Re: FreeBASIC ARM6/7 for the Raspberry PI and Beaglebone Bla

Joshy First off, to you (and not forgetting the devs) - great job! I think this will give a massive boost to FreeBASIC. Unfortunately, less knowledgeable cretins like me, will need help initially. I have the latest Raspian image loaded, and all updated, on a Raspberry Pi Model B. I have installed yo...
by led-bloon
Jul 12, 2013 21:30
Forum: Community Discussion
Topic: Raspberry PI and Beaglebone Black.
Replies: 105
Views: 53294

Re: I got my brand new toys. (ARM Linux new target for fbc)

.
Ooops, sri should READ the posts before replying...
deleting
lurking led
by led-bloon
Jun 25, 2013 21:24
Forum: Community Discussion
Topic: File & program sharing
Replies: 3
Views: 1222

File & program sharing

Using a free Google account, with 2 Gbyte storage facility, I can share files by using an option 'share with anybody with url' which then provides a url to copy and paste publicly. It's a fast & free service. The files are read-only by anyone who has the url, and I have control as to the file's ...
by led-bloon
Jun 12, 2013 2:37
Forum: Libraries & Headers
Topic: Updated PortAudio Library header
Replies: 9
Views: 2781

Re: Updated PortAudio Library header

From my first post on the subject...
If I am correct, I would then be checking your library source code for similar mistakes
rgds

linear led
by led-bloon
Jun 12, 2013 0:44
Forum: Libraries & Headers
Topic: Updated PortAudio Library header
Replies: 9
Views: 2781

Re: Updated PortAudio Library header

Not sure why you introduced these globals: Dim Shared g_data As paTestData Ptr Dim Shared g_out As Single Ptr but.... *(g_out+1).... is still not incrementing the pointer you should either increment the pointer or change line to: *(g_out+i)=..... but correct me if I am wrong... limping led
by led-bloon
Jun 11, 2013 22:38
Forum: Libraries & Headers
Topic: Updated PortAudio Library header
Replies: 9
Views: 2781

Re: Updated PortAudio Library header

I think one problem in your test code is this: *_out += 1 is not incrementing the pointer to the buffer as it should be Try this: '' _out += 1 <---pre-increment -- delete *_out = _data->left_phase /' left '/ _out += 1 <--- increment the pointer to the buffer *_out = _data->right_phase /' right '/ _o...
by led-bloon
Jun 09, 2013 6:13
Forum: Beginners
Topic: How can I create an rtf file?
Replies: 25
Views: 7173

Re: How can I create an rtf file?

Here is some code snippets from a demo program of a RichEdit control in RapidFRM form Designer Editor for RapidQ & FreeBASIC. Hope it helps: This code takes text in a QRichEdit control and randomly changes each word with color, size, font etc. The text initially is plain text, but randomly chang...
by led-bloon
May 27, 2013 3:36
Forum: Beginners
Topic: Custom Icons
Replies: 1
Views: 1033

Re: Custom Icons

Here's a link that may be of use: http://msdn.microsoft.com/en-us/library/windows/desktop/ms648062%28v=vs.85%29.aspx I also note in your sub show() you do a NIM_ADD and a NIM_MODIFY. You only need to do an initial NIM_ADD and from there on the NIM_MODIFY should do the work for you. Good luck with it...
by led-bloon
Apr 28, 2013 6:24
Forum: Windows
Topic: Problem with WndClassEX and RegisterClassEx [Solved]
Replies: 7
Views: 2423

Re: Problem with WndClassEX and RegisterClassEx

Very sus of your LoadIcon() code

Try replacing with:
wndclass.hIcon = LoadIcon(0, IDI_APPLICATION)
wndclass.hIconSm = wndclass.hIcon
(Standard Windows icon as a quick check)

Also
agree with counting_pine re True/False
limping led
by led-bloon
Apr 20, 2013 8:48
Forum: General
Topic: small code C->FB
Replies: 8
Views: 1364

Re: small code C->FB

Tks TJF - point taken
by led-bloon
Apr 20, 2013 7:26
Forum: General
Topic: small code C->FB
Replies: 8
Views: 1364

Re: small code C->FB

Maybe this:

Code: Select all

TYPE A1
    D AS UBYTE
    F AS BYTE
END TYPE

TYPE A
    B AS integer
    map(100) AS A1
END TYPE
GL
lefty led