Touch or Mouse

Everything else that doesn't fall into one of the other PB categories.
es_91
Enthusiast
Enthusiast
Posts: 298
Joined: Thu Jan 27, 2011 12:00 pm
Location: DE

Touch or Mouse

Post by es_91 »

In the case of websites, the vertical mobile version usually features touch orientation, the horizontal desktop version features mouse support.


No wonder Microsoft had to do something with Windows 8 - just to have it rebuild to mouse conditions again.


A good app should feature both versions - a high res mouse studio and a zoomed touch environment alike. On desktops the orientation will always be square/widescreen, so the gui has to be rethough for touch primitivity.


In SpiderBasic the screen orientation can decide for the input method to support.


I am looking for examples or excerpts on apps created with that kind-of thought. Did you create bi-orientation apps on PB or SB?
:mrgreen:
Randy Walker
Addict
Addict
Posts: 1060
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA

Re: Touch or Mouse

Post by Randy Walker »

es_91 wrote: Fri Aug 23, 2024 9:22 pm In the case of websites, the vertical mobile version usually features touch orientation, the horizontal desktop version features mouse support.

I am looking for examples or excerpts on apps created with that kind-of thought. Did you create bi-orientation apps on PB or SB?
No examples That I can provide except little windows created from PB help as this sample taken directly from help.

Code: Select all

#Main = 0
#MDIChild = 1
If OpenWindow(#Main, 0, 0, 400, 300, "MDIGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_SizeGadget | #PB_Window_MaximizeGadget)
  If CreateMenu(#Main, WindowID(#Main))
    MenuTitle("Menu index 0")
    MenuTitle("MDI windows menu")
    MenuItem(0, "self created item")
    MenuItem(1, "self created item")
    
    MDIGadget(0, 0, 0, 0, 0, 1, 2, #PB_MDI_AutoSize)
    AddGadgetItem(0, #MDIChild, "child window")
    ; add gadgets here...
    UseGadgetList(WindowID(#Main)) ; go back to the main window gadgetlist
  EndIf
  Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf
Its all sizable via touch or mouse. Buttons are also touch or mouse activated. I think that is all managed by the OS. At least its all working fine here on my stock almost 2 year old notebook: https://www.asus.com/laptops/for-home/z ... gen-intel/
Maybe older or cheaper machines have hardware issues to prevent operation.
Portrait or landscape should not be a factor of operation.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Post Reply