Search found 7 matches

by andreasahlen
Tue Aug 31, 2021 11:15 am
Forum: Tricks 'n' Tips
Topic: Firebird Database Server client module
Replies: 18
Views: 9858

Re: Firebird Database Server client module

I just tried it with my tables. It works.

Firebird 3.0.7 / PureBasic 5.73 LTS (x64)

Code: Select all

SELECT rdb$get_context('SYSTEM', 'ENGINE_VERSION') 
             as version from rdb$database;
Thanks for your work @the.weavster

:D
by andreasahlen
Fri Feb 07, 2020 9:17 am
Forum: Coding Questions
Topic: How to use Compiler Custom Constants
Replies: 9
Views: 1514

Re: How to use Compiler Custom Constants

Set your contant in Constants => Custom Constants in Compiler Options
#DEBUGMODE = 1
Eval constant value using:

Code: Select all

; Main
CompilerIf Defined(DEBUGMODE, #PB_Constant)
  Debug "DEBUG mode"
CompilerEndIf
by andreasahlen
Fri Jul 13, 2018 7:04 am
Forum: Coding Questions
Topic: Using Resource Files (RC / RES)
Replies: 3
Views: 2545

Re: Using Resource Files (RC / RES)

applied changes, it works! Thanks a lot. Even the localization feature is very useful!
by andreasahlen
Fri Jul 13, 2018 6:42 am
Forum: Coding Questions
Topic: Using Resource Files (RC / RES)
Replies: 3
Views: 2545

Re: Using Resource Files (RC / RES)

Great post. Thank you :) I will try it.
by andreasahlen
Thu Jul 12, 2018 3:18 pm
Forum: Coding Questions
Topic: Using Resource Files (RC / RES)
Replies: 3
Views: 2545

Using Resource Files (RC / RES)


// TOOLBAR.RC
#define PUBLISHERS_TOOLBAR_PNG 1001
#define SHUTDOWN_TOOLBAR_PNG 1002
#define TASKS_TOOLBAR_PNG 1003

PUBLISHERS_TOOLBAR_PNG IMAGE "..\\images\\png\\publishers.png"
SHUTDOWN_TOOLBAR_PNG IMAGE "..\\images\\png\\shutdown.png"
TASKS_TOOLBAR_PNG IMAGE "..\\images\\png\\tasks.png ...
by andreasahlen
Fri Jul 06, 2018 11:38 am
Forum: Coding Questions
Topic: Set Toolbar Size
Replies: 4
Views: 1099

Re: Set Toolbar Size

Thank to both fo you. I will use these snippets as a starting point.
by andreasahlen
Fri Jul 06, 2018 11:04 am
Forum: Coding Questions
Topic: Set Toolbar Size
Replies: 4
Views: 1099

Set Toolbar Size

Hello,

I'm playing along with PureBasic for several days now to evaluate it. I created a Toolbar inside the UI designer. But I cannot find any property to set the Toolbar's height. On my current screen resolution all seems so small. Is there any way to set a default Toolbar.Height based on the ...