It is currently Mon Sep 23, 2019 7:16 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: PB onglet Version 1.0 beta 3
PostPosted: Sat Jul 20, 2019 11:23 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jun 13, 2014 9:38 am
Posts: 131
Pb onglet is a tools bar like a panel completely customisable.

At the moment Windows only

TO GITHUB
USER MANUAL

Image

How to try it :

Code:
; ******************************************************************************
; AUTHOR  : MicrodevWeb
; MODULE  : Pb Onglet
; PROCESS : load package
; ******************************************************************************
EnableExplicit
Procedure loadPackage()
  Protected zipName.s = "PACKAGE.zip"
  If MessageRequester("Download Package","Do you agree to download the tree view package form github?",#PB_MessageRequester_YesNo) = #PB_MessageRequester_No
    End
  EndIf
  If Not InitNetwork()
    MessageRequester("Network error","Cannot connect to internet",#PB_MessageRequester_Error)
    End
  EndIf
  If Not ReceiveHTTPFile("https://github.com/microdevweb/PB-ONGLET/archive/master.zip",zipName)
    MessageRequester("Download error","Cannot download the package",#PB_MessageRequester_Error)
    End
  EndIf
  #PACKER = 0
  CreateDirectory("ONGLET")
  CreateDirectory("ONGLET/CLASSES")
  CreateDirectory("ONGLET/CLASSES/IMG")
  CreateDirectory("EXAMPLES")
  CreateDirectory("EXAMPLES/IMG")
  UseZipPacker()
  OpenPack(#PACKER,zipName)
  If ExaminePack(#PACKER)
    While NextPackEntry(#PACKER)
      Protected dirName.s = StringField(PackEntryName(#PACKER),2,"/")
      If PackEntryType(#PACKER) = #PB_Packer_File
        Protected fileName.s = RemoveString(PackEntryName(#PACKER),"PB-ONGLET-master/")
        If Not UncompressPackFile(#PACKER,fileName)
          MessageRequester("Download error","Cannot unzip file "+fileName,#PB_MessageRequester_Error)
          End
        EndIf
      EndIf
    Wend
  EndIf
  ClosePack(#PACKER)
  DeleteFile(zipName)
EndProcedure

loadPackage()


Image

_________________
Use Pb 5.60 lst and Windows 10

my mother-language isn't english, in advance excuse my mistakes.


Last edited by microdevweb on Mon Jul 22, 2019 12:45 pm, edited 5 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: PB onglet Version 1.0 beta 1
PostPosted: Sun Jul 21, 2019 6:11 am 
Offline
Enthusiast
Enthusiast

Joined: Thu Apr 18, 2019 8:17 am
Posts: 275
Looks good! Thanks for sharing it.


Top
 Profile  
Reply with quote  
 Post subject: Re: PB onglet Version 1.0 beta 2
PostPosted: Mon Jul 22, 2019 10:59 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jun 13, 2014 9:38 am
Posts: 131
beta 3 is out

_________________
Use Pb 5.60 lst and Windows 10

my mother-language isn't english, in advance excuse my mistakes.


Top
 Profile  
Reply with quote  
 Post subject: Re: PB onglet Version 1.0 beta 3
PostPosted: Mon Jul 22, 2019 8:00 pm 
Offline
Addict
Addict
User avatar

Joined: Sun Nov 05, 2006 11:42 pm
Posts: 4502
Location: Lyon - France
Really nice, like usually :wink:
I have a little error at this line with W10 / v5.70 X86
Code:
SetWindowLong_(WindowID(\onglet\idHelpForm), #GWL_EXSTYLE, #WS_EX_LAYERED | #WS_EX_TOPMOST)

Thanks for sharing 8)

_________________
ImageThe happiness is a road...
Not a destination


Top
 Profile  
Reply with quote  
 Post subject: Re: PB onglet Version 1.0 beta 3
PostPosted: Mon Jul 22, 2019 11:07 pm 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 5833
Location: Wales, UK
Hi Kcc

That should be SetWindowLongPtr_()

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: PB onglet Version 1.0 beta 3
PostPosted: Tue Jul 23, 2019 8:58 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jun 13, 2014 9:38 am
Posts: 131
Hi Kcc i don't have any error with pb 5.70 x86, but i've changed this instruction as like IdeasVacuum wrote.

Please can you run again the code for download the new package and try again.

Thanks

_________________
Use Pb 5.60 lst and Windows 10

my mother-language isn't english, in advance excuse my mistakes.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye