Recent Posts

Pages: 1 2 3 4 5 6 7 8 9 10
1
OxygenBasic / Re: Convert PB DDT dialogs to O2 dialogs
« Last post by Chris Chancellor on Today at 07:01:38 AM »
yes

 more example programs for the amazing O2
  O2  can do wonders

 Thanxx a lot to Roland , Charles and Mike and Aurel

 good for 64bits and fewer virus threats than 32bits
 see the article attached

2
OxygenBasic / Re: Convert PB DDT dialogs to O2 dialogs
« Last post by Chris Chancellor on Today at 06:44:13 AM »
Brian,
what Mike said is correct as this is O2 style and very flexible to define

so
Code: [Select]
function DialogProc( sys hDlg, uint uMsg, sys wParam, lParam ) as sys callback

is also equivalent to
Code: [Select]
function DialogProc( sys hDlg, uint uMsg, sys wParam, sys lParam ) as sys callback

3
OxygenBasic / Re: Convert PB DDT dialogs to O2 dialogs
« Last post by Chris Chancellor on Today at 06:37:38 AM »
after modification  with the extended styles the SimpleDDt.o2bas is
Code: [Select]
'====================================================================
' Simple DDT style dialogs in OxygenBasic
' Thanxx to Roland and Charles

$ filename "SimpleDDT.exe"

 uses rtl64
 uses dialogs
 #lookahead   


' Equates
 % IDC_TEXTBOX1     = 1001
 % IDC_TEXTBOX2     = 1002
 % IDC_LABEL1          = 1003
 % IDC_BUTTON1      = 1006
 %  IDC_ExitBtn         = 1008   

  sys  hDlg




'=====================================
sub winmain()


  Dialog( 151, 118, 201, 133, "DDT style in OxygenBasic",
          WS_VISIBLE or DS_SETFONT,
          8, "MS Sans Serif" ,  WS_EX_DLGMODALFRAME OR WS_EX_TOPMOST)

  EDITTEXT("TextBox 1", IDC_TEXTBOX1, 10, 5, 55, 30 )

  EDITTEXT("TextBox 2", IDC_TEXTBOX2, 10, 45, 55, 30 )


  LText( "Label 1 ", IDC_LABEL1, 95, 5, 65, 30)

  PushButton( "Button1" , IDC_Button1, 125, 45, 50, 20)

  PushButton( "Exit" , IDC_ExitBtn, 10, 95, 35, 20)

  CreateModalDialog( null, @DlgProc, 0) 

end sub




=============================================
 function DlgProc( sys hDlg, uint uMsg, sys wParam, lParam ) as int callback

  select case uMsg
 
    case WM_INITDIALOG
     

    case WM_COMMAND
      select case loword(wParam)

       case IDC_Button1
                    mbox " Button 1 is clicked"

        case IDC_ExitBtn
                EndDialog( hDlg, null )

      end select

     
    case WM_CLOSE
         EndDialog( hDlg, null )
               
  end select

  return 0
end function




==============================================
'MAIN CODE start
winmain()





4
OxygenBasic / Re: Convert PB DDT dialogs to O2 dialogs
« Last post by Chris Chancellor on Today at 06:35:10 AM »
Hello Brian

you can add extended styles in the Dialog() routine
for example
before adding extended styles into SimpleDDT.o2bas
Code: [Select]
Dialog( 151, 118, 201, 133, "DDT style in OxygenBasic",
          WS_OVERLAPPEDWINDOW  or DS_SETFONT,
          8, "MS Sans Serif" )


after adding extended styles of  WS_EX_DLGMODALFRAME OR WS_EX_TOPMOST

Code: [Select]
Dialog( 151, 118, 201, 133, "DDT style in OxygenBasic",
          WS_VISIBLE or DS_SETFONT,
          8, "MS Sans Serif" ,  WS_EX_DLGMODALFRAME OR WS_EX_TOPMOST)


then the before and after screen displays are
where you can see that after modification the dialog appears on the topmost and you cannot
resize the dialog










5
OxygenBasic / Re: Convert PB DDT dialogs to O2 dialogs
« Last post by Mike Lobanovsky on September 24, 2018, 04:39:39 AM »
Brian,

The rightmost sys covers everything that's to the right of it in between the parentheses unless superseded with some other data type next to another argument which, in its turn, would cover everything that's to the right of it, and so on so forth.
6
OxygenBasic / Re: Convert PB DDT dialogs to O2 dialogs
« Last post by Brian Alvarez on September 24, 2018, 01:37:20 AM »
I would like to see more examples like this one.

One question, in the example code, i see:

Code: [Select]
function DialogProc( sys hDlg, uint uMsg, sys wParam, lParam ) as sys callback
 Why is it that lParam has no data type descriptor? or is it a typo?

Added:
 How do you change the control styles and extended styles?
7
OxygenBasic / Re: Example ListView with Tooltips
« Last post by Zlatko Vid on September 21, 2018, 03:48:05 PM »
Well this program compile on 32bit but not work ...
and whatr is that ..do we need 100 version of includes files  ???
yeah
creating programs only for 64bit don't hold the water for ordinary windows user.
8
OxygenBasic / Re: Example ListView with Tooltips
« Last post by Chris Chancellor on September 20, 2018, 02:20:53 PM »
Hello Karen

i have actually downloaded the Jul 21  (the most current) oxygenbasic progress. zip file
and place into the  folder called Sep4  (the date which i have downloaded).

so it is the same as the Jul 21 package which you had downloaded

maybe Charles can add some light to it.  as far as i know Charles is busy making the self compiling O2
so there is no new upgrade since Jul 21 ?
9
OxygenBasic / Re: TreeView example with tooltips
« Last post by Karen Zibowski on September 19, 2018, 10:21:12 PM »
Thank you

I love it.
10
OxygenBasic / Re: Example ListView with Tooltips
« Last post by Karen Zibowski on September 19, 2018, 10:20:22 PM »
Thank you Chris, that is a splendid program

However, I noticed that you were compiling from  set o2dir=C:\OxygenBasicProgressSep4
in your bat file.

but the current link for the latest OxygenBasicProgress.zip is  at Jul 21 ?  where did you get the Sep 4  zip from?
Pages: 1 2 3 4 5 6 7 8 9 10