Search found 146 matches

by Tigra
Oct 09, 2011 20:01
Forum: Linux
Topic: absent a long time, can FB for linux install on a Mac OS X?
Replies: 2
Views: 1295

absent a long time, can FB for linux install on a Mac OS X?

I've been absent a long time, ive done a google search in general and of the forums, but i cannot find a definitive answer whether FB can install into Mac OS X (i'm add Macintosh and macbook as keywords).

Tigra.
by Tigra
May 25, 2008 23:29
Forum: Sources, Examples, Tips and Tricks
Topic: Windows listbox with checkboxes
Replies: 4
Views: 4284

Windows listbox with checkboxes

Based on the work and code by jcfuller, I want to offer this variation on Windows listboxes with checkboxes, those having both a 'checked' and 'active' value. I've place chkdlstb.bas into my local library, which is why I've split this into so many pieces chkdlstb.bi ' chkdlstb.bi #include once "...
by Tigra
May 25, 2008 23:20
Forum: Beginners
Topic: Making/using a Window Listbox that has checkboxes for items
Replies: 12
Views: 5021

You modified a standard control to do something it was not designed to do. You seem to be assuming that the LBN_SELCHANGE notification should be sent when you press the spacebar because it is sent when you left-click an item. That was pretty arrogant of me. I've re-written the code to access either...
by Tigra
May 25, 2008 15:54
Forum: Beginners
Topic: Making/using a Window Listbox that has checkboxes for items
Replies: 12
Views: 5021

The left mouse button causes the LBN_SELCHANGE notification to be sent, and ListCheck gets updated there. So this could a windows problem, not a program flaw, in that using the keyboard to flip the checked state does not cause the LBN_SELCHANGE notification to activate. Actually, if I remove the ch...
by Tigra
May 25, 2008 15:29
Forum: Beginners
Topic: Making/using a Window Listbox that has checkboxes for items
Replies: 12
Views: 5021

Try trapping the return key from the WM_CHAR handler. I already tried that, did not work, which is why I added the WM_KEYDOWN block The code that reports the state of the check boxes refers to the ListCheck array. But you will notice that the corresponding code for the left mouse button does not al...
by Tigra
May 25, 2008 14:03
Forum: Beginners
Topic: Making/using a Window Listbox that has checkboxes for items
Replies: 12
Views: 5021

In the code converted from PowerBASIC by jcfuller May 18, 2008, I've tried to include the ability for the space key or enter key to check/uncheck a given row's box. I want to do this without altering the external list data array. My code is: Case WM_CHAR If wParam = Asc(" ") Then t = SendM...
by Tigra
May 24, 2008 12:44
Forum: Beginners
Topic: Making/using a Window Listbox that has checkboxes for items
Replies: 12
Views: 5021

jcfuller wrote:ckbxList.bas
...
ckbxList.rc
Excellant, thank you very much!
by Tigra
May 24, 2008 0:35
Forum: Community Discussion
Topic: New short-circuit AND/OR operators in FB
Replies: 64
Views: 19017

If my two cents are worth something, I like AndIf and OrIf.
by Tigra
May 17, 2008 21:58
Forum: Beginners
Topic: Making/using a Window Listbox that has checkboxes for items
Replies: 12
Views: 5021

Making/using a Window Listbox that has checkboxes for items

I've populated my listbox, but I need to reproduce what I've seen MS VB - a listbox with check marks beside each item. I've looked at the listbox styles, none seem to jump out and say "this one". I'm currently using: LBS_HASSTRINGS WS_EX_CLIENTEDGE WS_TABSTOP Am I missing a style, is VB re...
by Tigra
May 11, 2008 15:13
Forum: Sources, Examples, Tips and Tricks
Topic: Get Windows application Version info
Replies: 0
Views: 1657

Get Windows application Version info

If you want to retrieve at runtime the information contained within the VERSIONINFO structure of your Windows application... ' appverinfo.bi ' last at: 452 ' last date: 2008-05-11 12:05:01 Type TAppVerInfo Declare Constructor () Declare Constructor (ByRef ExeName As Const String) Declare Destructor(...
by Tigra
Apr 23, 2008 1:44
Forum: General
Topic: ethics of posting code based on someone elses work
Replies: 3
Views: 1427

ethics of posting code based on someone elses work

A long time ago, I found a Visual Basic module that encapsulated all of the code necessary for using SHBrowseForFolder. For example, the code provided in: http://www.freebasic.net/forum/viewtopic.php?t=1750 can be easily extended to locate files by changing: bi.ulFlags = 0 into bi.ulFlags = BIF_RETU...
by Tigra
Mar 31, 2008 1:20
Forum: General
Topic: does FB recognize INCLUDE or LIBRA path environment variable
Replies: 2
Views: 1347

does FB recognize INCLUDE or LIBRA path environment variable

I tried to search the forum archives, and I was going to ask this in the IRC channel but there was no one there AFAIK. When I installed a new version of FB, I need to add my own common include files into the FB\inc folder, which is a pain. Does FB recognize an INCLUDE environment variable? The same ...
by Tigra
Mar 21, 2008 17:47
Forum: General
Topic: Using "Const" qualifier on a string for use in crt
Replies: 3
Views: 1749

The C headers were translated before const qualifiers were added. You should use a const quailifed version of vsnprintf. va_first() needs to be cast to an any ptr. Your example works: dim s as string s = "Hello" print _sprintf( !"length of '%s' is %d\n", s, len(s) ) But this doe...
by Tigra
Mar 21, 2008 17:43
Forum: General
Topic: Using "As Const String" on the return value of a f
Replies: 2
Views: 1294

The const qualifier on the return value is not ignored. It would be helpful to see a bit more code though. The const qualifiers are a new feature and many bug fixes have been made wince the 0.18.3 release. ... Same idea with function return values. I'm using Version 0.18.4 (12-30-2007) for win32 (t...
by Tigra
Mar 21, 2008 16:05
Forum: General
Topic: Using "Const" qualifier on a string for use in crt
Replies: 3
Views: 1749

Using "Const" qualifier on a string for use in crt

My function is a wrapper for vsnprintf: #include once "crt.bi" /' @method _sprintf @description Impliments the C _sprintf function @param FormatString @param ... @return result '/ Function _sprintf cdecl (ByVal FormatString As Const String, ...) As Const String Export Dim As Integer length...