Visual Designer feature Request

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Visual Designer feature Request

Post by Num3 »

I would really like that Visual Designer would do a check to only include in the generated code 1 image if it is repeated several times...

Example:

Now

Code: Select all

;- Images
DataSection
Image0:
  IncludeBinary "E:\Documentos\Code\Apps\IPGest\gfx\001.ico"
Image1:
  IncludeBinary "E:\Documentos\Code\Apps\IPGest\gfx\cliente.bmp"
Image2:
  IncludeBinary "E:\Documentos\Code\Apps\IPGest\gfx\cliente.bmp"
Image3:
  IncludeBinary "E:\Documentos\Code\Apps\IPGest\gfx\cliente.bmp"
Image4:
  IncludeBinary "E:\Documentos\Code\Apps\IPGest\gfx\cliente.bmp"
EndDataSection
With Feature

Code: Select all

;- Images
DataSection
Image0:
  IncludeBinary "E:\Documentos\Code\Apps\IPGest\gfx\001.ico"
Image1:
  IncludeBinary "E:\Documentos\Code\Apps\IPGest\gfx\cliente.bmp"
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Re: Visual Designer feature Request

Post by GPI »

Or maybe so (when it is easier)

Code: Select all

;- Images
DataSection
Image0:
  IncludeBinary "E:\Documentos\Code\Apps\IPGest\gfx\001.ico"
Image1:
Image2:
Image3:
Image4:
  IncludeBinary "E:\Documentos\Code\Apps\IPGest\gfx\cliente.bmp"
EndDataSection
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

I will put this unbload functionality on my todo list....with pain in my heart :(
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Oh my, how can anyone ask "lazy Berikco" to do thi

Post by Fangbeast »

Berikco wrote:I will put this unbload functionality on my todo list....with pain in my heart :(
After I fell out of my chair laughing (Thanks a lot Berikco!!) I remembered so many references on your site to lazy. I am sorry they are asking you to go against your nature and work some:):)

(Nearly snorted soy milkout if my nose then and fell out of the chair again, this is just too funny)
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Berikco :lol:
Post Reply