Author Topic: WinH  (Read 13559 times)

0 Members and 1 Guest are viewing this topic.

Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 3751
    • Oxygen Basic
Re: WinH
« Reply #15 on: June 09, 2012, 01:00:42 PM »
Yes Aurel, with minor alterations:

There is a problem with '&h', so use '0x' instead. I will fix it.

Code: OxygenBasic
  1.  
  2.  
  3. Enum TVGN_FLAGS
  4.     TVGN_ROOT = 0x0
  5.     TVGN_NEXT = 0x1
  6.     TVGN_PREVIOUS = 0x2
  7.     TVGN_PARENT = 0x3
  8.     TVGN_CHILD = 0x4
  9.     TVGN_FIRSTVISIBLE = 0x5
  10.     TVGN_NEXTVISIBLE = 0x6
  11.     TVGN_PREVIOUSVISIBLE = 0x7
  12.     TVGN_DROPHILITE = 0x8
  13.     TVGN_CARET = 0x9
  14.     TVGN_LASTVISIBLE = 0xA
  15. End Enum
  16.  
  17. TVGN_FLAGS t
  18.  
  19. t=TVGN_PREVIOUS
  20.  
  21. print hex t 'result: 2
  22.  
  23.  

Charles

kryton9

  • Hero Member
  • *****
  • Posts: 721
Re: WinH
« Reply #16 on: June 09, 2012, 03:28:51 PM »
I think 0x5 is so much easier to read than &H5.

Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 3751
    • Oxygen Basic
Re: WinH
« Reply #17 on: June 21, 2012, 01:17:25 PM »
Thanks Aurel, I am learning at lot. Windows controls are still a mystery to me.

Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 3751
    • Oxygen Basic
Re: WinH
« Reply #18 on: June 24, 2012, 04:50:54 PM »
Yes that works nicely Aurel. Oxygen compiles to fairly efficient machine code, there are few wasted cycles, which you tend to get in interpreted languages.

Charles

John

  • Hero Member
  • *****
  • Posts: 3280
Re: WinH
« Reply #19 on: June 24, 2012, 08:56:45 PM »
Charles,

Have you run any speed comparison tests between O2 and PowerBASIC? Zale touts hand crafted code generation which sounds more like a sales pitch then a home cooked meal. I'm sure there would be a lot of interest in O2 if the word got out how far along it has come.

BTW: I think your efforts in the Rosetta Code site will pay off in many ways. (tests your code, exposure, ...)


John

Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 3751
    • Oxygen Basic
Re: WinH
« Reply #20 on: June 25, 2012, 12:04:06 AM »

I have not tested recently, John. but I expect the speed is fairly close. The problem with PowerBasic, I feel is that it is well and truly locked into COM, rather than a more generalised OOP model. I suppose the main reason was to provide compatibility with Visual Basic  and continuity for VB programmers.

The Rosetta wiki is a treasure. There are around 500 tasks to choose from and many challenge the capabilities of a languages. I was particularly interested in the OOP and Functional Programming tasks as these paradigms are quites stretching for Basic dialects.

Charles

Aurel

  • Guest
Re: WinH
« Reply #21 on: September 20, 2012, 12:08:25 PM »
And much simpliest..


« Last Edit: February 10, 2013, 12:14:32 AM by Aurel »

Aurel

  • Guest
Re: WinH
« Reply #22 on: October 09, 2012, 02:21:00 PM »
Just one test to control two window in one callback function..
« Last Edit: February 10, 2013, 12:15:07 AM by Aurel »

Aurel

  • Guest
Re: WinH
« Reply #23 on: September 05, 2013, 02:37:31 PM »
Here is tooltip attempt...
« Last Edit: January 05, 2014, 08:28:51 AM by Aurel »

kryton9

  • Hero Member
  • *****
  • Posts: 721
Re: WinH
« Reply #24 on: September 20, 2013, 06:30:25 PM »
Thanks Aurel, will check this out when have I wine or windows working. Playing with Ubuntu this weekend :)

John

  • Hero Member
  • *****
  • Posts: 3280
Re: WinH
« Reply #25 on: September 20, 2013, 09:45:07 PM »
Ok Kent...
I see ...Ubuntu...ha, i never liked this distro.. ::).
I use SliTaz and Slax. ;D

I apologize Aurel. I was unaware of your Linux interest. What application development are you working on under those OS's? Do you have something we can play with? RubinDevX sort of has a nice ring to it.


kryton9

  • Hero Member
  • *****
  • Posts: 721
Re: WinH
« Reply #26 on: September 20, 2013, 10:50:06 PM »
I got 64bit ubuntu to install from ubuntu 32 bit, but not from windows, so that was strange.
Anyways, got wine setup so installed oxygen and here is a screenshot of your winapi controls demo Aurel.

It works perfectly.

I played with slitaz when you first mentioned it a few years ago Aurel, it is nice and fast, but I must say this version of ubuntu I am enjoying and for the first time the unity interface is appealing to me.



X

Aurel

  • Guest
Re: WinH
« Reply #27 on: September 20, 2013, 10:53:19 PM »
Quote
It works perfectly
Of course ....when is created by native api-s and Vine work ok with native api functions.

John

  • Hero Member
  • *****
  • Posts: 3280
Re: WinH
« Reply #28 on: September 20, 2013, 11:59:35 PM »
Quote
Of course ....when is created by native api-s and Vine work ok with native api functions.

True, but it's not genuine Vindows.

John

  • Hero Member
  • *****
  • Posts: 3280
Re: WinH
« Reply #29 on: September 21, 2013, 12:31:20 AM »
If all gooes well i have in plan to create my own fork of SliTaz,
i have one friend here in Croatia who is interested .

Quote from: Aurel thinBasic forum
This is just proof that Linus is selfish and ignorant freak who don't know how to built GUI subsystem inside kernel.

Duh. I get it now. You're a Linux systems developer. That makes your comment on thinBASIC about Linus Torvalds justifiable. Did you and Linus get in an argument over kernel code direction?

I was wondering if you can give me a hand with a problem I'm having on Android Linux? For some unknown reason I'm getting assert errors with the LD BFD trying to compile the cURL extension module. I have tried multiple gcc switches to try and get around it but no luck so far. Do you think this an issue with the linker or something else?

« Last Edit: September 21, 2013, 01:47:42 AM by John »