IceDesign GUI designer
Re: IceDesign GUI designer
How do I reopen a .pb file in IceDesign? For example, if I wrote the code, it works, but I needed to add another button?
Re: IceDesign GUI designer
IceDesign has its own format for saving and reopening an interface (.icef). You must use the 5 buttons on the left of the toolbar, New, Open,Import, Save and Save As.
Re: IceDesign GUI designer
Yes, I know that IceDesign has its own format (.icef) But this does not solve the problem, on the contrary, it creates it. For example, I created GUI and Creative Code (F7) Then, naturally, I assigned my own functions to buttons and other elements instead of the default ones. After that, in subsequent versions, I needed to delete some buttons and add other gadgets. What should I do? Call the form (.icef) and edit it? Let's say. But then I will create the code (F7) and instead of my functions, the default ones will appear again. Is this right? Will I have to re-write the program?
Re: IceDesign GUI designer
To keep your event loop, your own procedures... it is better to use another .pb source, your main program and to include the interfaces generated with XIncludeFile.
So you can recreate your interfaces without losing your additions, your functions.
Written from my phone, I'm on weekend
So you can recreate your interfaces without losing your additions, your functions.
Written from my phone, I'm on weekend
Re: IceDesign GUI designer
Hi Chris, I am using for the first time(from IceDesign) the function to create a toolbar in a window, the toolbar is created with 3 standard icons but then I can't edit it, I can't remove or add icons, am I doing something wrong?

p.s. same situation with the ListIcon Gadget and other gadgets, from icedesign besides creating it i can't do any action like edit add or remove items/columns, i haven't tried other gadgets, is all this normal? in purebasic form editor you can edit all toolbar, statusbar, ListIcon, Menu and other gadgets.
Surely I will make a mistake in icedesign.

p.s. same situation with the ListIcon Gadget and other gadgets, from icedesign besides creating it i can't do any action like edit add or remove items/columns, i haven't tried other gadgets, is all this normal? in purebasic form editor you can edit all toolbar, statusbar, ListIcon, Menu and other gadgets.
Surely I will make a mistake in icedesign.

Re: IceDesign GUI designer
Hi le_magn,
No, you haven't missed anything, nothing is developed for items in Menu, ToolBar, StatusBar or ListIcon Columns/Items, or even ComboBox Items...
For toolbar or other controls, the elements added are only examples (cf. pb help), to be modified.
Maybe I'll do it one day, but I don't see much use for it, I find it's almost easier to write it directly into the PB source rather than going through an interface.
No, you haven't missed anything, nothing is developed for items in Menu, ToolBar, StatusBar or ListIcon Columns/Items, or even ComboBox Items...
For toolbar or other controls, the elements added are only examples (cf. pb help), to be modified.
Maybe I'll do it one day, but I don't see much use for it, I find it's almost easier to write it directly into the PB source rather than going through an interface.
Re: IceDesign GUI designer
Ok thank you Chris, I thought I was doing something wrong, the fact to edit the toolbar, menu, listicon etc. from the code directly is not a problem, just that for some things I found it much more convenient to do it directly from the GUI, especially for the toolbar, but that's ok, I hope that in some future version you will insert these manipulation possibilities in IceDesign, in the meantime I thank you 


Re: IceDesign GUI designer
Hi @Chris, please add the possibility to change images_file #constant name, because if i have more one window with the same images file used inside, wen i include other windows in main source it raise an error of constant name already declared, thank you.
Also could use an option to prevent IceDesign from minimizing every time you save source code, I have 2 screens, no need to minimize to icon every time
Also could use an option to prevent IceDesign from minimizing every time you save source code, I have 2 screens, no need to minimize to icon every time


Re: IceDesign GUI designer
Hi le Magn,
Hmm, that's why I had “Add Short Window Name”, Prefix or Suffix, to enable Multi-Window support and avoid duplicates for Gadgets, Images or Fonts.
I'll see what I can do for IceDesign, which is minimized when the source is created.
It's done this way to give the Focus to the IDE with the generated code, but I understand that it's useless with 2 screens.
Hmm, that's why I had “Add Short Window Name”, Prefix or Suffix, to enable Multi-Window support and avoid duplicates for Gadgets, Images or Fonts.
I'll see what I can do for IceDesign, which is minimized when the source is created.
It's done this way to give the Focus to the IDE with the generated code, but I understand that it's useless with 2 screens.
Re: IceDesign GUI designer
Hi Chris, sorry you are right I didn't realize that by setting that option the problem was solved, better that wayChrisR wrote: Thu Nov 21, 2024 11:40 am Hi le Magn,
Hmm, that's why I had “Add Short Window Name”, Prefix or Suffix, to enable Multi-Window support and avoid duplicates for Gadgets, Images or Fonts.


Re: IceDesign GUI designer
No worries, all comments are welcome, I know they are constructive
I updated to avoid having the window always minimize when creating the code.
Well, not really, to have the IDE active, I minimize IceDesign before opening the IDE then I restore IceDesign to have it in the 2nd plan.
So, closing, restoring the window is therefore visible but I prefer it over EnumWindows, SetForegroundWindow, if case of multiple PureBasic opened.
Packages are uploaded on server.

I updated to avoid having the window always minimize when creating the code.
Well, not really, to have the IDE active, I minimize IceDesign before opening the IDE then I restore IceDesign to have it in the 2nd plan.
So, closing, restoring the window is therefore visible but I prefer it over EnumWindows, SetForegroundWindow, if case of multiple PureBasic opened.
Packages are uploaded on server.
Re: IceDesign GUI designer
I tried to make elements on canvas to make the utility cross-platform and decided to draw elements as similar as possible to real window elements. I looked at how you did it and some elements look like a white box. It seems to me that this could be diversified. But I haven't updated for a long time, maybe you have already done it. Yesterday I drew several elements and posted as a test source
Re: IceDesign GUI designer
Hi Azjio, I'm not home for a few days.
Gadget images are captured using the WM_Print message, so with the image closest to the real Gadget, but it is for Windows only. These images are then drawn on the grid, a canvas.
I don't know if I've answered your question.
Gadget images are captured using the WM_Print message, so with the image closest to the real Gadget, but it is for Windows only. These images are then drawn on the grid, a canvas.
I don't know if I've answered your question.
Re: IceDesign GUI designer
Hi chris, another cool feature for the future is the possibility to copy gadget from one istance of icedesign to another instance:



Re: IceDesign GUI designer
IceDesign has been updated in version 2.2.8

- The window background image is now always stretched to the window size, with or without the DPIaware flag.
- (New) 2 tabs are now available, to work on 2 forms at the same time and/or to copy elements from one form to another.
Note that if you paste in a different level (e.g. a container), the 1st element will be in position 10x10.
Positions will be preserved if copy-paste is on the same level (e.g. window).
If you have 2 tabs, when you close the window, it only closes the current tab and the other tab becomes the active one.
Demo:
