IceDesign GUI designer

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
simkot
User
User
Posts: 31
Joined: Sat Oct 26, 2024 8:25 am

Re: IceDesign GUI designer

Post by simkot »

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?
User avatar
ChrisR
Addict
Addict
Posts: 1466
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: IceDesign GUI designer

Post by ChrisR »

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.
simkot
User
User
Posts: 31
Joined: Sat Oct 26, 2024 8:25 am

Re: IceDesign GUI designer

Post by simkot »

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?
User avatar
ChrisR
Addict
Addict
Posts: 1466
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: IceDesign GUI designer

Post by ChrisR »

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
User avatar
le_magn
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Aug 24, 2005 12:11 pm
Location: Italia

Re: IceDesign GUI designer

Post by le_magn »

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?
Image

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.
Image
User avatar
ChrisR
Addict
Addict
Posts: 1466
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: IceDesign GUI designer

Post by ChrisR »

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.
User avatar
le_magn
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Aug 24, 2005 12:11 pm
Location: Italia

Re: IceDesign GUI designer

Post by le_magn »

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 :)
Image
User avatar
le_magn
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Aug 24, 2005 12:11 pm
Location: Italia

Re: IceDesign GUI designer

Post by le_magn »

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 :)
Image
User avatar
ChrisR
Addict
Addict
Posts: 1466
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: IceDesign GUI designer

Post by ChrisR »

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.
User avatar
le_magn
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Aug 24, 2005 12:11 pm
Location: Italia

Re: IceDesign GUI designer

Post by le_magn »

ChrisR 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.
Hi Chris, sorry you are right I didn't realize that by setting that option the problem was solved, better that way :) for all my other requests that I make to you as additions to IceDesign, they are my points of view that would make me more comfortable using Icedesign, like the speech to have full control of all the gadgets(toolbars, menus etc), the option to not have icedesign minimize, etc. .. these are all things that during use I notice and point them out to you, then of course I don't demand that you include them, mine remain suggestions, that maybe you can mark down and if in some future release you decide to implement them I will be happy about that, otherwise it is not a problem IceDesign remains at the moment the best Visual designer for Purebasic. Thank you for your work
Image
User avatar
ChrisR
Addict
Addict
Posts: 1466
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: IceDesign GUI designer

Post by ChrisR »

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.
AZJIO
Addict
Addict
Posts: 2141
Joined: Sun May 14, 2017 1:48 am

Re: IceDesign GUI designer

Post by AZJIO »

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
User avatar
ChrisR
Addict
Addict
Posts: 1466
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: IceDesign GUI designer

Post by ChrisR »

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.
User avatar
le_magn
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Aug 24, 2005 12:11 pm
Location: Italia

Re: IceDesign GUI designer

Post by le_magn »

Hi chris, another cool feature for the future is the possibility to copy gadget from one istance of icedesign to another instance:
Image
Image
User avatar
ChrisR
Addict
Addict
Posts: 1466
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: IceDesign GUI designer

Post by ChrisR »

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:
Image
Post Reply