Skin your window apps real easy with this AppFace test/demo!

Share your advanced PureBasic knowledge/code with the community.
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Skin your window apps real easy with this AppFace test/demo!

Post by DoubleDutch »

Code updated For 5.20+

Download AppFace from
http://www.goldtach.com/matinsoft/eng/appface/index.htm

Put the appface.dll along with the demo skin file sap_af.urf in the same dir as the code below:

Code: Select all

Enumeration 4
  #GTP_LOAD_FILE_ONLY             
  #GTP_LOAD_MEMORY_ONLY       
  #GTP_LOAD_RESOURCE_ONLY
EndEnumeration     

Enumeration #WM_USER+$361
  #WM_MDICLIENT_NOTIFY   
  #WM_DATETIME_LBUTTONUP 
  #WM_SETMENU_NOTIFY
EndEnumeration

Enumeration 1
  #GTP_LOAD_FILE             
  #GTP_LOAD_MEMORY           
  #GTP_LOAD_RESOURCE         
  #GTP_LOAD_FILE_ONLY             
  #GTP_LOAD_MEMORY_ONLY       
  #GTP_LOAD_RESOURCE_ONLY     
EndEnumeration

Enumeration
  #WINDOW_TYPE_AUTOFILTER     
  #WINDOW_TYPE_SDK           
  #WINDOW_TYPE_VC             
  #WINDOW_TYPE_VB6           
  #WINDOW_TYPE_BCB           
  #WINDOW_TYPE_DELPHI         
  #WINDOW_TYPE_NET           
EndEnumeration

Enumeration
  #SKIN_CLASS_NOSKIN         
  #SKIN_CLASS_AUTOFILTER       
  #SKIN_CLASS_UNKNOWN = 6
  #SKIN_CLASS_SCROLLWIN = 10
  #SKIN_CLASS_FRAMEWIN = 101
  #SKIN_CLASS_FRAMEDIALOG
  #SKIN_CLASS_INSIDEDIALOG
  #SKIN_CLASS_MDICLIENT   
  #SKIN_CLASS_COMBOBOX = 201
  #SKIN_CLASS_DATETIME     
  #SKIN_CLASS_HEADER       
  #SKIN_CLASS_GROUPBOX     
  #SKIN_CLASS_IMAGEBUTTON   
  #SKIN_CLASS_MENU         
  #SKIN_CLASS_PROGRESS     
  #SKIN_CLASS_PUSHBUTTON   
  #SKIN_CLASS_SCROLLBAR     
  #SKIN_CLASS_SLIDER       
  #SKIN_CLASS_SPIN         
  #SKIN_CLASS_SPILTER       
  #SKIN_CLASS_STATUSBAR     
  #SKIN_CLASS_TAB           
  #SKIN_CLASS_TEXT         
  #SKIN_CLASS_TOOLBAR       
  #SKIN_CLASS_TOOLBAREX     
  #SKIN_CLASS_PANEL         
  #SKIN_CLASS_PANELEX       
  #SKIN_CLASS_PANELELIXIR      
  #SKIN_CLASS_HYPERLINK     
  #SKIN_CLASS_STATUSBAR_VB6
EndEnumeration

Enumeration 1
  #BK_DIALOGPANEL   
  #BK_MDICLIENT     
  #BK_MDICHILD     
  #BK_SPLITTER     
  #BK_STATUSBAR     
  #BK_MENUBARBK     
  #BK_MENUBARHOVER 
  #BK_MENUBARDOWN   
  #BK_MENU_BK       
  #BK_MENU_HOVER   
  #BK_SCROLL_BK     
  #BK_SLIDER_CHANNEL_H 
  #BK_SLIDER_CHANNEL_V 
  #BK_PROGRESS_H_NORMAL
  #BK_PROGRESS_V_NORMAL
  #BK_PROGRESS_H_OVER   
  #BK_PROGRESS_V_OVER   
  #BK_IMAGE_ARROW = 1001
EndEnumeration

Enumeration 1
  #ARROW_UP_NORMAL   
  #ARROW_UP_DOWN     
  #ARROW_DOWN_NORMAL 
  #ARROW_DOWN_DOWN   
EndEnumeration

AppFace=OpenLibrary(#PB_Any,"appface.dll")
If AppFace=0
  MessageRequester("Error","Cannot load library")
  End
EndIf

result=CallFunction(AppFace,"SkinStart",@"sap_af.urf",#WINDOW_TYPE_AUTOFILTER,#Null,#GTP_LOAD_FILE,#Null,#Null)

If OpenWindow(0, 100, 200, 195, 260, "AppFace Window Test", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget)
  
  Repeat
    EventID = WaitWindowEvent()
    
    If EventID = #PB_Event_CloseWindow  ; If the user has pressed on the close button
      Quit = 1
    EndIf
    
  Until Quit = 1
  
EndIf

result=CallFunction(AppFace,"SkinRemove")

CloseLibrary(AppFace)

End   ; All the opened windows are closed automatically by PureBasic
The above code should demonstrate the appface "skinner" with the window demo from PureBasics help.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

I use belv and winmp urf files (the 2 better ones i guess)

Image

Image
ARGENTINA WORLD CHAMPION
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

I get the menu i was looking for...

Image
ARGENTINA WORLD CHAMPION
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

:D - But isnt it illegal to use this? Isnt this program shareware among with all the skins and lib? nor trial? - I'd like to get the editor and make my own skins though... But Im not willing to pay for this yet - Im not really into skinned applications _ I've always been against them although this styles are quite nice.

GtBase.urf -- EWWwww at that one!

http://www.goldtach.com/matinsoft/eng/a ... rf_reg.htm there you can get more I guess.. (but I must warn you.. I only checked out some of the 20 from the download package - and they are horrible)

It would be nice if PB supported this by default - it would bring LOTS of new customers - I believe - (seen many people looking for this kind of thing).

Someone up to the task?

Nice some c++ code is given as well i'll check it out

tip... close the window before freeing the skin and ending the program.
! Black holes are where God divided by zero !
My little blog!
(Not for the faint hearted!)
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

dagcrack wrote::D - But isnt it illegal to use this? Isnt this program shareware among with all the skins and lib? nor trial? - I'd like to get the editor and make my own skins though... But Im not willing to pay for this yet
No, its not ilegal.

The application gives you some trial to test it as most shareware does.

In fact the developer told me that he is "pleasantly surprised" that we are using it in PB and that he will make a special licence for PureBasic users!

But again, as in the thread about the CDs, im not trying to sell anything and im not spaming, just coding ;) just sharing something nice that we found, its up to everyone to use it or not. DagCrack... dont be so negative, i can't say nothing without you being such negative ;) :D
ARGENTINA WORLD CHAMPION
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

When people gets the truth, they think you're being negative. 90% of those skins are rancid.
! Black holes are where God divided by zero !
My little blog!
(Not for the faint hearted!)
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

dagcrack wrote:When people gets the truth, they think you're being negative.
Listen, you give us 'the truth' ??

You was talking about being legal or ilegal, not about the skins... just forget it. Foregive us to live not in 'the true' :wink:

Its the last time i answer you about this, dont want to start a discussion here with nosense. Thos forum is not for argue but for sharing code, tips, questions, etc.
ARGENTINA WORLD CHAMPION
okasvi
Enthusiast
Enthusiast
Posts: 150
Joined: Wed Apr 27, 2005 9:41 pm
Location: Finland

Post by okasvi »

nice, i didnt know skinning in PB is so easy :D
but i dont like skins... (i hate most of delphi/vb apps because ugly skins almost every prog is using...)
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

I was talking about both things - adjust your glasses.
Adjust them again to see that I asked: is it shareware? trial?
You just thought I said "this is illegal" - when I just asked about the license of their product.

Well you're arguing by saying all that.. I just asked.
Perhaps 30 cups of coffee would help you.

I was saying the skins are ugly - dont you think so? just 3 of them are good enough to be used - the others, even my dog can make them better. Same goes for many of the current skinned applications you can find in the market, only 20% of them are well done, the others... well at least they tried (I hope)..


No matter how many emoticons you add - they still have something to argue about...


You also seem to have something personal against me ¬¬
Thats nice you wouldnt be the first one. I'll add you to the list, wait.
Done. You'll recieve a GBU15 within the next 2 minutes complaints at: ididntgetaholeinmyroof@antigrandpas.org


So funny..
! Black holes are where God divided by zero !
My little blog!
(Not for the faint hearted!)
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4791
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

I got the menu I wanted too..

Post by Fangbeast »

ricardo wrote:I get the menu i was looking for...

Image
I like the idea too, only hope my feeble graphic skills are up to it. My applications are so ugly that they could use this dll, all of them!!!
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

I was saying the skins are ugly - dont you think so? just 3 of them are good enough to be used - the others, even my dog can make them better. Same goes for many of the current skinned applications you can find in the market, only 20% of them are well done, the others... well at least they tried (I hope)..
Im planning to do my own skins. Did you see how easy is to do it using their skinning app? Im not talking about easy the graphic design, but to use it once you have it.

Maybe one of the nicest features of this dll is that they have already structured the skinning procedure in such way that you need to provide some images and build your own skin, very similar than making a skin for winamp, per example.
ARGENTINA WORLD CHAMPION
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

True however is there any freebie editor out there for setting up the skins and getting skin templates as well ?
! Black holes are where God divided by zero !
My little blog!
(Not for the faint hearted!)
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

hmm it seems to be useless if there's no decent skin editor.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

There is a skin editor with it, but you have to pay for it. Seems like good value if you have a few commercial apps that need skinning.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

True but we are cheap with this kind of things - We'd like to use it and if money comes thanks to it then it will be bought - say they should have 2 versions a free lite one and a pro one.. say that the pro supports all types of gadgets and stuff while the lite one just supports a few ones (most common?) -- it'd be better no? for us, not for them though. :lol: perhaps a limit of 50 sold copies with the free version after that you got to upgrade or sell your soul after the legal actions are taken. :lol:
! Black holes are where God divided by zero !
My little blog!
(Not for the faint hearted!)
Post Reply