IceDesign GUI designer

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
ChrisR
Addict
Addict
Posts: 1503
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: IceDesign GUI designer

Post by ChrisR »

Joe wrote: Sun Dec 07, 2025 6:44 pm Ahh, I've to include to get rid off :D
No worries, but that's not how you should look at it :wink:
In the previous example, if you Compile/Run YourForm.pb, it is the main file and #PB_Compiler_IsMainFile = 1
And if you compil MainFile.pb, YourForm.pb is not the the main file and #PB_Compiler_IsMainFile = 0. The code in YourForm.pb after CompilerIf #PB_Compiler_IsMainFile is not taken into account by the compiler in this case, it is not the the main file.
User avatar
ChrisR
Addict
Addict
Posts: 1503
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: IceDesign GUI designer

Post by ChrisR »

IceDesign has been updated in version 2.3.9
  • “Bind Events in an IncludeFile” works also now if the Bind Event property is enabled for one or more Gadgets and not just as a sub-option of "Bind All Gadgets Events"
  • Add the #SS_Notify control style for TextGadgets
Joe
New User
New User
Posts: 4
Joined: Thu Oct 04, 2018 10:57 am

Re: IceDesign GUI designer

Post by Joe »

First of all - thank you Chris for your quick help and the updates!

“Bind Events in an IncludeFile” Since these file gets overwritten each time the form code is generated, it's more or less useless (my understanding of handling the file:) ) These Procedures are also handled in the Mainfile.
If you can put
XIncludeFile "frmMain_Event.pb"
under the "CompilerIf #PB_Compiler_IsMainFile" section, then I don't have to edit the generated form anymore ...
... I've just to include the generated form file after the declarations in the main file.

Cheers, Joe
User avatar
ChrisR
Addict
Addict
Posts: 1503
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: IceDesign GUI designer

Post by ChrisR »

It's a very good idea Joe, Thanks :)
I'll do it by leaving the XIncludeFile at the same place, without moving it, that's where we normally expect to see it.

Code: Select all

CompilerIf #PB_Compiler_IsMainFile
  XIncludeFile "frmMain_Event.pb"
CompilerEndIf
User avatar
ChrisR
Addict
Addict
Posts: 1503
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: IceDesign GUI designer

Post by ChrisR »

ChrisR wrote: Mon Dec 08, 2025 11:14 am It's a very good idea Joe, Thanks :)
I'll do it by leaving the XIncludeFile at the same place, without moving it, that's where we normally expect to see it.
Actually, no, it wouldn't suit everyone
It would not be good for those who use frmMain_Event.pb and compile from a main file, as the event procedures would be missing
But I'll think about it, based on your idea :)
Clanzer
New User
New User
Posts: 8
Joined: Thu Sep 04, 2025 5:05 pm

Re: IceDesign GUI designer

Post by Clanzer »

Ah just realised the font re-size does not work for Cross Platform and only windows :(
User avatar
ChrisR
Addict
Addict
Posts: 1503
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: IceDesign GUI designer

Post by ChrisR »

Yes, sorry, but it's only developed for Windows :?
I only have an Ubuntu in virtual machine that I rarely use, and I don't know anything about Bash, sudo, or APIs. I also have an old Mac in a VM, but it's super super slow.
So I don't want to develop and test for those platforms.
And I'm not a big fan of using all macros to bypass the internal function, like LoadFont,.. also, I don't know how I could retrieve the default font from a Gadget without APIs.
In short, In ResizeHelper.pbi, I need the equivalent of GetGadgetFontInfo(Gadget, *GadgetFont.GadgetFonts) for Linux and Mac but I need the help of experts for this.

Perhaps you could try mk-soft's ScaleGadgets module with all those macros :wink: and see if it fits your needs.
Post Reply