- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
case (WM_RBUTTONDOWN)
iret = SetCapture(hWnd)
pt%x = INT4(LOWORD(lparam))
pt%y = INT4(HIWORD(lparam))
hMenu = LoadMenu (ghInstance, LOC("Floating"C))
hMenuTrackPopup = GetSubMenu (hMenu, 0)
if(option1 .eq. true) then
!code
endif
if(option2 .eq. true) then
!code
endif
bret = ClientToScreen (hwnd, pt)
bret = TrackPopupMenu (hMenuTrackPopup, 0,&
pt%x, pt%y, 0, hwnd, NULL_RECT)
bret = DestroyMenu (hMenu)
MainWndProc = 0
return
retint = DlgModal( dlg )
and enable the button.
DialogBoxParam(hinstance, lpTemplate,...)
but I still cannot do what I wish.
Chandrika
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
pt%x, pt%y, 0, hwnd, NULL_RECT)
"Use the following bit flag constants to determine the user selection without having to set up a parent window for the menu.
ValueMeaningTPM_NONOTIFYIf this flag is set, the function does not send notification messages when the user clicks on a menu item.TPM_RETURNCMDIf this flag is set, the function returns the menu item identifier of the user's selection in the return value.
ValueMeaningTPM_LEFTBUTTONIf this flag is set, the user can select menu items with only the left mouse button.TPM_RIGHTBUTTONIf this flag is set, the user can select menu items with both the left and right mouse buttons."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
retlog = dlgsetsub(dlg, IDC_EDIT, EditboxSub)
retlog = dlgsetsub(dlg, IDC_BUTTON, ButtonSub)
retint = DlgModal( dlg )
Do not forget to add INCLUDE "RESOURCE,FD" to make the
control codes available.
(I have sometimes had problems, I do not know why,with the compiler not finding the correct DLGSET function corresponding to the type of the quantity being 'set', so you may have to use DLGSETLOG when setting the button state, to get rid of error messages).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
use dfwin
implicit none
include 'resource.fd'
logical retlog
type (dialog) dlg
external EditBoxSub
if ( retlog .eq. .true. ) then
iret = beep(1000,200)
retlog = dlgsetsub(dlg, IDC_EDIT1, EditBoxSub)
end if
call dlguninit (dlg)
subroutine EditBoxSub (dlg, id, callbacktype )
!DEC$ ATTRIBUTES DEFAULT :: EditboxSub
include 'RESOURCE.FD'
integer id, callbacktype
logical retlog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Chandrika
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sequence
integer dlgid
integer hwnd! 0 if dialog is not displayed
!private
integer retval
logical dirty! prevents unwanted callbacks when dlg values are changed
logical mutexflush
logical comboupdate
integer dlginitcallback
integer NumControls
type (ControlType), pointer, dimension(:) :: list
end type
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page