More Icon/Drawing support for Gadgets...

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.

Hello Fred
I would really like to see more optional flags/options to handle and display icons/images in gadgets like "ComboBoxGadget()", Own Icons inside MenuBars and maybe a command to draw inside a listviewgadget so the user can paint with the draw commands any stuff he want for example, like his own progressbar! :)

Command could look like:

Code: Select all

StartDrawing(ListViewOutput())                       ; Using GDI to draw direct in the ListViewGadget
  clmwidth = GetColumnSize(#Gadget,#Column)          ; or GetColumnWidth(#Gadget,#Position), width of our wanted column  
  SetColumnOutput(#Gadget,#Column,#Row)              ; Define the ListViewGadget with the field (column + row) where we want to draw our stuff
  Box(0,0,clmwidth,12,RGB(255,0,0))                  ; Just draw a red filled box
StopDrawing()
Ok, maybe this command syntax is not so good... I havent really take time to think about a good and easy syntax... This is only to explain what i would like to see in a future version of PureBasic due fact until now nowbody seems to know how to manage it via api!? No answer to that topic until today ;(

Fred, if you want, i could send you an pure c/c++ source where guys are doing the same (drawing inside a listviewgadget to display there own progressbar) ... Its something like ed*nkey for example...

Would be really great!

PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX8.1, SB AWE64, Win2000 + all Updates...

greetz
MrVainSCL! aka Thorsten
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

Will be rather difficult and not portable. This is not my primary goal for now... But I've heard from an advanced ToolBox which could offer than somewhere :).

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tranquil.

Uff thats listens nice MrVain. :)
But a commands like GetColoumX(gadget,coloum),GetColoumY(gadget,coloum), GetColoumWidth(gadget,coloum), GetColoumHeight(gadget,coloum) could be enough to do that. GadgetWidth and GadgetXY is allready existend so this chapter is completed then. :)

Bye
Mike

Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.

Hi Fred
I think you mean the drawing inside a listview i.e. is not portable atm, right? (i think such stuff is possible on linux too!? But ok, its not so important since Justin posted a small example :wink:

But what about the other things like Icons in Combobox, Icons in MenuBar i.e.? And will you add the feature to catch Icons with CatchImage() or any other command too? I think its really needed if you dont want to spread your app with external icons! :)

Hi @ all
Have a look to this forum at tips and tricks... Justin posted a small nice example how to paint in a listview to draw a progressbar for example! Nice example Justin - thx!


PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX8.1, SB AWE64, Win2000 + all Updates...

greetz
MrVainSCL! aka Thorsten
Post Reply