Page 51 of 51

Re: IceDesign GUI designer

Posted: Sun Dec 07, 2025 8:11 pm
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.

Re: IceDesign GUI designer

Posted: Sun Dec 07, 2025 10:56 pm
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

Re: IceDesign GUI designer

Posted: Mon Dec 08, 2025 10:24 am
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

Re: IceDesign GUI designer

Posted: Mon Dec 08, 2025 11:14 am
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

Re: IceDesign GUI designer

Posted: Mon Dec 08, 2025 11:44 am
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 :)

Re: IceDesign GUI designer

Posted: Mon Dec 08, 2025 2:34 pm
by Clanzer
Ah just realised the font re-size does not work for Cross Platform and only windows :(

Re: IceDesign GUI designer

Posted: Mon Dec 08, 2025 7:15 pm
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.