DialogLib: <compiler if="#Constant">

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Sicro
Enthusiast
Enthusiast
Posts: 538
Joined: Wed Jun 25, 2014 5:25 pm
Location: Germany
Contact:

DialogLib: <compiler if="#Constant">

Post by Sicro »

Just found it. It is an undocumented feature, but it is certainly very useful to be official and documented.

Code: Select all

<compiler if="#Constant">
  ...
<compilerelse/>
  ...
</compiler>
Source: PureBasicIDE/dialogs/Preferences.xml
Image
Why OpenSource should have a license :: PB-CodeArchiv-Rebirth :: Pleasant-Dark (syntax color scheme) :: RegEx-Engine (compiles RegExes to NFA/DFA)
Manjaro Xfce x64 (Main system) :: Windows 10 Home (VirtualBox) :: Newest PureBasic version
User avatar
Kiffi
Addict
Addict
Posts: 1362
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: DialogLib: <compiler if="#Constant">

Post by Kiffi »

Thank you for this hint, Sicro! Image

Greetings ... Peter
Hygge
freak
PureBasic Team
PureBasic Team
Posts: 5929
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: DialogLib: <compiler if="#Constant">

Post by freak »

The IDE does not use the Dialog library. It has its own (older and a little different) dialog manager code.
quidquid Latine dictum sit altum videtur
Fred
Administrator
Administrator
Posts: 16690
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: DialogLib: <compiler if="#Constant">

Post by Fred »

Yes it's not available in the PB dialog lib for now
User avatar
Sicro
Enthusiast
Enthusiast
Posts: 538
Joined: Wed Jun 25, 2014 5:25 pm
Location: Germany
Contact:

Re: DialogLib: <compiler if="#Constant">

Post by Sicro »

I strongly assumed that the DialogLib is used here and therefore didn't test it before (sorry, @Kiffi).

It would be nice if the DialogLib would support it as well.
Image
Why OpenSource should have a license :: PB-CodeArchiv-Rebirth :: Pleasant-Dark (syntax color scheme) :: RegEx-Engine (compiles RegExes to NFA/DFA)
Manjaro Xfce x64 (Main system) :: Windows 10 Home (VirtualBox) :: Newest PureBasic version
User avatar
Kiffi
Addict
Addict
Posts: 1362
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: DialogLib: <compiler if="#Constant">

Post by Kiffi »

no problem, @Sicro!
Hygge
Post Reply